equal
deleted
inserted
replaced
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <MPbk2Command.h> |
24 #include <MPbk2Command.h> |
25 |
25 |
26 // FORWARD DECLARATIONS |
26 // FORWARD DECLARATIONS |
27 class MPbk2ContactUiControl; |
27 class MPbk2ContactUiControl; |
|
28 class CPbk2FieldPropertyArray; |
|
29 class CPbk2StoreSpecificFieldPropertyArray; |
|
30 class CPbk2PresentationContact; |
|
31 class CPbk2MyCard; |
28 |
32 |
29 //Cca |
33 //Cca |
30 class MCCAParameter; |
34 class MCCAParameter; |
31 class MCCAConnection; |
35 class MCCAConnection; |
32 |
36 |
47 * @param Pbk2 Contact Ui control |
51 * @param Pbk2 Contact Ui control |
48 * @return A new instance of this class. |
52 * @return A new instance of this class. |
49 */ |
53 */ |
50 static CPbk2OpenMyCardCmd* NewL( |
54 static CPbk2OpenMyCardCmd* NewL( |
51 MCCAConnection*& aCCAConnection, |
55 MCCAConnection*& aCCAConnection, |
|
56 CPbk2MyCard* aMyCard, |
52 MPbk2ContactUiControl* aUiControl = NULL ); |
57 MPbk2ContactUiControl* aUiControl = NULL ); |
53 |
58 |
54 /** |
59 /** |
55 * Destructor. |
60 * Destructor. |
56 */ |
61 */ |
65 void AddObserver( MPbk2CommandObserver& aObserver ); |
70 void AddObserver( MPbk2CommandObserver& aObserver ); |
66 |
71 |
67 private: //Construction |
72 private: //Construction |
68 CPbk2OpenMyCardCmd( |
73 CPbk2OpenMyCardCmd( |
69 MPbk2ContactUiControl* aUiControl, |
74 MPbk2ContactUiControl* aUiControl, |
|
75 CPbk2MyCard* aMyCard, |
70 MCCAConnection*& aCCAConnection ); |
76 MCCAConnection*& aCCAConnection ); |
71 void ConstructL(); |
77 void ConstructL(); |
72 |
78 |
73 private: // Implementation |
79 private: // Implementation |
74 |
80 |
75 void LaunchCcaL(); // Sync |
81 void LaunchCcaL(); // Sync |
76 void IssueRequest(); |
82 void IssueRequest(); |
|
83 |
|
84 /** |
|
85 * Create presentation contact from mycard. |
|
86 */ |
|
87 CPbk2PresentationContact* PresentationContactL(); |
77 |
88 |
78 private: // From CActive |
89 private: // From CActive |
79 void RunL(); |
90 void RunL(); |
80 void DoCancel(); |
91 void DoCancel(); |
81 TInt RunError(TInt aError); |
92 TInt RunError(TInt aError); |
98 MCCAConnection*& iConnectionRef; |
109 MCCAConnection*& iConnectionRef; |
99 // Own: The internal state of the command |
110 // Own: The internal state of the command |
100 TProcessState iState; |
111 TProcessState iState; |
101 /// Requested view uid for CCA |
112 /// Requested view uid for CCA |
102 TUid iViewUid; |
113 TUid iViewUid; |
|
114 /// Not own. My card instance |
|
115 CPbk2MyCard* iMyCard; |
|
116 /// Own. Field properties for presentation contact |
|
117 CPbk2FieldPropertyArray* iFieldProperties; |
|
118 /// Own. Field properties for presentation contact |
|
119 CPbk2StoreSpecificFieldPropertyArray* iSpecificFieldProperties; |
|
120 /// Own. Presentation contact of mycard |
|
121 CPbk2PresentationContact* iPresentationContact; |
103 }; |
122 }; |
104 |
123 |
105 #endif // CPBK2OPENMYCARDCMD_H |
124 #endif // CPBK2OPENMYCARDCMD_H |
106 |
125 |
107 // End of File |
126 // End of File |