contextframework/cfw/inc/cfserver/cfphasedevicestarted.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-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:  CFPhaseDeviceStarted class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CFPHASEDEVICESTARTED_H
       
    20 #define C_CFPHASEDEVICESTARTED_H
       
    21 
       
    22 #include "cfphasebase.h"
       
    23 #include "cfpropertylistenercallback.h"
       
    24 
       
    25 class CCFPropertyListener;
       
    26 
       
    27 /**
       
    28 * CF starter phase device started.
       
    29 * This phase is run right after starter informs that device has been started.
       
    30 *
       
    31 * @since S60 4.0
       
    32 * @lib -
       
    33 */
       
    34 NONSHARABLE_CLASS( CCFPhaseDeviceStarted ):
       
    35     public CCFPhaseBase,
       
    36     public MCFPropertyListenerCallBack
       
    37     {
       
    38     public:
       
    39     
       
    40         // Two phased constructors
       
    41         static CCFPhaseDeviceStarted* NewL( MCFContextInterface& aCF );
       
    42         static CCFPhaseDeviceStarted* NewLC( MCFContextInterface& aCF );
       
    43     
       
    44         // C++ destructor
       
    45         ~CCFPhaseDeviceStarted();
       
    46         
       
    47     private: // From base classes
       
    48         
       
    49         // @see CCFPhaseBase        
       
    50         void ExecuteL( TRequestStatus* aStatus );
       
    51 
       
    52         // @see CCFPhaseBase        
       
    53         TCFPhaseId NextPhase() const;
       
    54         
       
    55         // @see MCFPropertyListenerCallBack
       
    56         void HandlePropertyChangedL();
       
    57         
       
    58     private:
       
    59     
       
    60         // Completes request if it is ready
       
    61         void DoComplete();
       
    62 
       
    63     private:
       
    64     
       
    65         CCFPhaseDeviceStarted( MCFContextInterface& aCF );
       
    66         void ConstructL();
       
    67         
       
    68     private: // Data
       
    69     
       
    70         // Own: Property listener
       
    71         CCFPropertyListener* iPropertyListener;
       
    72         
       
    73         // Own: Starter state
       
    74         TInt iStarterState;
       
    75     };
       
    76 
       
    77 #endif