supl/locationomasuplprotocolhandler/protocolhandlerver2/inc/epos_tomasuplipaddress.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2005 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: class for holding IPAddress. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef T_TOMASUPLIPADDRESS_H |
|
21 #define T_TOMASUPLIPADDRESS_H |
|
22 |
|
23 #include <e32std.h> |
|
24 |
|
25 /** |
|
26 * TIPAddress for holding IPAddress & Port No. |
|
27 * @lib eposomasuplprotocolhandler.lib |
|
28 * @since S60 v3.1u |
|
29 */ |
|
30 |
|
31 class TIPAddress |
|
32 { |
|
33 |
|
34 public: // Constructor |
|
35 |
|
36 /** |
|
37 * C++ default constructor. |
|
38 */ |
|
39 TIPAddress(); |
|
40 |
|
41 /** |
|
42 * C++ constructor. |
|
43 */ |
|
44 TIPAddress(const TDesC& aIPAddress,TInt aPortNo); |
|
45 |
|
46 public: //Setter methods |
|
47 /** |
|
48 * SetIPAddressPort Method. |
|
49 * @since S60 v3.1u |
|
50 * @param aIPAddress , IPAddress to set. |
|
51 * @param aPortNo, Port No. |
|
52 * @return None |
|
53 */ |
|
54 void SetIPAddressPort(const TDesC& aIPAddress,TInt aPortNo); |
|
55 |
|
56 public: //Getter methods |
|
57 /** |
|
58 * IPAddress Method. |
|
59 * @since S60 v3.1u |
|
60 * @param None |
|
61 * @return IP Address |
|
62 */ |
|
63 const TDesC& IPAddress() const; |
|
64 /** |
|
65 * PortNo Method. |
|
66 * @since S60 v3.1u |
|
67 * @param None |
|
68 * @return Port Number |
|
69 */ |
|
70 TInt PortNo() const; |
|
71 |
|
72 private: |
|
73 |
|
74 // IP Address |
|
75 TBuf<64> iIPAddress; |
|
76 |
|
77 // Port Number |
|
78 TInt iPortNo; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // M_TOMASUPLIPADDRESS_H |