author | zecke <zecke> | 2004-07-13 14:01:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-13 14:01:44 (UTC) |
commit | 03930fa4871365efb6438b74b3a68f8f06aa7e4f (patch) (unidiff) | |
tree | 86c83a95b37fbde6e467b852393b66527383492e /libopie2/opiecore/device/odevice.h | |
parent | 74f19a502a513258f88a75e057a5998393e3c7f6 (diff) | |
download | opie-03930fa4871365efb6438b74b3a68f8f06aa7e4f.zip opie-03930fa4871365efb6438b74b3a68f8f06aa7e4f.tar.gz opie-03930fa4871365efb6438b74b3a68f8f06aa7e4f.tar.bz2 |
Fix compiler warnings coming from static methods which are unused most of the
time in headers.
Move isQWS and makeChannel to Opie::Core. Maybe we will move them
to internal later
Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 474d792..0465d7e 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -134,14 +134,8 @@ typedef struct { | |||
134 | char* sysvfile; | 134 | char* sysvfile; |
135 | } ODistribution; | 135 | } ODistribution; |
136 | 136 | ||
137 | static ODistribution distributions[] = | 137 | extern ODistribution distributions[]; |
138 | { | ||
139 | { System_Familiar, "FamiliarLinux", "/etc/familiar-version" }, | ||
140 | { System_OpenZaurus, "OpenZaurus", "/etc/oz_version" }, | ||
141 | { System_OpenEmbedded, "OpenEmbedded", "/etc/oe-version" }, | ||
142 | { System_Unknown, "Linux", "/etc/issue" }, | ||
143 | 138 | ||
144 | }; | ||
145 | 139 | ||
146 | enum OLedState { | 140 | enum OLedState { |
147 | Led_Off, | 141 | Led_Off, |
@@ -352,21 +346,12 @@ class ODeviceData { | |||
352 | QStrList *m_cpu_frequencies; | 346 | QStrList *m_cpu_frequencies; |
353 | }; | 347 | }; |
354 | 348 | ||
349 | extern bool isQWS(); | ||
350 | extern QCString makeChannel ( const char *str ); | ||
355 | } | 351 | } |
356 | } | 352 | } |
357 | 353 | ||
358 | static inline bool isQWS() | ||
359 | { | ||
360 | return qApp ? ( qApp->type() == QApplication::GuiServer ) : false; | ||
361 | } | ||
362 | 354 | ||
363 | static QCString makeChannel ( const char *str ) | ||
364 | { | ||
365 | if ( str && !::strchr ( str, '/' )) | ||
366 | return QCString ( "QPE/Application/" ) + str; | ||
367 | else | ||
368 | return str; | ||
369 | } | ||
370 | 355 | ||
371 | 356 | ||
372 | #endif | 357 | #endif |