homesync/contentmanager/cmserver/cmserver/inc/client/cmactive.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 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:  Content Manager server's client ao header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMACTIVE_H
       
    20 #define CMACTIVE_H
       
    21 
       
    22 #include <badesca.h>
       
    23 #include "contentmanager.h"
       
    24 
       
    25 NONSHARABLE_CLASS ( CCmActive ) : public CActive
       
    26     {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Two-phased constructor.
       
    31      *
       
    32      * @param aCm, cmserver reference
       
    33      */
       
    34     static CCmActive* NewL( RContentManager& aCm );
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      *
       
    39     * @param aCm, cmserver reference     
       
    40      */
       
    41     static CCmActive* NewLC( RContentManager& aCm );
       
    42     
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     virtual ~CCmActive();
       
    47 
       
    48     
       
    49 // From base class CActive
       
    50 
       
    51     /**
       
    52      * From CActive
       
    53      * see base class definition
       
    54      */
       
    55     void RunL();
       
    56 
       
    57 protected:
       
    58 
       
    59 // From base class CActive
       
    60 
       
    61     /**
       
    62      * From CActive
       
    63      * see base class definition
       
    64      */
       
    65     void DoCancel();
       
    66 
       
    67     /**
       
    68      * From CActive
       
    69      * see base class definition
       
    70      */
       
    71     TInt RunError( TInt aError );
       
    72 
       
    73 private:
       
    74 
       
    75     /**
       
    76      * Performs the first phase of two phase construction
       
    77      *
       
    78      * @since S60 5.1
       
    79      * @param aCm, client reference.
       
    80      */    
       
    81     CCmActive( RContentManager& aCm );
       
    82     
       
    83     /**
       
    84      * Performs the second phase construction.
       
    85      */    
       
    86     void ConstructL();
       
    87         
       
    88 private:
       
    89 
       
    90     /**
       
    91      * server client interface
       
    92      */
       
    93     RContentManager& iCm;
       
    94     /**
       
    95      * idle indicator
       
    96      */
       
    97     TBool iIdle;
       
    98     };
       
    99 
       
   100 #endif
       
   101 
       
   102 // End of file