mmsharing/mmshengine/inc/musengsessiondurationtimer.h
changeset 0 f0cf47e981f9
child 16 ce86b6d44a6d
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _MUSENGSESSIONDURATIONTIMER_H_
       
    20 #define _MUSENGSESSIONDURATIONTIMER_H_
       
    21 
       
    22 
       
    23 // USER INCLUDES
       
    24 #include "musunittesting.h"
       
    25 
       
    26 // KERNEL INCLUDES 
       
    27 #include <e32base.h>
       
    28 
       
    29 // FORWARD DECLERATIONS
       
    30 class MMusEngSessionDurationTimerObserver;
       
    31 
       
    32 class CMusEngSessionDurationTimer : public CActive
       
    33     {
       
    34     MUS_UNITTEST( UT_CMusEngSessionDurationTimer )
       
    35 
       
    36     public:
       
    37 
       
    38 		/**
       
    39    		*
       
    40         * @since S60 v3.2
       
    41         */
       
    42         static CMusEngSessionDurationTimer* NewL( 
       
    43         					MMusEngSessionDurationTimerObserver& aObserver );
       
    44 
       
    45 		/**
       
    46    		*
       
    47         * @since S60 v3.2
       
    48         */
       
    49         ~CMusEngSessionDurationTimer();
       
    50 
       
    51 
       
    52 	public: // API
       
    53 	
       
    54 		/**
       
    55    		*
       
    56         * @since S60 v3.2
       
    57         */
       
    58         void Start( TInt aDelay );
       
    59 
       
    60 
       
    61     private: 
       
    62 
       
    63 		/**
       
    64    		*
       
    65         * @since S60 v3.2
       
    66         */
       
    67         CMusEngSessionDurationTimer( 
       
    68         					MMusEngSessionDurationTimerObserver& aObserver );
       
    69 
       
    70 		/**
       
    71    		*
       
    72         * @since S60 v3.2
       
    73         */
       
    74         void ConstructL();
       
    75 
       
    76     
       
    77     private: // inherited from CActive
       
    78 
       
    79 		/**
       
    80    		*
       
    81         * @since S60 v3.2
       
    82         */
       
    83         void RunL();
       
    84         
       
    85 		/**
       
    86    		*
       
    87         * @since S60 v3.2
       
    88         */
       
    89         void DoCancel();
       
    90 
       
    91 
       
    92     private: // DATA
       
    93 
       
    94 		/**
       
    95    		*
       
    96         * @since S60 v3.2
       
    97         */
       
    98         RTimer iTimer;
       
    99 
       
   100 		/**
       
   101    		*
       
   102         * @since S60 v3.2
       
   103         */
       
   104         MMusEngSessionDurationTimerObserver& iObserver;
       
   105         
       
   106     };
       
   107 
       
   108 #endif // _MUSENGSESSIONDURATIONTIMER_H_
       
   109