summaryrefslogtreecommitdiff
path: root/libopie2
Unidiff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp
index 62bb68a..7b99eb4 100644
--- a/libopie2/opiecore/device/odevice.cpp
+++ b/libopie2/opiecore/device/odevice.cpp
@@ -45,65 +45,65 @@
45#include <qwindowsystem_qws.h> 45#include <qwindowsystem_qws.h>
46 46
47/* OPIE */ 47/* OPIE */
48#include <qpe/config.h> 48#include <qpe/config.h>
49#include <qpe/sound.h> 49#include <qpe/sound.h>
50#include <qpe/qcopenvelope_qws.h> 50#include <qpe/qcopenvelope_qws.h>
51#include <qpe/sound.h> 51#include <qpe/sound.h>
52 52
53#include <opie2/okeyfilter.h> 53#include <opie2/okeyfilter.h>
54#include <opie2/oresource.h> 54#include <opie2/oresource.h>
55 55
56/* STD */ 56/* STD */
57#include <fcntl.h> 57#include <fcntl.h>
58#include <math.h> 58#include <math.h>
59#include <stdlib.h> 59#include <stdlib.h>
60#include <signal.h> 60#include <signal.h>
61#include <sys/ioctl.h> 61#include <sys/ioctl.h>
62#include <sys/time.h> 62#include <sys/time.h>
63#include <unistd.h> 63#include <unistd.h>
64#ifndef QT_NO_SOUND 64#ifndef QT_NO_SOUND
65#include <linux/soundcard.h> 65#include <linux/soundcard.h>
66#endif 66#endif
67 67
68namespace Opie { 68namespace Opie {
69namespace Core { 69namespace Core {
70 70
71static const char* PATH_PROC_CPUINFO = "/proc/cpuinfo"; 71static const char* PATH_PROC_CPUINFO = "/proc/cpuinfo";
72 72
73 73
74/* STATIC and common implementation */ 74/* STATIC and common implementation */
75/* EXPORT */ ODistribution distributions[] = { 75/* EXPORT */ ODistribution distributions[] = {
76 { System_Familiar, "FamiliarLinux", "/etc/familiar-version" }, 76 { System_Familiar, "FamiliarLinux", "/etc/familiar-version" },
77 { System_OpenZaurus, "OpenZaurus", "/etc/oz_version" }, 77 { System_OpenZaurus, "OpenZaurus", "/etc/openzaurus-version" },
78 { System_OpenEmbedded, "OpenEmbedded", "/etc/oe-version" }, 78 { System_OpenEmbedded, "OpenEmbedded", "/etc/oe-version" },
79 { System_Unknown, "Linux", "/etc/issue" }, 79 { System_Unknown, "Linux", "/etc/issue" },
80}; 80};
81 81
82 82
83/* EXPORT */ bool isQWS(){ 83/* EXPORT */ bool isQWS(){
84 return qApp ? ( qApp->type() == QApplication::GuiServer ) : false; 84 return qApp ? ( qApp->type() == QApplication::GuiServer ) : false;
85} 85}
86 86
87/* EXPORT */ QCString makeChannel ( const char *str ){ 87/* EXPORT */ QCString makeChannel ( const char *str ){
88 if ( str && !::strchr ( str, '/' )) 88 if ( str && !::strchr ( str, '/' ))
89 return QCString ( "QPE/Application/" ) + str; 89 return QCString ( "QPE/Application/" ) + str;
90 else 90 else
91 return str; 91 return str;
92} 92}
93 93
94 94
95 95
96/* Now the default implementation of ODevice */ 96/* Now the default implementation of ODevice */
97 97
98struct default_button default_buttons [] = { 98struct default_button default_buttons [] = {
99 { Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"), 99 { Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
100 "devicebuttons/z_calendar", 100 "devicebuttons/z_calendar",
101 "datebook", "nextView()", 101 "datebook", "nextView()",
102 "today", "raise()" }, 102 "today", "raise()" },
103 { Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"), 103 { Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
104 "devicebuttons/z_contact", 104 "devicebuttons/z_contact",
105 "addressbook", "raise()", 105 "addressbook", "raise()",
106 "addressbook", "beamBusinessCard()" }, 106 "addressbook", "beamBusinessCard()" },
107 { Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"), 107 { Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
108 "devicebuttons/z_home", 108 "devicebuttons/z_home",
109 "QPE/Launcher", "home()", 109 "QPE/Launcher", "home()",