homesync/contentmanager/cmserver/cmfillmanager/inc/cmfmao.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Fill rule and filled data managing Active object
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CMFMAO_H
       
    21 #define __CMFMAO_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 
       
    27 // Forward Declarations
       
    28 class CCmFmFillRuleFilledDataMngr;
       
    29       
       
    30  /**
       
    31   *  Class asyncronous request completions from sqlite wrapper 
       
    32   *
       
    33   *  @lib cmfillmanager.lib
       
    34   *
       
    35   *  @since S60 5.1
       
    36   */
       
    37 NONSHARABLE_CLASS( CCmFmAo ): public CActive
       
    38     {
       
    39                 
       
    40 public:    
       
    41 
       
    42     /**
       
    43      * Creates new CCmFmAo class
       
    44      *
       
    45      * @since S60 5.1
       
    46      * @param aMngr, main class
       
    47      * @return  pointer to CCmFmAo class
       
    48      */
       
    49     static CCmFmAo* NewL( CCmFmFillRuleFilledDataMngr& aMngr );
       
    50     
       
    51     /**
       
    52      * Creates new CCmFmAo class
       
    53      *
       
    54      * @since S60 5.1
       
    55      * @param aMngr, main class
       
    56      * @return  pointer to CCmFmAo class
       
    57      */
       
    58     static CCmFmAo* NewLC( CCmFmFillRuleFilledDataMngr& aMngr );
       
    59 
       
    60     /**
       
    61      * Destructor.
       
    62      */
       
    63     virtual ~CCmFmAo(); 
       
    64 
       
    65 // Functions from base class CActive
       
    66 
       
    67     /**
       
    68      * From CActive
       
    69      * See base class definition
       
    70      */
       
    71     void RunL();
       
    72 
       
    73     /**
       
    74      * From CActive
       
    75      * See base class definition
       
    76      */
       
    77     void DoCancel();
       
    78     
       
    79     /**
       
    80      * From CActive
       
    81      * See base class definition
       
    82      */
       
    83     virtual TInt RunError( TInt aError );
       
    84         
       
    85 private:
       
    86 
       
    87     /**
       
    88      * Performs the first phase of two phase construction.
       
    89      *
       
    90      * @since S60 5.1
       
    91      * @param aMngr, fill rule filled data manager
       
    92      */
       
    93     CCmFmAo( CCmFmFillRuleFilledDataMngr& aMngr );
       
    94 
       
    95     /**
       
    96      * Performs the second phase construction.
       
    97      */
       
    98     void ConstructL();
       
    99     
       
   100 
       
   101 private:
       
   102     
       
   103     /**
       
   104      * Main manager class
       
   105      */
       
   106     CCmFmFillRuleFilledDataMngr& iMngr;
       
   107     
       
   108     /**
       
   109      * State variable if ETrue ao is on idle state
       
   110      */
       
   111     TBool iIdle;
       
   112  
       
   113     };
       
   114 
       
   115 #endif //  __CMFMAO_H
       
   116 
       
   117 //  End of File