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