phonebookui/Phonebook/App/inc/CPbkAiwInterestItemSyncMl.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Implements SyncML AIW interest item functionality.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CPbkAiwInterestItemSyncMl_H__
       
    21 #define __CPbkAiwInterestItemSyncMl_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "CPbkAiwInterestItemBase.h"
       
    26 #include <MPbkAiwInterestItem.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CPbkContactEngine;
       
    30 class CAiwServiceHandler;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Base AIW interest item. Implements common AIW interest logic.
       
    36  *
       
    37  */
       
    38 class CPbkAiwInterestItemSyncMl :
       
    39         public CPbkAiwInterestItemBase, public MPbkAiwInterestItem
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         /**
       
    43          * Creates a new instance of this class.
       
    44          */
       
    45         static CPbkAiwInterestItemSyncMl* NewL(
       
    46             CAiwServiceHandler& aServiceHandler,
       
    47             CPbkContactEngine& aEngine);
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         ~CPbkAiwInterestItemSyncMl();
       
    53 
       
    54     public:  // from MPbkAiwInterestItem
       
    55         TBool InitMenuPaneL(
       
    56             TInt aResourceId,
       
    57             CEikMenuPane& aMenuPane,
       
    58             TUint aFlags);
       
    59         TBool HandleCommandL(
       
    60             TInt aMenuCommandId,
       
    61             const CContactIdArray& aContacts,
       
    62             const TPbkContactItemField* aFocusedField = NULL,
       
    63             TInt aServiceCommandId = KNullHandle,
       
    64             MPbkAiwCommandObserver* aObserver = NULL);
       
    65         void AttachL(
       
    66             TInt aMenuResourceId,
       
    67             TInt aInterestResourceId,
       
    68             TBool aAttachBaseServiceInterest);
       
    69 
       
    70     private:  // implementation
       
    71         CPbkAiwInterestItemSyncMl(
       
    72             CAiwServiceHandler& aServiceHandler,
       
    73             CPbkContactEngine& aEngine);
       
    74 
       
    75     private: // data
       
    76         /// Ref: Phonebook contact engine
       
    77         CPbkContactEngine& iEngine;
       
    78     };
       
    79 
       
    80 #endif // __CPbkAiwInterestItemSyncMl_H__
       
    81 
       
    82 // End of File