photosgallery/viewframework/uiutilities/inc/glxprogressindicator.h
branchRCL_3
changeset 35 420f6808bf21
parent 30 a60acebbbd9d
--- a/photosgallery/viewframework/uiutilities/inc/glxprogressindicator.h	Tue May 25 12:42:31 2010 +0300
+++ b/photosgallery/viewframework/uiutilities/inc/glxprogressindicator.h	Wed Jun 09 09:41:51 2010 +0300
@@ -28,22 +28,51 @@
 class MDialogDismisedObserver
     {
 public:
-    virtual void HandleDialogDismissedL()=0;
+    virtual void HandleDialogDismissedL() = 0;
     };
 
-class CGlxProgressIndicator : public CBase,
-                                 public MProgressDialogCallback
+class CGlxProgressIndicator : public CBase, public MProgressDialogCallback
     {
 public:
-    IMPORT_C static CGlxProgressIndicator* NewL(MDialogDismisedObserver&  aGlxGridViewNotifyObserver);
+    IMPORT_C static CGlxProgressIndicator* NewL(
+            MDialogDismisedObserver& aGlxGridViewNotifyObserver);
+    
     ~CGlxProgressIndicator();
-    static CGlxProgressIndicator* NewLC(MDialogDismisedObserver&  aGlxGridViewNotifyObserver);
+
     /**
      * dismiss progress dialog when it is needed
      */
     IMPORT_C void DismissProgressDialog();
+
+    /**
+     * Show progressbar dialog
+     */
+    IMPORT_C void ShowProgressbarL();
+    
+    /**
+     * Start or stop the TN daemon
+     * @param aStatus The foreground status
+     */
+    IMPORT_C void ControlTNDaemon(TBool aStatus);
+    
+public:
+    // Callback for periodic timer, static, 
+    static TInt PeriodicCallbackL(TAny* aPtr);
+    
+    //nonstatic func called from periodic timer
+    void DisplayProgressBarL();
+    
+protected:
+    //MProgressDialogCallback
+    void DialogDismissedL(TInt aButtonId);
+
 private:
-    CGlxProgressIndicator(MDialogDismisedObserver&  aGlxGridViewNotifyObserver);
+    static CGlxProgressIndicator* NewLC(
+            MDialogDismisedObserver& aGlxGridViewNotifyObserver);
+    
+    CGlxProgressIndicator(
+                    MDialogDismisedObserver& aGlxGridViewNotifyObserver);
+    
     void ConstructL();
     
     /**
@@ -51,7 +80,8 @@
      * @param aFinalValue Sets the final value of the bar
      * @param aShow hide/display the progress bar 
      */
-    void StartProgressNoteL(TInt aFinalValue ,TBool aShow);
+    void StartProgressNoteL(TInt aFinalValue, TBool aShow);
+    
     /**
      * displays the increment of progress bar
      */
@@ -62,19 +92,7 @@
      * @return increment value
      */
     TInt CalculateDisplayBarIncrement();
-public:
-    // Callback for periodic timer, static, 
-    static TInt PeriodicCallbackL( TAny* aPtr );
-    
-    //nonstatic func called from periodic timer
-    void DisplayProgressBarL();
-    
-    //show progress bar
-    IMPORT_C void ShowProgressbarL();
-    
-protected://MProgressDialogCallback
-    void DialogDismissedL (TInt aButtonId);
-    
+        
 private:
     //Progress bar updation ticker
     CPeriodic* iProgressbarTicker;
@@ -87,8 +105,10 @@
     
     //final count to set in progress bar
     TInt iFinalCount;
-    MDialogDismisedObserver&  iGlxGridViewNotifyObserver;
-    CGlxUiUtility* iUiUtility;
 
+    MDialogDismisedObserver& iGlxGridViewNotifyObserver;
+    
+    CGlxUiUtility* iUiUtility;
     };
+
 #endif /* GLXPROGRESSINDICATOR_H_ */