Diffstat (limited to 'libopie2/opiecore/device/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 5b73e59..0068d88 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -58,9 +58,35 @@ | |||
58 | #include <linux/soundcard.h> | 58 | #include <linux/soundcard.h> |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | const char* PATH_PROC_CPUINFO = "/proc/cpuinfo"; | 61 | namespace Opie { |
62 | namespace Core { | ||
62 | 63 | ||
63 | using namespace Opie::Core; | 64 | static const char* PATH_PROC_CPUINFO = "/proc/cpuinfo"; |
65 | |||
66 | |||
67 | /* STATIC and common implementation */ | ||
68 | /* EXPORT */ ODistribution distributions[] = { | ||
69 | { System_Familiar, "FamiliarLinux", "/etc/familiar-version" }, | ||
70 | { System_OpenZaurus, "OpenZaurus", "/etc/oz_version" }, | ||
71 | { System_OpenEmbedded, "OpenEmbedded", "/etc/oe-version" }, | ||
72 | { System_Unknown, "Linux", "/etc/issue" }, | ||
73 | }; | ||
74 | |||
75 | |||
76 | /* EXPORT */ bool isQWS(){ | ||
77 | return qApp ? ( qApp->type() == QApplication::GuiServer ) : false; | ||
78 | } | ||
79 | |||
80 | /* EXPORT */ QCString makeChannel ( const char *str ){ | ||
81 | if ( str && !::strchr ( str, '/' )) | ||
82 | return QCString ( "QPE/Application/" ) + str; | ||
83 | else | ||
84 | return str; | ||
85 | } | ||
86 | |||
87 | |||
88 | |||
89 | /* Now the default implementation of ODevice */ | ||
64 | 90 | ||
65 | struct default_button default_buttons [] = { | 91 | struct default_button default_buttons [] = { |
66 | { Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"), | 92 | { Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"), |
@@ -685,3 +711,7 @@ void ODevice::sendSuspendmsg() | |||
685 | 711 | ||
686 | QCopEnvelope ( "QPE/System", "aboutToSuspend()" ); | 712 | QCopEnvelope ( "QPE/System", "aboutToSuspend()" ); |
687 | } | 713 | } |
714 | |||
715 | |||
716 | } | ||
717 | } | ||