coreapplicationuis/advancedtspcontroller/inc/remconidlelistener.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  Idle state listener
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef REMCONIDLELISTENER_H
       
    21 #define REMCONIDLELISTENER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32property.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CRemConTspController;
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Idle state listener implementation.
       
    41 *
       
    42 *  RemTspController.lib
       
    43 *  @since S60 3.1
       
    44 */
       
    45 NONSHARABLE_CLASS( CRemConIdleListener ) : public CActive
       
    46     {
       
    47     public: // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CRemConIdleListener();
       
    53 
       
    54         /**
       
    55         * Two-phased constructor.
       
    56         */
       
    57         static CRemConIdleListener* NewL( CRemConTspController& aController );
       
    58 
       
    59     private: // New functions
       
    60 
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64         CRemConIdleListener( CRemConTspController& aController );
       
    65 
       
    66         /**
       
    67         * Symbian 2nd phase constructor.
       
    68         */
       
    69         void ConstructL();
       
    70 
       
    71         static TInt RetryCB( TAny* aPtr );
       
    72 
       
    73         void CreateController();
       
    74 
       
    75     private:  // Functions from base classes
       
    76 
       
    77         //from CActive
       
    78         void DoCancel();
       
    79 
       
    80         void RunL();
       
    81 
       
    82         TInt RunError( TInt aError );
       
    83 
       
    84     private:    
       
    85         
       
    86         // not owned
       
    87         CRemConTspController& iController;
       
    88         
       
    89         // owned    
       
    90         RProperty iProperty;
       
    91         
       
    92         // owned
       
    93         CPeriodic* iPeriodic;
       
    94         
       
    95         // not owned
       
    96         TBool* iDeleteInd;
       
    97     };
       
    98 
       
    99 #endif // REMCONIDLELISTENER_H
       
   100 
       
   101 // End of File