photosgallery/viewframework/views/cloudview/inc/glxbubbletimer.h
changeset 0 4e91876724a2
child 32 78ad99c24f08
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Cloud view implementation
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXBUBBLETIMER_H
       
    22 #define C_GLXBUBBLETIMER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 /**
       
    28  *MGlxTimerNotifier is a calss to get timer delay functionality
       
    29  */
       
    30 class MGlxTimerNotifier
       
    31 	{
       
    32 public:
       
    33 	/** 	
       
    34 	 *  @function TimerComplete
       
    35 	 *  @since S60 3.2
       
    36 	 *  Function is used to get timer notification
       
    37 	 */
       
    38 	virtual void TimerComplete() = 0;
       
    39 	};
       
    40 
       
    41 //Forward Declaration
       
    42 class MGlxTimerNotifier;
       
    43 
       
    44 /**
       
    45  * CGlxBubbleTimer is a clsss derived from CActive.
       
    46  *It provides active objects functionality.
       
    47  */
       
    48 NONSHARABLE_CLASS(CGlxBubbleTimer): public CActive
       
    49 	{
       
    50 public:
       
    51 
       
    52 	/** 	
       
    53 	 *  @function NewL
       
    54 	 *  @since S60 3.2
       
    55 	 *  Perform the two phase construction
       
    56 	 *  @param aNotifier - MGlxTimerNotifier class pointer
       
    57 	 *  @return Pointer to newly created object
       
    58 	 */
       
    59 	static CGlxBubbleTimer *NewL(MGlxTimerNotifier *aNotifier);
       
    60 
       
    61 	/**
       
    62 	 * Destructor.
       
    63 	 */
       
    64 	~CGlxBubbleTimer();
       
    65 
       
    66 	/** 	
       
    67 	 *  @function SetDelay
       
    68 	 *  @since S60 3.2
       
    69 	 *  @param aDelay -Time period for timer
       
    70 	 */
       
    71 	void SetDelay(TTimeIntervalMicroSeconds32 aDelay);
       
    72 
       
    73 private:
       
    74 
       
    75 	/** 	
       
    76 	 *  @Default c++ contructor
       
    77 	 *  @since S60 3.2
       
    78 	 *  @aNotifier MGlxTimerNotifier class pointer
       
    79 	 */
       
    80 	CGlxBubbleTimer(MGlxTimerNotifier *aNotifier);
       
    81 
       
    82 	/** 	
       
    83 	 *  @function ConstructL
       
    84 	 *  @since S60 3.2
       
    85 	 *  Perform the two phase construction
       
    86 	 */
       
    87 	void ConstructL();
       
    88 
       
    89 	/** 	
       
    90 	 *  @function RunL
       
    91 	 *  @since S60 3.2
       
    92 	 *  Executed when callback occurs
       
    93 	 */
       
    94 	void RunL();
       
    95 
       
    96 	/** 	
       
    97 	 *  @function DoCancel
       
    98 	 *  @since S60 3.2
       
    99 	 */
       
   100 	void DoCancel();
       
   101 
       
   102 private:
       
   103 
       
   104 	RTimer iTimer; //Timer object
       
   105 	MGlxTimerNotifier *iNotifier; //Notifier variable
       
   106 
       
   107 	};
       
   108 
       
   109 #endif // C_GLXBUBBLETIMER_H
       
   110 
       
   111 // End of File