|
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 * Creates phonebook commands. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkCommandFactory_H__ |
|
21 #define __CPbkCommandFactory_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MPbkCommandFactory.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPbkAppUi; |
|
29 class TPbkContactItemField; |
|
30 class CAiwServiceHandler; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Creates phonebook commands. |
|
36 */ |
|
37 class CPbkCommandFactory : public CBase, |
|
38 public MPbkCommandFactory |
|
39 { |
|
40 public: // Constructor and destructor |
|
41 /** |
|
42 * Static constructor. |
|
43 * @return a new CPbkCommandFactory object |
|
44 */ |
|
45 static CPbkCommandFactory* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CPbkCommandFactory(); |
|
51 |
|
52 public: // From MPbkCommandFactory |
|
53 MPbkCommand* CreateSendContactCmdL( |
|
54 TPbkSendingParams aParams, |
|
55 CPbkContactEngine& aEngine, |
|
56 CBCardEngine& aBCardEng, |
|
57 TContactItemId aContactId, |
|
58 TPbkContactItemField* aField = NULL); |
|
59 |
|
60 MPbkCommand* CreateSendContactsCmdL( |
|
61 TPbkSendingParams aParams, |
|
62 CPbkContactEngine& aEngine, |
|
63 CBCardEngine& aBCardEng, |
|
64 const CContactIdArray& aContacts); |
|
65 |
|
66 MPbkCommand* CreateCallCmdL( |
|
67 const CPbkContactItem& aContactItem, |
|
68 const TPbkContactItemField* aSelectedField, |
|
69 const TPbkContactItemField* aFocusedField, |
|
70 const TInt aCommandId, |
|
71 CAiwServiceHandler& aServiceHandler, |
|
72 const CPbkCallTypeSelector& aCallTypeSelector); |
|
73 |
|
74 MPbkCommand* CreateSendMultipleMessageCmdL( |
|
75 CPbkContactEngine& aEngine, |
|
76 TPbkSendingParams aParams, |
|
77 const CContactIdArray& aContacts, |
|
78 const TPbkContactItemField* aFocusedField, |
|
79 TBool aUseDefaultDirectly); |
|
80 |
|
81 MPbkCommand* CreateGoToURLCmdL( |
|
82 const CPbkContactItem& aContact, |
|
83 const TPbkContactItemField* aFocusedField); |
|
84 |
|
85 MPbkCommand* CreateSettingsCmdL( |
|
86 CPbkContactEngine& aEngine, |
|
87 MObjectProvider& aParent); |
|
88 |
|
89 TBool IsEmailEnabledL(); |
|
90 |
|
91 MPbkCommand* CreatePocCmdL( |
|
92 TInt aCommandId, |
|
93 const CContactIdArray& aContacts, |
|
94 TUint aControlFlags, |
|
95 CAiwServiceHandler& aServiceHandler, |
|
96 const CPbkCallTypeSelector& aCallTypeSelector); |
|
97 |
|
98 MPbkCommand* CreateSyncMlCmdL( |
|
99 TInt aCommandId, |
|
100 CAiwServiceHandler& aServiceHandler); |
|
101 |
|
102 private: // Implementation |
|
103 CPbkCommandFactory(); |
|
104 }; |
|
105 |
|
106 #endif // __CPbkCommandFactory_H__ |
|
107 |
|
108 // End of File |