summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
Side-by-side diff
Diffstat (limited to 'libopie/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 8273761..ee0b0ec 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -145,2 +145,9 @@ enum ODirection {
+enum OHingeStatus {
+ CASE_CLOSED = 3,
+ CASE_PORTRAIT = 2,
+ CASE_LANDSCAPE = 0,
+ CASE_UNKNOWN = 1,
+};
+
/**
@@ -209,4 +216,4 @@ public:
-// input / output
- //FIXME playAlarmSound and al might be better -zecke
+ // input / output
+ //FIXME playAlarmSound and al might be better -zecke
virtual void alarmSound ( );
@@ -224,2 +231,5 @@ public:
+ virtual bool hasHingeSensor ( ) const;
+ virtual OHingeStatus readHingeSensor ( );
+
const QStrList &allowedCpuFrequencies() const;