|
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: Encapsulates the ECom plugged sending service data. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ============================ MEMBER FUNCTIONS =============================== |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // CSendingServiceInfoImpl::ServiceName |
|
24 // Returns service human readable name. |
|
25 // (other items were commented in a header). |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 inline const TPtrC CSendingServiceInfoImpl::ServiceName() const |
|
29 { |
|
30 return iServiceName ? TPtrC( *iServiceName ) : TPtrC(); |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CSendingServiceInfoImpl::ServiceMenuName |
|
35 // Returns service human readable name for the "Send"-menu. |
|
36 // (other items were commented in a header). |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 inline const TPtrC CSendingServiceInfoImpl::ServiceMenuName() const |
|
40 { |
|
41 return iServiceMenuName ? TPtrC( *iServiceMenuName ) : TPtrC(); |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CSendingServiceInfoImpl::ServiceAddress |
|
46 // Returns service address. |
|
47 // (other items were commented in a header). |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 inline const TPtrC CSendingServiceInfoImpl::ServiceAddress() const |
|
51 { |
|
52 return iServiceAddress ? TPtrC( *iServiceAddress ) : TPtrC(); |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CSendingServiceInfoImpl::SetServiceId |
|
57 // Sets service id. |
|
58 // (other items were commented in a header). |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 inline void CSendingServiceInfoImpl::SetServiceId( TUid aServiceId ) |
|
62 { |
|
63 iServiceId = aServiceId; |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CSendingServiceInfoImpl::ServiceId |
|
68 // Returns service id. |
|
69 // (other items were commented in a header). |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 inline TUid CSendingServiceInfoImpl::ServiceId() const |
|
73 { |
|
74 return iServiceId; |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CSendingServiceInfoImpl::SetServiceProviderId |
|
79 // Sets service provider id. |
|
80 // (other items were commented in a header). |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 inline void CSendingServiceInfoImpl::SetServiceProviderId( |
|
84 TUid aServiceProviderId ) |
|
85 { |
|
86 iServiceProviderId = aServiceProviderId; |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CSendingServiceInfoImpl::ServiceProviderId |
|
91 // Returns service provider id. |
|
92 // (other items were commented in a header). |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 inline TUid CSendingServiceInfoImpl::ServiceProviderId() const |
|
96 { |
|
97 return iServiceProviderId; |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CSendingServiceInfoImpl::SetServiceCapabilities |
|
102 // Set service sending capabilities. |
|
103 // (other items were commented in a header). |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 inline void CSendingServiceInfoImpl::SetServiceCapabilities( |
|
107 TSendingCapabilities aServiceCapabilities ) |
|
108 { |
|
109 iServiceCapabilities = aServiceCapabilities; |
|
110 } |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // CSendingServiceInfoImpl::ServiceCapabilities |
|
114 // Returns service sending capabilities. |
|
115 // (other items were commented in a header). |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 inline TSendingCapabilities CSendingServiceInfoImpl::ServiceCapabilities() const |
|
119 { |
|
120 return iServiceCapabilities; |
|
121 } |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // CSendingServiceInfoImpl::ServiceId |
|
125 // Returns service id. |
|
126 // (other items were commented in a header). |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 inline TUid CSendingServiceInfoImpl::TechnologyTypeId() const |
|
130 { |
|
131 return iTechnologyTypeId; |
|
132 } |
|
133 |
|
134 // ----------------------------------------------------------------------------- |
|
135 // CSendingServiceInfoImpl::SetServiceProviderId |
|
136 // Sets service provider id. |
|
137 // (other items were commented in a header). |
|
138 // ----------------------------------------------------------------------------- |
|
139 // |
|
140 inline void CSendingServiceInfoImpl::SetTechnologyTypeId( |
|
141 TUid aTechnologyTypeId ) |
|
142 { |
|
143 iTechnologyTypeId = aTechnologyTypeId; |
|
144 } |
|
145 |
|
146 // ----------------------------------------------------------------------------- |
|
147 // CSendingServiceInfoImpl::SetServiceCapabilities |
|
148 // Set service sending capabilities. |
|
149 // (other items were commented in a header). |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 inline void CSendingServiceInfoImpl::SetServiceFeatures( |
|
153 TInt aServiceFeatures ) |
|
154 { |
|
155 iServiceFeatures = aServiceFeatures; |
|
156 } |
|
157 |
|
158 // ----------------------------------------------------------------------------- |
|
159 // CSendingServiceInfoImpl::ServiceCapabilities |
|
160 // Returns service sending capabilities. |
|
161 // (other items were commented in a header). |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 inline TInt CSendingServiceInfoImpl::ServiceFeatures() const |
|
165 { |
|
166 return iServiceFeatures; |
|
167 } |
|
168 |
|
169 // End of File |