|
1 /* |
|
2 * Copyright (c) 2004-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 : 6to4_listener.h |
|
16 * Part of : 6to4 plugin / 6to4.prt |
|
17 * Implements 6to4 automatic and configured tunnels, see |
|
18 * RFC 3056 & RFC 2893 |
|
19 * Version : 0.2 |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 /** |
|
27 @internalComponent |
|
28 */ |
|
29 |
|
30 |
|
31 #ifndef __6TO4_LISTENER_H |
|
32 #define __6TO4_LISTENER_H |
|
33 |
|
34 // INCLUDES |
|
35 #include <e32base.h> |
|
36 #include <in6_event.h> |
|
37 |
|
38 #include "6to4.h" |
|
39 |
|
40 // CONSTANTS |
|
41 // MACROS |
|
42 // DATA TYPES |
|
43 // FUNCTION PROTOTYPES |
|
44 // FORWARD DECLARATIONS |
|
45 // CLASS DECLARATION |
|
46 |
|
47 /** |
|
48 * Listener class implementing MEventListener |
|
49 * Gets notifications on new and removed IP addresses on interfaces |
|
50 * |
|
51 * @lib |
|
52 * @since |
|
53 */ |
|
54 class C6to4Listener : public CBase, public MEventListener |
|
55 { |
|
56 public: // Constructors and destructor |
|
57 |
|
58 C6to4Listener (MNetworkService *const aNetwork, MEventService &aService); |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~C6to4Listener (); |
|
63 |
|
64 inline MNetworkService *NetworkService() const { return iNetwork; } |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From MEventListener Handle a notification. |
|
70 * @since |
|
71 * @param aEventClass Class of event |
|
72 * @param aEventType Type of event |
|
73 * @param aData Event data |
|
74 * @return void |
|
75 */ |
|
76 virtual void Notify (TUint aEventClass, TUint aEventType, |
|
77 const void * aData); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 // 6to4 |
|
82 MNetworkService *const iNetwork; |
|
83 MEventService &iService; |
|
84 }; |
|
85 |
|
86 #endif // __6TO4_LISTENER_H |
|
87 |
|
88 // End of File |