|
1 /* |
|
2 * Copyright (c) 2007 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: Interface for querying STUN/TURN server settings |
|
15 * related software settings. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef M_MNATFWSERVERSETTINGS_H |
|
24 #define M_MNATFWSERVERSETTINGS_H |
|
25 |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 |
|
30 /** |
|
31 * Interface for querying STUN/TURN server related software settings. |
|
32 * |
|
33 * Interface is not intended for derivation outside NATFW. |
|
34 * |
|
35 * @lib natfwnatsettings.lib |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class MNATFWServerSettings |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Returns server address. |
|
45 * |
|
46 * @since S60 v3.2 |
|
47 * @return Server address |
|
48 */ |
|
49 virtual const TDesC8& Address() const = 0; |
|
50 |
|
51 /** |
|
52 * Returns server port number. |
|
53 * |
|
54 * @since S60 v3.2 |
|
55 * @return Port |
|
56 */ |
|
57 virtual TUint Port() const = 0; |
|
58 |
|
59 /** |
|
60 * Returns server username. |
|
61 * |
|
62 * @since S60 v3.2 |
|
63 * @return Username to the server |
|
64 */ |
|
65 virtual const TDesC8& Username() const = 0; |
|
66 |
|
67 /** |
|
68 * Returns server password. |
|
69 * |
|
70 * @since S60 v3.2 |
|
71 * @return Password to the server |
|
72 */ |
|
73 virtual const TDesC8& Password() const = 0; |
|
74 |
|
75 /** |
|
76 * Returns is shared secred enabled. |
|
77 * |
|
78 * @since S60 v3.2 |
|
79 * @return TRUE if shared secret is enabled |
|
80 */ |
|
81 virtual TBool SharedSecretEnabled() const = 0; |
|
82 |
|
83 }; |
|
84 |
|
85 |
|
86 #endif // M_MNATFWSERVERSETTINGS_H |