From d0852e67c15c5a973b7bc7f7bee238a6fd00dee6 Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 18 Apr 2003 21:54:43 +0000 Subject: Add rotation direction to ODevice, to ensure the default is appropriate for the hardware in question. --- (limited to 'libopie/odevice.cpp') diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 0e1c0dd..29c8ad2 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -67,6 +67,7 @@ public: QString m_sysverstr; Transformation m_rotation; + ODirection m_direction; QValueList *m_buttons; uint m_holdtime; @@ -254,6 +255,7 @@ ODevice::ODevice ( ) d-> m_system = System_Unknown; d-> m_sysverstr = "0.0"; d-> m_rotation = Rot0; + d-> m_direction = CW; d-> m_holdtime = 1000; // 1000ms d-> m_buttons = 0; @@ -470,6 +472,14 @@ Transformation ODevice::rotation ( ) const } /** + * @return the current rotation direction + */ +ODirection ODevice::direction ( ) const +{ + return d-> m_direction; +} + +/** * This plays an alarmSound */ void ODevice::alarmSound ( ) -- cgit v0.9.0.2