|
1 /* |
|
2 * Copyright (c) 2002-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 command object factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2COMMANDFACTORY_H |
|
20 #define CPBK2COMMANDFACTORY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <MPbk2CommandFactory.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MPbk2ContactUiControl; |
|
28 class CPbk2UIExtensionManager; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Phonebook 2 command object factory. |
|
34 * Responsible for creating command objects. |
|
35 */ |
|
36 NONSHARABLE_CLASS(CPbk2CommandFactory) : public CBase, |
|
37 public MPbk2CommandFactory |
|
38 { |
|
39 public: // Constructor and destructor |
|
40 |
|
41 /** |
|
42 * Creates a new instance of this class. |
|
43 * |
|
44 * @return A new instance of this class. |
|
45 */ |
|
46 static CPbk2CommandFactory* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CPbk2CommandFactory(); |
|
52 |
|
53 public: // From MPbk2CommandFactory |
|
54 MPbk2Command* CreateCommandForIdL( |
|
55 TPbk2CommandId aCommandId, |
|
56 MPbk2ContactUiControl& aUiControl ) const; |
|
57 |
|
58 public: // Implementation |
|
59 MPbk2Command* CreateDeleteContactsCommandL( |
|
60 MPbk2ContactUiControl& aUiControl ) const; |
|
61 MPbk2Command* CreateGoToURLCommandL( |
|
62 MPbk2ContactUiControl& aUiControl ) const; |
|
63 MPbk2Command* CreateNewContactCommandL( |
|
64 MPbk2ContactUiControl& aUiControl ) const; |
|
65 MPbk2Command* CreateEditContactCommandL( |
|
66 MPbk2ContactUiControl& aUiControl ) const; |
|
67 MPbk2Command* CreateSendMessageCommandL( |
|
68 MPbk2ContactUiControl& aUiControl ) const; |
|
69 MPbk2Command* CreateSetThumbnailCommandL( |
|
70 MPbk2ContactUiControl& aUiControl ) const; |
|
71 MPbk2Command* CreateAssignDefaultsCommandL( |
|
72 MPbk2ContactUiControl& aUiControl ) const; |
|
73 MPbk2Command* CreateRemoveThumbnailCommandL( |
|
74 MPbk2ContactUiControl& aUiControl ) const; |
|
75 MPbk2Command* CreateAddImageCommandL( |
|
76 MPbk2ContactUiControl& aUiControl ) const; |
|
77 MPbk2Command* CreateViewImageCommandL( |
|
78 MPbk2ContactUiControl& aUiControl ) const; |
|
79 MPbk2Command* CreateChangeImageCommandL( |
|
80 MPbk2ContactUiControl& aUiControl ) const; |
|
81 MPbk2Command* CreateRemoveImageCommandL( |
|
82 MPbk2ContactUiControl& aUiControl ) const; |
|
83 MPbk2Command* CreateAssignSpeedDialCommandL( |
|
84 MPbk2ContactUiControl& aUiControl ) const; |
|
85 MPbk2Command* CreateRemoveSpeedDialCommandL( |
|
86 MPbk2ContactUiControl& aUiControl ) const; |
|
87 MPbk2Command* CreateSendContactCommandL( |
|
88 MPbk2ContactUiControl& aUiControl ) const; |
|
89 MPbk2Command* CreateCopyContactsStarterCommandL( |
|
90 MPbk2ContactUiControl& aUiControl ) const; |
|
91 MPbk2Command* CreateCopyNumberToClipboardCommandL( |
|
92 MPbk2ContactUiControl& aUiControl ) const; |
|
93 MPbk2Command* CreateLaunchInfoDialogCommandL( |
|
94 MPbk2ContactUiControl& aUiControl ) const; |
|
95 MPbk2Command* CreateSendMessageNoQueryCommandL( |
|
96 MPbk2ContactUiControl& aUiControl ) const; |
|
97 MPbk2Command* CreateMergeContactsCommandL( |
|
98 MPbk2ContactUiControl& aUiControl ) const; |
|
99 |
|
100 MPbk2Command* CreateCopyDetailToClipboardCommandL( |
|
101 MPbk2ContactUiControl& aUiControl ) const; |
|
102 MPbk2Command* CreateCopyAddressToClipboardCommandL( |
|
103 MPbk2ContactUiControl& aUiControl ) const; |
|
104 //RCL_ADD |
|
105 MPbk2Command* CreateRclCommandL( |
|
106 MPbk2ContactUiControl& aUiControl ) const; |
|
107 |
|
108 private: // Implementation |
|
109 CPbk2CommandFactory(); |
|
110 }; |
|
111 |
|
112 #endif // CPBK2COMMANDFACTORY_H |
|
113 |
|
114 // End of File |