|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Implementation of CMessageAddress interface. |
|
15 * Encapsulates the ECom plugged sending service data. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CSENDINGSERVICEINFOIMPL_H |
|
22 #define CSENDINGSERVICEINFOIMPL_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <sendui.h> // TSendingCapabilities |
|
27 |
|
28 class RReadStream; |
|
29 class RWriteStream; |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Encapsulates the ECom plugged sending service data. |
|
34 * |
|
35 * @lib Sendui |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class CSendingServiceInfoImpl : public CBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @return Pointer to object of CSendingServiceInfoImpl. |
|
45 */ |
|
46 static CSendingServiceInfoImpl* NewL(); |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 * @return Pointer to object of CSendingServiceInfoImpl. |
|
51 */ |
|
52 static CSendingServiceInfoImpl* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CSendingServiceInfoImpl(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * Creates a copy of CSendingServiceInfoImpl object. |
|
63 * @since Series 60 3.0 |
|
64 * @return A pointer to the new copy of the CSendingServiceInfoImpl object. |
|
65 */ |
|
66 CSendingServiceInfoImpl* CopyL() const; |
|
67 |
|
68 /** |
|
69 * Set service human readable name. |
|
70 * Service name is used in editors "To"-field. |
|
71 * @since Series 60 3.0 |
|
72 * @param aServiceName Service human readable name. |
|
73 * @return None. |
|
74 */ |
|
75 void SetServiceNameL( const TDesC& aServiceName ); |
|
76 |
|
77 /** |
|
78 * Returns service human readable name. |
|
79 * Service name is used in editors "To"-field. |
|
80 * @since Series 60 3.0 |
|
81 * @return Service human readable name. |
|
82 */ |
|
83 inline const TPtrC ServiceName() const; |
|
84 |
|
85 /** |
|
86 * Set service human readable name for the "Send"-menu. |
|
87 * @since Series 60 3.0 |
|
88 * @param aServiceMenuName Service human readable name for the |
|
89 * "Send"-menu. |
|
90 * @return None. |
|
91 */ |
|
92 void SetServiceMenuNameL( const TDesC& aServiceMenuName ); |
|
93 |
|
94 /** |
|
95 * Returns service human readable name for the "Send"-menu. |
|
96 * @since Series 60 3.0 |
|
97 * @return Service human readable name for the "Send"-menu. |
|
98 */ |
|
99 inline const TPtrC ServiceMenuName() const; |
|
100 |
|
101 /** |
|
102 * Set service address. |
|
103 * @since Series 60 3.0 |
|
104 * @param aServiceAddress Service address. |
|
105 * @return None. |
|
106 */ |
|
107 void SetServiceAddressL( const TDesC& aServiceAddress ); |
|
108 |
|
109 /** |
|
110 * Returns service address. |
|
111 * @since Series 60 3.0 |
|
112 * @return Service address. |
|
113 */ |
|
114 inline const TPtrC ServiceAddress() const; |
|
115 |
|
116 /** |
|
117 * Set sending service id. |
|
118 * @since Series 60 3.0 |
|
119 * @param aServiceId Service id. |
|
120 * @return None. |
|
121 */ |
|
122 inline void SetServiceId( TUid aServiceId ); |
|
123 |
|
124 /** |
|
125 * Returns sending service id. |
|
126 * @since Series 60 3.0 |
|
127 * @return Service id. |
|
128 */ |
|
129 inline TUid ServiceId() const; |
|
130 |
|
131 /** |
|
132 * Set sending service provider id. |
|
133 * @since Series 60 3.0 |
|
134 * @param aServiceProviderId Service provider id. |
|
135 * @return None. |
|
136 */ |
|
137 inline void SetServiceProviderId( TUid aServiceProviderId ); |
|
138 |
|
139 /** |
|
140 * Returns sending service provider id. |
|
141 * @since Series 60 3.0 |
|
142 * @return Service provider id. |
|
143 */ |
|
144 inline TUid ServiceProviderId() const; |
|
145 |
|
146 /** |
|
147 * Set service sending capabilities. |
|
148 * @since Series 60 3.0 |
|
149 * @param aServiceCapabilities Service sending capabilities. |
|
150 * @return None. |
|
151 */ |
|
152 inline void SetServiceCapabilities( |
|
153 TSendingCapabilities aServiceCapabilities ); |
|
154 |
|
155 /** |
|
156 * Returns service sending capabilities. |
|
157 * @since Series 60 3.0 |
|
158 * @return Service sending capabilities. |
|
159 */ |
|
160 inline TSendingCapabilities ServiceCapabilities() const; |
|
161 |
|
162 /** |
|
163 * Returns sending service's technology type id. |
|
164 * @since Series 60 3.1 |
|
165 * @return Technology type. |
|
166 */ |
|
167 inline TUid TechnologyTypeId() const; |
|
168 |
|
169 /** |
|
170 * Set sending service id. |
|
171 * @since Series 60 3.0 |
|
172 * @param aServiceId Service id. |
|
173 * @return None. |
|
174 */ |
|
175 inline void SetTechnologyTypeId( TUid aTechnologyTypeId ); |
|
176 |
|
177 |
|
178 void ExternalizeL( RWriteStream& aStream ); |
|
179 |
|
180 void InternalizeL( RReadStream& aStream ); |
|
181 |
|
182 /** |
|
183 * Set service sending capabilities. |
|
184 * @since Series 60 3.0 |
|
185 * @param aServiceCapabilities Service sending capabilities. |
|
186 * @return None. |
|
187 */ |
|
188 inline void SetServiceFeatures( TInt aServiceFeatures ); |
|
189 |
|
190 /** |
|
191 * Returns service sending capabilities. |
|
192 * @since Series 60 3.0 |
|
193 * @return Service sending capabilities. |
|
194 */ |
|
195 inline TInt ServiceFeatures() const; |
|
196 |
|
197 private: |
|
198 |
|
199 |
|
200 /** |
|
201 * C++ default constructor. |
|
202 */ |
|
203 CSendingServiceInfoImpl(); |
|
204 |
|
205 /** |
|
206 * By default Symbian 2nd phase constructor is private. |
|
207 */ |
|
208 void ConstructL(); |
|
209 |
|
210 private: // Data |
|
211 |
|
212 HBufC* iServiceName; |
|
213 HBufC* iServiceMenuName; |
|
214 HBufC* iServiceAddress; |
|
215 TUid iServiceId; |
|
216 TUid iServiceProviderId; |
|
217 TUid iTechnologyTypeId; |
|
218 TSendingCapabilities iServiceCapabilities; |
|
219 TInt iServiceFeatures; |
|
220 }; |
|
221 |
|
222 #include "CSendingServiceInfo.inl" |
|
223 |
|
224 #endif // CSENDINGSERVICEINFOIMPL_H |
|
225 |
|
226 // End of File |