|
1 /* |
|
2 * Copyright (c) 2003-2009 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: |
|
15 * Name : TSIPProfileData.h |
|
16 * Part of : SIP Profile Client / Settings User Interface |
|
17 * Interface : |
|
18 * Data structure for holding the profile data temporarily |
|
19 * Version : 1.0 |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 #ifndef TSIPPROFILEDATA_H |
|
26 #define TSIPPROFILEDATA_H |
|
27 |
|
28 // INCLUDES |
|
29 |
|
30 #include "SIPEx.hrh" |
|
31 #include "TSIPServerData.h" |
|
32 |
|
33 #include "sipprofiletypeinfo.h" |
|
34 |
|
35 // CONSTANTS |
|
36 |
|
37 const TInt KMaxProviderNameLength = 100; |
|
38 const TInt KMaxUsernameLength = 256; |
|
39 const TInt KMaxServiceTypeName = 20; |
|
40 const TInt KAORIndex = 0; |
|
41 |
|
42 // Default values for the first profile |
|
43 // Default profile name is read from .rss - r_qtn_def_profile_name |
|
44 // Default username is read from .rss - r_qtn_def_username |
|
45 // Default server realm is read from .rss - r_qtn_def_username |
|
46 // Default server username is read from .rss - r_qtn_def_username |
|
47 // TO_DO: Def service profile not yet defined |
|
48 const TInt KDefaultIAP = -1; |
|
49 const TInt KDefaultCompression = EComprNo; |
|
50 const TInt KDefaultRegistration = EAlwaysOn; |
|
51 const TInt KDefaultSecurity = ESecurityOn; |
|
52 |
|
53 _LIT( KEmptyString, "" ); |
|
54 _LIT8( KEmptyString8, "" ); |
|
55 const TInt KDefaultLooseRouting = ELooseRoutingOn; |
|
56 const TInt KDefaultPortNumber = 5060; |
|
57 const TInt KDefaultTranspProtocol = ETranspProtocolUDP; |
|
58 |
|
59 const TInt KUnknownProfileIndex = -1; |
|
60 _LIT8( KLabelPassword, "passwd" ); |
|
61 |
|
62 // SIP Protocol header |
|
63 _LIT( KSIPProtocolHeader, "sip:" ); |
|
64 |
|
65 // FORWARD DECLARATIONS |
|
66 |
|
67 class TSIPServerData; |
|
68 |
|
69 // CLASS DECLARATION |
|
70 |
|
71 /** |
|
72 * Data structure to hold the profile data until placed to actual |
|
73 * profile instance. Class does not contain any methods, only data. |
|
74 * |
|
75 * @lib SIPSettingsUI.app |
|
76 * @since 1.0 |
|
77 */ |
|
78 class TSIPProfileData |
|
79 { |
|
80 public: // Data |
|
81 |
|
82 // Provider name |
|
83 TBuf<KMaxProviderNameLength> iProviderName; |
|
84 // Service profile |
|
85 TSIPProfileTypeInfo iServiceProfile; |
|
86 TInt iServiceProfileIndex; |
|
87 |
|
88 // AP index |
|
89 TInt iAPIndex; |
|
90 // Public username |
|
91 TBuf<KMaxUsernameLength> iUsername; |
|
92 // Use compression |
|
93 TInt iCompression; |
|
94 // Registration mode |
|
95 TInt iRegistrationMode; |
|
96 // Security negotiation |
|
97 TInt iSecurity; |
|
98 // Proxy server settings |
|
99 TSIPServerData iProxy; |
|
100 // Registrar server settings |
|
101 TSIPServerData iRegistrar; |
|
102 |
|
103 // Profile ID, -1 if a new profile and not yet saved to permanent |
|
104 // storage |
|
105 TInt iID; |
|
106 }; |
|
107 |
|
108 #endif // TSIPProfileData |
|
109 |
|
110 // End of File |