mobilemessaging/smilui/playerinc/SmilPlayerPauseIndicatorTimer.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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: SmilPlayerPauseIndicatorTimer  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SMILPLAYERPAUSEINDICATORTIMER_H
       
    21 #define SMILPLAYERPAUSEINDICATORTIMER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MSmilPlayerPauseObserver;
       
    27 
       
    28 // DATA TYPES
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Class is used to indicate how long pause indicator is visible in screen.
       
    36 *
       
    37 * @lib smilplayer.lib
       
    38 * @since 3.0
       
    39 */
       
    40 NONSHARABLE_CLASS(CSmilPlayerPauseIndicatorTimer) : public CTimer
       
    41     {
       
    42 
       
    43     public: // Constructor and Destructor
       
    44 
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         *
       
    48         * @param aPauseObserver Pause indicator timer observer..
       
    49         *
       
    50         * @return Pointer to created CSmilPlayerPauseIndicatorTimer object.
       
    51         */
       
    52         static CSmilPlayerPauseIndicatorTimer* NewL( MSmilPlayerPauseObserver* aPauseObserver  );
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CSmilPlayerPauseIndicatorTimer();
       
    58 
       
    59     public: // New functions
       
    60 
       
    61         /**
       
    62         * Starts the timer.
       
    63         *
       
    64         * @since 3.0
       
    65         */      
       
    66         void StartTimer();
       
    67 
       
    68     private: 
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         CSmilPlayerPauseIndicatorTimer();
       
    74         
       
    75         /**
       
    76         * C++ constructor.
       
    77         */
       
    78         CSmilPlayerPauseIndicatorTimer( MSmilPlayerPauseObserver* aPauseObserver );
       
    79         
       
    80         
       
    81         /**
       
    82         * By default Symbian 2nd phase constructor is private.
       
    83         */
       
    84         void ConstructL();
       
    85 
       
    86     protected: // Functions from base classes
       
    87         
       
    88         /**
       
    89         * From CTimer 
       
    90         * See the documentation from the e32base.h
       
    91         */      
       
    92         void RunL();
       
    93 
       
    94     private: //
       
    95 
       
    96         // Observer
       
    97         MSmilPlayerPauseObserver* iPauseObserver;
       
    98     };        
       
    99 
       
   100 #endif // SMILPLAYERPAUSEINDICATORTIMER_H
       
   101 
       
   102 // End of File