phonebookui/Phonebook2/Commands/inc/CPbk2OviSyncCmd.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 OviSync command object.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPBK2OVISYNCCMD_H
       
    19 #define CPBK2OVISYNCCMD_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <MPbk2Command.h>
       
    24 #include <AiwCommon.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAiwServiceHandler;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Phonebook 2 ovisync command object.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2OviSyncCmd) : 
       
    35         public CBase,
       
    36         public MPbk2Command
       
    37     {
       
    38     public: // Construction and destruction
       
    39         /**
       
    40          * Creates a new instance of this class.
       
    41          *
       
    42          * @param aCommandId        Command id.
       
    43          * @param aServiceHandler   Service handler.
       
    44          * @return  A new instance of this class.
       
    45          */
       
    46         static CPbk2OviSyncCmd* NewL (
       
    47                 TInt aCommandId,
       
    48                 CAiwServiceHandler& aServiceHandler );
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CPbk2OviSyncCmd();
       
    54 
       
    55     public: // From MPbk2Command
       
    56         void ExecuteLD();
       
    57         void ResetUiControl(
       
    58                 MPbk2ContactUiControl& aUiControl );
       
    59         void AddObserver(
       
    60                 MPbk2CommandObserver& aObserver );
       
    61 
       
    62     private:  // Implementation
       
    63         CPbk2OviSyncCmd (
       
    64                 TInt aCommandId,
       
    65                 CAiwServiceHandler& aServiceHandler );
       
    66 
       
    67     private: // Data
       
    68         /// Own: Command id
       
    69         TInt iCommandId;
       
    70         /// Ref: AIW service handler
       
    71         CAiwServiceHandler& iServiceHandler;
       
    72     };
       
    73 
       
    74 #endif // CPBK2OVISYNCCMD_H
       
    75 
       
    76 // End of File