|
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: Abstract factory for creating command objects. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCAUICONTACTEDITCMDCB_H |
|
21 #define MCAUICONTACTEDITCMDCB_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 class MCAUiContactEditCmdCB |
|
31 { |
|
32 public: |
|
33 |
|
34 class TContactEditParams |
|
35 { |
|
36 |
|
37 public: |
|
38 enum TContactEditOperations |
|
39 { |
|
40 ELoadContactDetails = 0, |
|
41 EAddContact, |
|
42 EUpdateContact, |
|
43 ERemoveContact, |
|
44 EMoveContact |
|
45 |
|
46 } iContactEditOperation; |
|
47 |
|
48 |
|
49 |
|
50 public: |
|
51 //ctor |
|
52 TContactEditParams() |
|
53 : iAliasEnabled( EFalse ), |
|
54 iNicknameEnabled( EFalse ), |
|
55 iOwnData( EFalse ), |
|
56 iOrigId( NULL ), |
|
57 iAlias( NULL ), |
|
58 iNickname( NULL ), |
|
59 iUserId( NULL ), |
|
60 iIdentification( NULL ), |
|
61 iNewContact( EFalse ), |
|
62 iContactEditOperationError( KErrNone ), |
|
63 iListId( NULL ) |
|
64 { |
|
65 |
|
66 } |
|
67 |
|
68 public: |
|
69 TBool iAliasEnabled; |
|
70 TBool iNicknameEnabled; |
|
71 |
|
72 TBool iOwnData; |
|
73 HBufC* iOrigId; |
|
74 HBufC* iAlias; |
|
75 HBufC* iNickname; |
|
76 HBufC* iUserId; |
|
77 HBufC* iIdentification; |
|
78 |
|
79 TBool iNewContact; |
|
80 |
|
81 TInt iContactEditOperationError; |
|
82 |
|
83 HBufC* iListId; |
|
84 }; |
|
85 |
|
86 public: |
|
87 /** |
|
88 * Executes the command. |
|
89 */ |
|
90 virtual void GetParameters( TContactEditParams& ) = 0; |
|
91 |
|
92 virtual void SetParameters( TContactEditParams& ) = 0; |
|
93 |
|
94 virtual ~MCAUiContactEditCmdCB() |
|
95 { |
|
96 |
|
97 } |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // MCAUICONTACTEDITCMDCB_H |
|
102 // End of File |