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