26 #ifdef Q_OS_SYMBIAN |
26 #ifdef Q_OS_SYMBIAN |
27 class RWsSession; |
27 class RWsSession; |
28 class RWindowGroup; |
28 class RWindowGroup; |
29 class QString; |
29 class QString; |
30 class QSymbianEvent; |
30 class QSymbianEvent; |
|
31 class CxuiEventLog; |
31 #endif // Q_OS_SYMBIAN |
32 #endif // Q_OS_SYMBIAN |
32 |
33 |
33 |
34 |
34 class CxuiApplicationFrameworkMonitorPrivate : public QObject |
35 class CxuiApplicationFrameworkMonitorPrivate : public QObject |
35 { |
36 { |
36 Q_OBJECT |
37 Q_OBJECT |
37 |
38 |
38 public: |
39 private: |
39 CxuiApplicationFrameworkMonitorPrivate(CxuiApplication &application, CxeSettings& settings); |
40 CxuiApplicationFrameworkMonitorPrivate(CxuiApplicationFrameworkMonitor *parent, |
|
41 CxuiApplication &application, |
|
42 CxeSettings &settings); |
40 virtual ~CxuiApplicationFrameworkMonitorPrivate(); |
43 virtual ~CxuiApplicationFrameworkMonitorPrivate(); |
41 |
44 |
42 public: |
|
43 CxuiApplicationFrameworkMonitor::ForegroundState foregroundState() const; |
45 CxuiApplicationFrameworkMonitor::ForegroundState foregroundState() const; |
44 |
46 bool isUsbMassMemoryModeActive() const; |
45 signals: |
|
46 void foregroundStateChanged(CxuiApplicationFrameworkMonitor::ForegroundState t); |
|
47 void batteryEmpty(); |
|
48 |
47 |
49 #ifdef Q_OS_SYMBIAN |
48 #ifdef Q_OS_SYMBIAN |
50 private slots: |
49 private slots: |
51 void handleEvent(const QSymbianEvent *event); |
50 void handleEvent(const QSymbianEvent *event); |
52 void handlePropertyEvent(long int uid, unsigned long int key, QVariant value); |
51 void handlePropertyEvent(long int uid, unsigned long int key, QVariant value); |
53 |
52 |
54 private: |
53 private: |
55 void init(); |
54 void init(); |
56 bool handleWindowServerEvent(const QSymbianEvent *event); |
55 void handleWindowServerEvent(const QSymbianEvent *event); |
|
56 void handleUsbPropertyEvent(unsigned long int key, QVariant value); |
57 void setState(CxuiApplicationFrameworkMonitor::ForegroundState state); |
57 void setState(CxuiApplicationFrameworkMonitor::ForegroundState state); |
58 CxuiApplicationFrameworkMonitor::ForegroundState getCurrentState(); |
58 CxuiApplicationFrameworkMonitor::ForegroundState getCurrentState(); |
59 unsigned int focusedApplicationUid(); |
59 unsigned int focusedApplicationUid(); |
60 #endif // Q_OS_SYMBIAN |
60 #endif // Q_OS_SYMBIAN |
61 |
61 |
62 |
|
63 private: |
62 private: |
|
63 CxuiApplicationFrameworkMonitor *q; |
64 CxuiApplication &mApplication; |
64 CxuiApplication &mApplication; |
65 CxeSettings& mSettings; |
65 CxeSettings &mSettings; |
66 #ifdef Q_OS_SYMBIAN |
66 #ifdef Q_OS_SYMBIAN |
67 RWsSession &mWsSession; |
67 RWsSession &mWsSession; |
68 RWindowGroup &mWindowGroup; |
68 RWindowGroup &mWindowGroup; |
69 int mWindowGroupId; |
69 int mWindowGroupId; |
70 QString mWindowGroupName; |
70 QString mWindowGroupName; |
|
71 |
71 int mKeyLockState; |
72 int mKeyLockState; |
72 int mBatteryStatus; |
73 int mBatteryStatus; |
|
74 int mUsbPersonality; |
|
75 |
|
76 CxuiEventLog *mEventLog; |
73 #endif // Q_OS_SYMBIAN |
77 #endif // Q_OS_SYMBIAN |
|
78 |
74 CxuiApplicationFrameworkMonitor::ForegroundState mState; |
79 CxuiApplicationFrameworkMonitor::ForegroundState mState; |
|
80 |
|
81 friend class CxuiApplicationFrameworkMonitor; |
75 }; |
82 }; |
76 |
83 |
77 #endif // CXUIAPPLICATIONFRAMEWORKMONITORPRIVATE_H |
84 #endif // CXUIAPPLICATIONFRAMEWORKMONITORPRIVATE_H |