phoneengine/phonemodel/inc/cpeactivestarter.h
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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:  This file contains the header file of the CPEActiveStarter class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPEACTIVESTARTER_H
       
    20 #define CPEACTIVESTARTER_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mpeactivestarter.h"
       
    25 
       
    26 //CONSTANTS
       
    27 //None.
       
    28 
       
    29 // MACROS
       
    30 //None.
       
    31 
       
    32 // DATA TYPES
       
    33 //None.
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 //None.
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 //None.
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44 *  Starts Phone Engine's modules asynchronically. 
       
    45 *  
       
    46 *
       
    47 *  @lib PhoneEngineBase.lib
       
    48 *  @since Series60_2.7
       
    49 */
       
    50 NONSHARABLE_CLASS( CPEActiveStarter ) : public CActive
       
    51     {
       
    52     public:    //Constructors and descructor
       
    53 
       
    54         /**
       
    55         * Two-phased constructor.
       
    56         */
       
    57         static CPEActiveStarter* NewL( MPEActiveStarter* aPEActiveStarter );
       
    58     
       
    59         /**
       
    60         * Destructor.
       
    61         */
       
    62         virtual ~CPEActiveStarter();
       
    63 
       
    64     public:    //New functions
       
    65 
       
    66         /**
       
    67         * Starts Phone engine constuction.
       
    68         * @since Series60_2.7
       
    69         */        
       
    70         void StartUp();
       
    71 
       
    72     protected: // From CActive
       
    73 
       
    74         /**
       
    75         * Cancels asyncronous request(s).
       
    76         * @since Series60_2.7
       
    77         */
       
    78         void DoCancel();
       
    79 
       
    80         /**
       
    81         * Standard RunError() method
       
    82         * @since Series60_2.7
       
    83         * @param  aError The leave code.
       
    84         * @return KErrNone.
       
    85         */
       
    86         TInt RunError( TInt aError );
       
    87 
       
    88         /**
       
    89         * Standard RunL() method
       
    90         * @since Series60_2.7
       
    91         */
       
    92         void RunL();
       
    93         
       
    94     private:
       
    95     
       
    96         /**
       
    97         * C++ default constructor.
       
    98         */
       
    99         CPEActiveStarter( MPEActiveStarter* aPEActiveStarter );
       
   100         
       
   101     private:    //Data
       
   102 
       
   103         // protocol specific active starter pointer
       
   104         MPEActiveStarter* iActiveStarter;
       
   105     };
       
   106 
       
   107 #endif // CPEACTIVESTARTER_H
       
   108 
       
   109 // End of File