equal
deleted
inserted
replaced
|
1 /** @file |
|
2 * Copyright (c) 2008 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: TUpnpConnectionManagerNetworkEvent |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef T_UPNPCONNECTIONMANAGERNETWORKEVENT_H |
|
19 #define T_UPNPCONNECTIONMANAGERNETWORKEVENT_H |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <e32cmn.h> |
|
23 #include <in_sock.h> |
|
24 #include "upnpconnmanagereventtypes.h" |
|
25 |
|
26 /** |
|
27 * This class describes network event sent by ipc |
|
28 * @since S60 5.0 |
|
29 */ |
|
30 class TUpnpConnectionManagerNetworkEvent |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * C++ constructor |
|
36 */ |
|
37 IMPORT_C TUpnpConnectionManagerNetworkEvent(); |
|
38 |
|
39 /** |
|
40 * C++ constructor |
|
41 */ |
|
42 IMPORT_C TUpnpConnectionManagerNetworkEvent( TUpnpCmSubRsp aType ); |
|
43 |
|
44 /** |
|
45 * C++ constructor |
|
46 */ |
|
47 IMPORT_C TUpnpConnectionManagerNetworkEvent( TUpnpCmSubRsp aType, |
|
48 TInetAddr aInetAddr ); |
|
49 |
|
50 /** |
|
51 * Sets event type |
|
52 */ |
|
53 IMPORT_C void SetType( TUpnpCmSubRsp aType ); |
|
54 |
|
55 /** |
|
56 * Sets address after address change event |
|
57 */ |
|
58 IMPORT_C void SetAddress( TInetAddr aAddress ); |
|
59 |
|
60 /** |
|
61 * Get event type |
|
62 */ |
|
63 IMPORT_C TUpnpCmSubRsp& Type(); |
|
64 |
|
65 /** |
|
66 * Get address |
|
67 */ |
|
68 IMPORT_C TInetAddr InetAddr(); |
|
69 |
|
70 private: |
|
71 |
|
72 // event type |
|
73 TUpnpCmSubRsp iType; |
|
74 |
|
75 // address |
|
76 TInetAddr iInetAddr; |
|
77 }; |
|
78 |
|
79 #endif // T_UPNPCONNECTIONMANAGERNETWORKEVENT_H |
|
80 |
|
81 // End of File |