mpx/tsrc/public/basic/common/testviewframework/inc/scrollertimer.h
changeset 62 b276843a15ba
equal deleted inserted replaced
58:c76ea6caa649 62:b276843a15ba
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Scrolling menu with timer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CSCROLLERTIMER_H
       
    19 #define CSCROLLERTIMER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <aknlists.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CConsoleMain;
       
    26 
       
    27 /**
       
    28 *  scrolling timer class
       
    29 *
       
    30 *  @lib AddonMenu.lib
       
    31 */
       
    32 class CScrollerTimer
       
    33         :public CActive
       
    34     {
       
    35 
       
    36     public:  // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Two-phased constructor
       
    40         * @param aMain, main console
       
    41         * @return object of CScrollerTimer
       
    42         */
       
    43         static CScrollerTimer* NewL( CConsoleMain* aMain );
       
    44 
       
    45         /**
       
    46         * Destructor of CModule.
       
    47         */
       
    48         virtual ~CScrollerTimer();
       
    49 
       
    50     public: // New functions
       
    51 
       
    52         /** 
       
    53         * Start
       
    54         */
       
    55         void Start();
       
    56 
       
    57     public: // Functions from base classes
       
    58 
       
    59         /**
       
    60         * RunL derived from CActive handles the completed requests.
       
    61         */
       
    62         void RunL();
       
    63 
       
    64         /**
       
    65         * DoCancel derived from CActive handles the Cancel
       
    66         */
       
    67         void DoCancel();
       
    68 
       
    69         /** 
       
    70         * RunError
       
    71         */
       
    72         TInt RunError ( TInt aError );
       
    73 
       
    74     private:
       
    75 
       
    76         /** 
       
    77         * C++ default constructor.
       
    78         */
       
    79         CScrollerTimer();
       
    80 
       
    81         /**
       
    82         * the second phase constructor ConstructL to safely construct things 
       
    83         * that can leave 
       
    84         * @param aMain, main console
       
    85         */
       
    86         void ConstructL( CConsoleMain* aMain );
       
    87 
       
    88     private:    // Data
       
    89         CConsoleMain*     iMain;            // Pointer to main console
       
    90         RTimer            iTimer;           // timer object
       
    91 
       
    92     };
       
    93 
       
    94 #endif