camerauis/cameraxui/cxui/inc/cxuistandby.h
changeset 36 b12f3922a74f
parent 19 d9aefe59d544
--- a/camerauis/cameraxui/cxui/inc/cxuistandby.h	Fri Jun 11 13:26:48 2010 +0300
+++ b/camerauis/cameraxui/cxui/inc/cxuistandby.h	Wed Jun 23 17:59:54 2010 +0300
@@ -45,6 +45,10 @@
     CxuiStandby(CxuiCaptureKeyHandler &keyHandler, CxuiDocumentLoader *documentLoader, CxeEngine *engine);
     ~CxuiStandby();
 
+public:
+    void allowDismiss(bool allow);
+    bool isActive() const;
+
 signals:
 
     /*
@@ -58,26 +62,15 @@
     void aboutToExitStandby();
 
 public slots:
-
-    /*
-    * starts standby timer
-    */
     void startTimer();
-
-    /*
-    * stops standby timer
-    */
     void stopTimer();
-
-    /*
-    * handles focus gain event
-    */
-    bool handleMouseEvent();
+    bool handleMouseEvent(QEvent *event);
+    void enterStandby();
+    void exitStandby();
 
 private slots:
 
     void dismissStandby();
-    void toStandby();
 
 private: // helper methods
 
@@ -92,6 +85,7 @@
     HbDialog *mStandbyPopup;
     QTimer *mStandbyTimer;
     bool mStandbyDialogVisible;
+    bool mAllowDismiss;
 };
 
 #endif // CXUISTANDBY_H