phonebookui/Phonebook2/Commands/inc/CPbk2AiwInterestItemOviSync.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 AIW interest item.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPPBK2AIWINTERESTITEMOVISYNC_H
       
    19 #define CPPBK2AIWINTERESTITEMOVISYNC_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "CPbk2AiwInterestItemBase.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CAiwServiceHandler;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Phonebook 2 Ovisync AIW interest item.
       
    32  */
       
    33 NONSHARABLE_CLASS(CPbk2AiwInterestItemOviSync) :
       
    34         public CPbk2AiwInterestItemBase
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37 
       
    38         /**
       
    39          * Creates a new instance of this class.
       
    40          *
       
    41          * @param aInterestId       Interest id.
       
    42          * @param aServiceHandler   AIW service handler.
       
    43          * @return  A new instance of this class.
       
    44          */
       
    45         static CPbk2AiwInterestItemOviSync* NewL(
       
    46                 TInt aInterestId,
       
    47                 CAiwServiceHandler& aServiceHandler );
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         ~CPbk2AiwInterestItemOviSync();
       
    53 
       
    54     public: // From MPbk2AiwInterestItem
       
    55         TBool DynInitMenuPaneL(
       
    56                 const TInt aResourceId,
       
    57                 CEikMenuPane& aMenuPane,
       
    58                 const MPbk2ContactUiControl& aControl );
       
    59         TBool HandleCommandL(
       
    60                 const TInt aMenuCommandId,
       
    61                 MPbk2ContactUiControl& aControl,
       
    62                 TInt aServiceCommandId );
       
    63 
       
    64     private: // From CActive
       
    65         void DoCancel();
       
    66         void RunL();
       
    67         TInt RunError(TInt aError);
       
    68 
       
    69     private: // Implementation
       
    70         CPbk2AiwInterestItemOviSync(
       
    71                 TInt aInterestId,
       
    72                 CAiwServiceHandler& aServiceHandler );
       
    73     };
       
    74 
       
    75 #endif // CPPBK2AIWINTERESTITEMOVISYNC_H
       
    76 
       
    77 // End of File