|
1 /* |
|
2 * Copyright (c) 2010 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: Class implementing the instant messaging operation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef EDCONTACTORIMOPERATION_H |
|
20 #define EDCONTACTORIMOPERATION_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class CCmsContactorImPluginBase; |
|
29 class CSPSettings; |
|
30 class CEDContactorOperation; |
|
31 |
|
32 /** |
|
33 * Class implementing the instant messaging operation |
|
34 * |
|
35 * @code |
|
36 * ?good_class_usage_example(s) |
|
37 * @endcode |
|
38 * |
|
39 * @lib |
|
40 * @since S60 v5.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS(CEDContactorIMOperation) : public CEDContactorOperation |
|
43 { |
|
44 public: |
|
45 // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CEDContactorIMOperation(); |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 * |
|
55 * @param aParam The IM "address" to send the message to |
|
56 */ |
|
57 static CEDContactorIMOperation* NewL(const TDesC& aParam); |
|
58 |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 * |
|
62 * @param aParam The IM "address" to send the message to |
|
63 */ |
|
64 static CEDContactorIMOperation* NewLC(const TDesC& aParam); |
|
65 |
|
66 /** |
|
67 * Executes the operation (opens the message editor) |
|
68 */ |
|
69 virtual void ExecuteLD(); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * Constructor for performing 1st stage construction |
|
75 * |
|
76 * @param aParam The IM "address" to send the message to |
|
77 */ |
|
78 CEDContactorIMOperation(const TDesC& aParam); |
|
79 |
|
80 /** |
|
81 * EPOC default constructor for performing 2nd stage construction |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: |
|
86 /** |
|
87 * Resolve IM Launcher ECom UID |
|
88 * |
|
89 * @since S60 v5.0 |
|
90 * @param aServiceId service id |
|
91 * @return ECom UID |
|
92 */ |
|
93 TUid ResolveEcomUidL( const TDesC& aServiceId ); |
|
94 |
|
95 /** |
|
96 * Resolve IM Launcher ECom UID |
|
97 * |
|
98 * @since S60 v5.0 |
|
99 * @param aServiceId service id |
|
100 * @return Ecom UId in interegr |
|
101 */ |
|
102 TInt DoResolveEcomUidL( const TDesC& aServiceId ); |
|
103 |
|
104 /** |
|
105 * Load the ECom plugin |
|
106 * |
|
107 * @since S60 v5.0 |
|
108 * @param aUidImp implementation UID |
|
109 * @param aXspId service provider id |
|
110 */ |
|
111 void LoadEcomL( TUid aUidImp, const TDesC& aXspId ); |
|
112 |
|
113 /** |
|
114 * Extracts service part from XspId |
|
115 * |
|
116 * @since S60 v5.0 |
|
117 * @param aXspId service provider id |
|
118 * @return service part (uri scheme part) |
|
119 */ |
|
120 TPtrC ExtractService( const TDesC& aXspId ); |
|
121 private: |
|
122 |
|
123 /** |
|
124 * Im Plugin. |
|
125 * OWN |
|
126 */ |
|
127 CCmsContactorImPluginBase* iPlugin; |
|
128 |
|
129 /** |
|
130 * Service Provider Settings |
|
131 * OWN |
|
132 */ |
|
133 CSPSettings* iSPSettings; |
|
134 |
|
135 }; |
|
136 |
|
137 #endif // EDCONTACTORIMOPERATION_H |
|
138 // End of File |