|
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 * Call command object. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkCallCmd_H__ |
|
21 #define __CPbkCallCmd_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <cntdef.h> |
|
26 #include <MPbkCommand.h> |
|
27 #include <MPbkBackgroundProcess.h> |
|
28 #include <CPbkAddressSelect.h> |
|
29 #include <AiwDialDataTypes.h> |
|
30 |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CPbkContactItem; |
|
34 class TPbkContactItemField; |
|
35 class CAiwServiceHandler; |
|
36 class CPbkCallTypeSelector; |
|
37 |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * Call command object. |
|
43 */ |
|
44 class CPbkCallCmd : |
|
45 public CBase, |
|
46 public MPbkCommand, |
|
47 private MPbkProcessObserver |
|
48 { |
|
49 public: // Interface |
|
50 /** |
|
51 * Static constructor. |
|
52 * @param aContactItem reference to contact item |
|
53 * @param aSelectField select contact field, can be NULL |
|
54 * @param aFocusedField focused contact field, can be NULL |
|
55 * @param aCommandId command id |
|
56 * @param aServiceHandler service handler |
|
57 * @param aSelector call type selector |
|
58 * @return a new call command object. |
|
59 */ |
|
60 static CPbkCallCmd* NewL ( |
|
61 const CPbkContactItem& aContactItem, |
|
62 const TPbkContactItemField* aSelectedField, |
|
63 const TPbkContactItemField* aFocusedField, |
|
64 const TInt aCommandId, |
|
65 CAiwServiceHandler& aServiceHandler, |
|
66 const CPbkCallTypeSelector& aSelector); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 ~CPbkCallCmd(); |
|
72 |
|
73 public: // from MPbkCommand |
|
74 void ExecuteLD(); |
|
75 |
|
76 public: // from MPbkProcessObserver |
|
77 void ProcessFinished(MPbkBackgroundProcess& aProcess); |
|
78 |
|
79 private: // Implementation |
|
80 CPbkCallCmd ( |
|
81 const CPbkContactItem& aContactItem, |
|
82 const TPbkContactItemField* aSelectedField, |
|
83 const TPbkContactItemField* aFocusedField, |
|
84 const TInt aCommandId, |
|
85 CAiwServiceHandler& aServiceHandler, |
|
86 const CPbkCallTypeSelector& aSelector); |
|
87 void SetupDialDataL(); |
|
88 |
|
89 private: // Data |
|
90 /// Ref: the contact to call |
|
91 const CPbkContactItem& iContact; |
|
92 /// Ref: the phonenumber field to call |
|
93 const TPbkContactItemField* iSelectedField; |
|
94 /// Ref: the focused field of the contact |
|
95 const TPbkContactItemField* iFocusedField; |
|
96 /// Own: command id |
|
97 const TInt iCommandId; |
|
98 /// Ref: AIW service handler |
|
99 CAiwServiceHandler& iServiceHandler; |
|
100 /// Ref: Call type selector |
|
101 const CPbkCallTypeSelector& iSelector; |
|
102 /// Own: dial data |
|
103 TAiwDialDataV1 iDialData; |
|
104 }; |
|
105 |
|
106 #endif // __CPbkCallCmd_H__ |
|
107 |
|
108 // End of File |