summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index 9afb92d..c2fa411 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -29,147 +29,154 @@
29 29
30#ifndef ODEVICE_H_ 30#ifndef ODEVICE_H_
31#define ODEVICE_H_ 31#define ODEVICE_H_
32 32
33/* OPIE */ 33/* OPIE */
34#include <opie2/odevicebutton.h> 34#include <opie2/odevicebutton.h>
35#include <qpe/qpeapplication.h> /* for Transformation enum.. */ 35#include <qpe/qpeapplication.h> /* for Transformation enum.. */
36 36
37/* QT */ 37/* QT */
38#include <qnamespace.h> 38#include <qnamespace.h>
39#include <qobject.h> 39#include <qobject.h>
40#include <qstring.h> 40#include <qstring.h>
41 41
42 42
43#include <qstrlist.h> 43#include <qstrlist.h>
44#include <qwindowsystem_qws.h> 44#include <qwindowsystem_qws.h>
45 45
46 46
47class Sound; 47class Sound;
48 48
49namespace Opie{ 49namespace Opie{
50namespace Core{ 50namespace Core{
51 51
52class ODeviceData; 52class ODeviceData;
53/** 53/**
54 * The available devices 54 * The available devices
55 */ 55 */
56enum OModel { 56enum OModel {
57 Model_Unknown, // = 0 57 Model_Unknown, // = 0
58 58
59 Model_Series_Mask = 0xffff0000, 59 Model_Series_Mask = 0xffff0000,
60 60
61 Model_iPAQ = ( 1 << 16 ), 61 Model_iPAQ = ( 1 << 16 ),
62 62
63 Model_iPAQ_All = ( Model_iPAQ | 0xffff ), 63 Model_iPAQ_All = ( Model_iPAQ | 0xffff ),
64 Model_iPAQ_H31xx = ( Model_iPAQ | 0x0001 ), 64 Model_iPAQ_H31xx = ( Model_iPAQ | 0x0001 ),
65 Model_iPAQ_H36xx = ( Model_iPAQ | 0x0002 ), 65 Model_iPAQ_H36xx = ( Model_iPAQ | 0x0002 ),
66 Model_iPAQ_H37xx = ( Model_iPAQ | 0x0003 ), 66 Model_iPAQ_H37xx = ( Model_iPAQ | 0x0003 ),
67 Model_iPAQ_H38xx = ( Model_iPAQ | 0x0004 ), 67 Model_iPAQ_H38xx = ( Model_iPAQ | 0x0004 ),
68 Model_iPAQ_H39xx = ( Model_iPAQ | 0x0005 ), 68 Model_iPAQ_H39xx = ( Model_iPAQ | 0x0005 ),
69 Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ), 69 Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ),
70 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ), 70 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ),
71 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ), 71 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ),
72 Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ), 72 Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
73 Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ), 73 Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ),
74 Model_Jornada = ( 6 << 16 ), 74 Model_Jornada = ( 6 << 16 ),
75 Model_Jornada_56x = ( Model_Jornada | 0x0001 ), 75 Model_Jornada_56x = ( Model_Jornada | 0x0001 ),
76 Model_Jornada_720 = ( Model_Jornada | 0x0002 ), 76 Model_Jornada_720 = ( Model_Jornada | 0x0002 ),
77 Model_Jornada_820 = ( Model_Jornada | 0x0003 ),
77 78
78 Model_Zaurus = ( 2 << 16 ), 79 Model_Zaurus = ( 2 << 16 ),
79 80
80 Model_Zaurus_SL5000 = ( Model_Zaurus | 0x0001 ), 81 Model_Zaurus_SL5000 = ( Model_Zaurus | 0x0001 ),
81 Model_Zaurus_SL5500 = ( Model_Zaurus | 0x0002 ), 82 Model_Zaurus_SL5500 = ( Model_Zaurus | 0x0002 ),
82 Model_Zaurus_SLA300 = ( Model_Zaurus | 0x0003 ), 83 Model_Zaurus_SLA300 = ( Model_Zaurus | 0x0003 ),
83 Model_Zaurus_SLB600 = ( Model_Zaurus | 0x0004 ), 84 Model_Zaurus_SLB600 = ( Model_Zaurus | 0x0004 ),
84 Model_Zaurus_SLC7x0 = ( Model_Zaurus | 0x0005 ), 85 Model_Zaurus_SLC7x0 = ( Model_Zaurus | 0x0005 ),
85 Model_Zaurus_SL6000 = ( Model_Zaurus | 0x0006 ), 86 Model_Zaurus_SL6000 = ( Model_Zaurus | 0x0006 ),
86 Model_Zaurus_SLC3000 = ( Model_Zaurus | 0x0007 ), 87 Model_Zaurus_SLC3000 = ( Model_Zaurus | 0x0007 ),
87 Model_Zaurus_SLC1000 = ( Model_Zaurus | 0x0008 ), 88 Model_Zaurus_SLC1000 = ( Model_Zaurus | 0x0008 ),
88 Model_Zaurus_SLC3100 = ( Model_Zaurus | 0x0009 ), 89 Model_Zaurus_SLC3100 = ( Model_Zaurus | 0x0009 ),
89 90
90 Model_SIMpad = ( 3 << 16 ), 91 Model_SIMpad = ( 3 << 16 ),
91 92
92 Model_SIMpad_All = ( Model_SIMpad | 0xffff ), 93 Model_SIMpad_All = ( Model_SIMpad | 0xffff ),
93 Model_SIMpad_CL4 = ( Model_SIMpad | 0x0001 ), 94 Model_SIMpad_CL4 = ( Model_SIMpad | 0x0001 ),
94 Model_SIMpad_SL4 = ( Model_SIMpad | 0x0002 ), 95 Model_SIMpad_SL4 = ( Model_SIMpad | 0x0002 ),
95 Model_SIMpad_SLC = ( Model_SIMpad | 0x0003 ), 96 Model_SIMpad_SLC = ( Model_SIMpad | 0x0003 ),
96 Model_SIMpad_TSinus = ( Model_SIMpad | 0x0004 ), 97 Model_SIMpad_TSinus = ( Model_SIMpad | 0x0004 ),
97 98
98 Model_Ramses = ( 4 << 16 ), 99 Model_Ramses = ( 4 << 16 ),
99 100
100 Model_Ramses_All = ( Model_Ramses | 0xffff ), 101 Model_Ramses_All = ( Model_Ramses | 0xffff ),
101 Model_Ramses_MNCI = ( Model_Ramses | 0x0001 ), 102 Model_Ramses_MNCI = ( Model_Ramses | 0x0001 ),
102 Model_Ramses_MNCIRX = ( Model_Ramses | 0x0002 ), 103 Model_Ramses_MNCIRX = ( Model_Ramses | 0x0002 ),
103 104
104 Model_Yopy = ( 5 << 16 ), 105 Model_Yopy = ( 5 << 16 ),
105 106
106 Model_Yopy_All = ( Model_Yopy | 0xffff ), 107 Model_Yopy_All = ( Model_Yopy | 0xffff ),
107 Model_Yopy_3000 = ( Model_Yopy | 0x0001 ), 108 Model_Yopy_3000 = ( Model_Yopy | 0x0001 ),
108 Model_Yopy_3500 = ( Model_Yopy | 0x0002 ), 109 Model_Yopy_3500 = ( Model_Yopy | 0x0002 ),
109 Model_Yopy_3700 = ( Model_Yopy | 0x0003 ), 110 Model_Yopy_3700 = ( Model_Yopy | 0x0003 ),
110 111
111 Model_Beagle = ( 6 << 16 ), 112 Model_Beagle = ( 6 << 16 ),
112 113
113 Model_Beagle_All = ( Model_Beagle | 0xffff ), 114 Model_Beagle_All = ( Model_Beagle | 0xffff ),
114 Model_Beagle_PA100 = ( Model_Beagle | 0x0001 ), 115 Model_Beagle_PA100 = ( Model_Beagle | 0x0001 ),
115 116
116 Model_GenuineIntel = ( 7 << 16 ), 117 Model_GenuineIntel = ( 7 << 16 ),
117 118
118 Model_MyPal = ( 8 << 16 ), 119 Model_MyPal = ( 8 << 16 ),
119 120
120 Model_MyPal_All = ( Model_MyPal | 0xffff ), 121 Model_MyPal_All = ( Model_MyPal | 0xffff ),
121 Model_MyPal_620 = ( Model_MyPal | 0x0001 ), 122 Model_MyPal_620 = ( Model_MyPal | 0x0001 ),
122 Model_MyPal_716 = ( Model_MyPal | 0x0002 ), 123 Model_MyPal_716 = ( Model_MyPal | 0x0002 ),
123 Model_MyPal_730 = ( Model_MyPal | 0x0003 ), 124 Model_MyPal_730 = ( Model_MyPal | 0x0003 ),
124 125
125 Model_HTC = ( 9 << 16 ), 126 Model_HTC = ( 9 << 16 ),
126 Model_HTC_All = ( Model_HTC | 0xffff ), 127 Model_HTC_All = ( Model_HTC | 0xffff ),
127 Model_HTC_Universal = ( Model_HTC | 0x0001 ), 128 Model_HTC_Universal = ( Model_HTC | 0x0001 ),
129 Model_HTC_Alpine = ( Model_HTC | 0x0002 ),
130 Model_HTC_Apache = ( Model_HTC | 0x0003 ),
131 Model_HTC_Beetles = ( Model_HTC | 0x0004 ),
132 Model_HTC_Blueangel = ( Model_HTC | 0x0005 ),
133 Model_HTC_Himalaya = ( Model_HTC | 0x0006 ),
134 Model_HTC_Magician = ( Model_HTC | 0x0007 ),
128 135
129 Model_Motorola = ( 9 << 17 ), 136 Model_Motorola = ( 9 << 17 ),
130 Model_Motorola_All = ( Model_Motorola | 0xffff ), 137 Model_Motorola_All = ( Model_Motorola | 0xffff ),
131 Model_Motorola_EZX = ( Model_Motorola | 0x0001 ), 138 Model_Motorola_EZX = ( Model_Motorola | 0x0001 ),
132 139
133}; 140};
134 141
135/** 142/**
136 * The vendor of the device 143 * The vendor of the device
137 */ 144 */
138enum OVendor { 145enum OVendor {
139 Vendor_Unknown, 146 Vendor_Unknown,
140 147
141 Vendor_HP, 148 Vendor_HP,
142 Vendor_Sharp, 149 Vendor_Sharp,
143 Vendor_SIEMENS, 150 Vendor_SIEMENS,
144 Vendor_MundN, 151 Vendor_MundN,
145 Vendor_GMate, 152 Vendor_GMate,
146 Vendor_MasterIA, 153 Vendor_MasterIA,
147 Vendor_GenuineIntel, 154 Vendor_GenuineIntel,
148 Vendor_Asus, 155 Vendor_Asus,
149 Vendor_HTC, 156 Vendor_HTC,
150 Vendor_Motorola, 157 Vendor_Motorola,
151}; 158};
152 159
153/** 160/**
154 * The System used 161 * The System used
155 */ 162 */
156enum OSystem { 163enum OSystem {
157 System_Unknown, 164 System_Unknown,
158 165
159 System_Familiar, 166 System_Familiar,
160 System_Zaurus, 167 System_Zaurus,
161 System_OpenZaurus, 168 System_OpenZaurus,
162 System_Linupy, 169 System_Linupy,
163 System_OpenEmbedded, 170 System_OpenEmbedded,
164 System_PC, 171 System_PC,
165 System_OpenEZX, 172 System_OpenEZX,
166 System_Angstrom, 173 System_Angstrom,
167}; 174};
168 175
169typedef struct { 176typedef struct {
170 OSystem system; 177 OSystem system;
171 char* sysstr; 178 char* sysstr;
172 char* sysvfile; 179 char* sysvfile;
173} ODistribution; 180} ODistribution;
174 181
175extern ODistribution distributions[]; 182extern ODistribution distributions[];