1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
22 @publishedAll |
22 @publishedAll |
23 @released |
23 @released |
24 */ |
24 */ |
25 |
25 |
26 #if !defined(SMSUADDR_H__) |
26 #if !defined(SMSUADDR_H__) |
27 /** @internalComponent */ |
|
28 #define SMSUADDR_H__ |
27 #define SMSUADDR_H__ |
29 |
28 |
30 #include <e32property.h> |
29 #include <e32property.h> |
31 #include <es_sock.h> |
30 #include <es_sock.h> |
32 #include <etelmm.h> |
|
33 |
31 |
34 /** SMS sockets family identifier.*/ |
32 /** SMS sockets family identifier.*/ |
35 const TUint KSMSAddrFamily = 0x010; |
33 const TUint KSMSAddrFamily = 0x010; |
36 /** SMS sockets protocol ID. */ |
34 /** SMS sockets protocol ID. */ |
37 const TUint KSMSDatagramProtocol = 0x02; |
35 const TUint KSMSDatagramProtocol = 0x02; |
40 /** The maximum datagram size the SMS sockets protocol supports. */ |
38 /** The maximum datagram size the SMS sockets protocol supports. */ |
41 const TUint KSMSMaxDatagramSize = 255*160; // Based on 7 bit encoding |
39 const TUint KSMSMaxDatagramSize = 255*160; // Based on 7 bit encoding |
42 /** SMS sockets service flags. */ |
40 /** SMS sockets service flags. */ |
43 const TUint KSMSDatagramServiceInfo = KSIConnectionLess | KSIMessageBased ; |
41 const TUint KSMSDatagramServiceInfo = KSIConnectionLess | KSIMessageBased ; |
44 |
42 |
45 /** |
|
46 * @internalComponent |
|
47 */ |
|
48 _LIT(KSmsDatagram,"SMS Datagram"); |
43 _LIT(KSmsDatagram,"SMS Datagram"); |
49 |
44 |
50 /** Specifies SMS sockets protocol level for the provider in the aLevel argument of RSocket::Ioctl(). */ |
45 /** Specifies SMS sockets protocol level for the provider in the aLevel argument of RSocket::Ioctl(). */ |
51 const TUint KSolSmsProv = 0x100; |
46 const TUint KSolSmsProv = 0x100; |
52 |
47 |
226 * @publishedAll |
221 * @publishedAll |
227 * @released |
222 * @released |
228 */ |
223 */ |
229 enum TSmsAddrFamily |
224 enum TSmsAddrFamily |
230 { |
225 { |
231 ESmsAddrUnbound = 0, ///< Not bound yet. |
226 ESmsAddrUnbound = 0, //< Not bound yet. |
232 ESmsAddrSendOnly = 1, ///< Only for sending, no reception. |
227 ESmsAddrSendOnly = 1, //< Only for sending, no reception. |
233 ESmsAddrMessageIndication = 2, ///< Matches on IEI 0x01 and DCS 0x1100xxxx, 0x1101xxxx and 0x1110xxxx. |
228 ESmsAddrMessageIndication = 2, //< Matches on IEI 0x01 and DCS 0x1100xxxx, 0x1101xxxx and 0x1110xxxx. |
234 ESmsAddrMatchIEI = 3, ///< For matching Information Element Identifiers (IEI) |
229 ESmsAddrMatchIEI = 3, //< For matching Information Element Identifiers (IEI) |
235 ESmsAddrMatchText = 4, ///< For matching any text patterns |
230 ESmsAddrMatchText = 4, //< For matching any text patterns |
236 ESmsAddrRecvAny = 5, ///< Receive all messages. Only one client can use this. |
231 ESmsAddrRecvAny = 5, //< Receive all messages. Only one client can use this. |
237 ESmsAddrStatusReport = 6, ///< For receiving Status Reports. |
232 ESmsAddrStatusReport = 6, //< For receiving Status Reports. |
238 ESmsAddrLocalOperation = 7, ///< For local SIM operations. |
233 ESmsAddrLocalOperation = 7, //< For local SIM operations. |
239 ESmsAddrApplication8BitPort = 8, ///< For sock port identification. |
234 ESmsAddrApplication8BitPort = 8, //< For sock port identification. |
240 ESmsAddrApplication16BitPort = 9, ///< For sock port identification. |
235 ESmsAddrApplication16BitPort = 9, //< For sock port identification. |
241 ESmsAddrEmail = 10 ///< for matching of email messages. |
236 ESmsAddrEmail = 10 //< for matching of email messages. |
242 }; |
237 }; |
243 |
238 |
244 |
239 |
245 |
240 |
246 /** |
241 /** |