summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
Unidiff
Diffstat (limited to 'libopie/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 0974e8d..7f6f856 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -20,12 +20,13 @@
20#ifndef _LIBOPIE_ODEVICE_H_ 20#ifndef _LIBOPIE_ODEVICE_H_
21#define _LIBOPIE_ODEVICE_H_ 21#define _LIBOPIE_ODEVICE_H_
22 22
23#include <qobject.h> 23#include <qobject.h>
24#include <qstring.h> 24#include <qstring.h>
25#include <qnamespace.h> 25#include <qnamespace.h>
26#include <qstrlist.h>
26 27
27#include <opie/odevicebutton.h> 28#include <opie/odevicebutton.h>
28 29
29#include <qpe/qpeapplication.h> /* for Transformation enum.. */ 30#include <qpe/qpeapplication.h> /* for Transformation enum.. */
30 31
31class ODeviceData; 32class ODeviceData;
@@ -146,19 +147,18 @@ protected:
146 virtual void init ( ); 147 virtual void init ( );
147 virtual void initButtons ( ); 148 virtual void initButtons ( );
148 149
149 ODeviceData *d; 150 ODeviceData *d;
150 151
151public: 152public:
152 // sandman do we want to allow destructions? -zecke? 153 // sandman do we want to allow destructions? -zecke?
153 virtual ~ODevice ( ); 154 virtual ~ODevice ( );
154 155
155
156 static ODevice *inst ( ); 156 static ODevice *inst ( );
157 157
158// information 158 // information
159 159
160 QString modelString ( ) const; 160 QString modelString ( ) const;
161 OModel model ( ) const; 161 OModel model ( ) const;
162 inline OModel series ( ) const { return (OModel) ( model ( ) & Model_Series_Mask ); } 162 inline OModel series ( ) const { return (OModel) ( model ( ) & Model_Series_Mask ); }
163 163
164 QString vendorString ( ) const; 164 QString vendorString ( ) const;
@@ -195,12 +195,16 @@ public:
195 virtual bool setLedState ( OLed led, OLedState st ); 195 virtual bool setLedState ( OLed led, OLedState st );
196 196
197 virtual bool hasLightSensor ( ) const; 197 virtual bool hasLightSensor ( ) const;
198 virtual int readLightSensor ( ); 198 virtual int readLightSensor ( );
199 virtual int lightSensorResolution ( ) const; 199 virtual int lightSensorResolution ( ) const;
200 200
201 QStrList &cpuFrequencies() const;
202 bool setCpuFrequency(uint index);
203 uint cpuFrequency() const;
204
201 /** 205 /**
202 * Returns the available buttons on this device. The number and location 206 * Returns the available buttons on this device. The number and location
203 * of buttons will vary depending on the device. Button numbers will be assigned 207 * of buttons will vary depending on the device. Button numbers will be assigned
204 * by the device manufacturer and will be from most preferred button to least preffered 208 * by the device manufacturer and will be from most preferred button to least preffered
205 * button. Note that this list only contains "user mappable" buttons. 209 * button. Note that this list only contains "user mappable" buttons.
206 */ 210 */