|
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 : TSIPServerData.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 TSIPSERVERDATA_H |
|
26 #define TSIPSERVERDATA_H |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 const TInt KMaxProxyLength = 256; |
|
31 const TInt KMaxRealmLength = 256; |
|
32 const TInt KMaxServerUsernameLength = 72; |
|
33 const TInt KMaxServerPasswordLength = 20; |
|
34 const TInt KMaxPortNumber = 15; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Data structure that contains the server data |
|
40 * Part of SIP profile data structure |
|
41 * |
|
42 * @lib SIPSettingsUI.app |
|
43 * @since 1.0 |
|
44 */ |
|
45 class TSIPServerData |
|
46 { |
|
47 public: // Data |
|
48 |
|
49 // Server's IP address |
|
50 TBuf<KMaxProxyLength> iAddress; |
|
51 // Realm |
|
52 TBuf<KMaxRealmLength> iRealm; |
|
53 // Username |
|
54 TBuf<KMaxServerUsernameLength> iUsername; |
|
55 // Password |
|
56 TBuf<KMaxServerPasswordLength> iPassword; |
|
57 // Use loose routing |
|
58 TInt iLooseRouting; |
|
59 // Port number |
|
60 TInt iPortNumber; |
|
61 // Transport protocol |
|
62 TInt iTransportProtocol; |
|
63 }; |
|
64 |
|
65 #endif // TProfileData |
|
66 |
|
67 // End of File |