accessoryservices/accessoryserver/inc/ASYProxy/ASYProxyLoaderTimer.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Timer for controlling asys loading
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CASYPROXYLOADERTIMER_H
       
    20 #define CASYPROXYLOADERTIMER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "acc_debug.h"
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CASYProxyAsyLoader;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Timer class for time out checking during loading ASYs.
       
    41 *
       
    42 *  @lib ASYProxy.dll
       
    43 *  @since S60 3.1
       
    44 */
       
    45 class CASYProxyLoaderTimer : public CTimer
       
    46     {
       
    47     public: // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         */
       
    52         static CASYProxyLoaderTimer* NewL( CASYProxyAsyLoader* aLoader );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CASYProxyLoaderTimer();
       
    58 
       
    59     public: // New functions
       
    60 
       
    61        /**
       
    62         * Starts timer.
       
    63         * @since S60 3.1
       
    64         * @param void
       
    65         * @return void
       
    66         */
       
    67         void StartTimer();
       
    68 
       
    69     public: // Functions from base classes
       
    70 
       
    71     protected: // New functions
       
    72 
       
    73     protected: // Functions from base classes
       
    74 
       
    75         /**
       
    76         * From CActive Handles an active object's request completion event.
       
    77         */
       
    78         void RunL();
       
    79 
       
    80         /**
       
    81         * From CActive Handles RunL's leave cases
       
    82         */
       
    83         TInt RunError( TInt aError );
       
    84 
       
    85     private:
       
    86 
       
    87         /**
       
    88         * C++ default constructor.
       
    89         */
       
    90         CASYProxyLoaderTimer( CASYProxyAsyLoader* aLoader );
       
    91 
       
    92         /**
       
    93         * By default Symbian 2nd phase constructor is private.
       
    94         */
       
    95         void ConstructL();
       
    96 
       
    97     public:     // Data
       
    98 
       
    99     protected:  // Data
       
   100 
       
   101     private:    // Data
       
   102 
       
   103         // Pointer to a loader object
       
   104         CASYProxyAsyLoader* iLoader; // Not owned
       
   105 
       
   106     public:     // Friend classes
       
   107 
       
   108     protected:  // Friend classes
       
   109 
       
   110     private:    // Friend classes
       
   111 
       
   112     };
       
   113 
       
   114 #endif // CASYPROXYLOADERTIMER_H
       
   115 
       
   116 // End of File