equal
deleted
inserted
replaced
43 |
43 |
44 public: |
44 public: |
45 CxuiStandby(CxuiCaptureKeyHandler &keyHandler, CxuiDocumentLoader *documentLoader, CxeEngine *engine); |
45 CxuiStandby(CxuiCaptureKeyHandler &keyHandler, CxuiDocumentLoader *documentLoader, CxeEngine *engine); |
46 ~CxuiStandby(); |
46 ~CxuiStandby(); |
47 |
47 |
|
48 public: |
|
49 void allowDismiss(bool allow); |
|
50 bool isActive() const; |
|
51 |
48 signals: |
52 signals: |
49 |
53 |
50 /* |
54 /* |
51 * signal to prepare for standby |
55 * signal to prepare for standby |
52 */ |
56 */ |
56 * signal to prepare UI for exiting standby |
60 * signal to prepare UI for exiting standby |
57 */ |
61 */ |
58 void aboutToExitStandby(); |
62 void aboutToExitStandby(); |
59 |
63 |
60 public slots: |
64 public slots: |
61 |
|
62 /* |
|
63 * starts standby timer |
|
64 */ |
|
65 void startTimer(); |
65 void startTimer(); |
66 |
|
67 /* |
|
68 * stops standby timer |
|
69 */ |
|
70 void stopTimer(); |
66 void stopTimer(); |
71 |
67 bool handleMouseEvent(QEvent *event); |
72 /* |
68 void enterStandby(); |
73 * handles focus gain event |
69 void exitStandby(); |
74 */ |
|
75 bool handleMouseEvent(); |
|
76 |
70 |
77 private slots: |
71 private slots: |
78 |
72 |
79 void dismissStandby(); |
73 void dismissStandby(); |
80 void toStandby(); |
|
81 |
74 |
82 private: // helper methods |
75 private: // helper methods |
83 |
76 |
84 bool proceedToStandy(); |
77 bool proceedToStandy(); |
85 bool eventFilter(QObject *object, QEvent *event); |
78 bool eventFilter(QObject *object, QEvent *event); |
90 CxuiDocumentLoader *mDocumentLoader; // not own |
83 CxuiDocumentLoader *mDocumentLoader; // not own |
91 CxeEngine *mEngine; // not own |
84 CxeEngine *mEngine; // not own |
92 HbDialog *mStandbyPopup; |
85 HbDialog *mStandbyPopup; |
93 QTimer *mStandbyTimer; |
86 QTimer *mStandbyTimer; |
94 bool mStandbyDialogVisible; |
87 bool mStandbyDialogVisible; |
|
88 bool mAllowDismiss; |
95 }; |
89 }; |
96 |
90 |
97 #endif // CXUISTANDBY_H |
91 #endif // CXUISTANDBY_H |