|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The DHCP IPv6 Control header file |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file DHCPIP6Control.h |
|
20 */ |
|
21 |
|
22 #ifndef DHCPIP6CONTROL_H |
|
23 #define DHCPIP6CONTROL_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include "DHCPControl.h" |
|
27 #include "DHCPIP6StateMachine.h" |
|
28 |
|
29 class CDHCPIP6Control : public CDHCPControl |
|
30 /** |
|
31 * Implements the DHCP IP6 highest level state machine that controls |
|
32 * CDHCPIP6StateMachine tasks and transitions between them. |
|
33 * The class owns DHCP IP6 state machine (CDHCPIP6StateMachine) |
|
34 * |
|
35 * @internalTechnology |
|
36 * |
|
37 */ |
|
38 { |
|
39 public: |
|
40 CDHCPIP6Control(RSocketServ& aEsock, TConfigType aConfigType); |
|
41 virtual ~CDHCPIP6Control(); |
|
42 |
|
43 virtual void ConfigureL(const TConnectionInfo& aInfo, const RMessage2* aMessage); |
|
44 |
|
45 protected: |
|
46 |
|
47 virtual void TaskCompleteL(TInt aError); |
|
48 virtual void HandleGetRawOptionDataL(TDes8* aDes); |
|
49 virtual void HandleGetSipServerAddrL(TDes8* aDes); |
|
50 virtual void HandleGetSipServerDomainL(TDes8* aDes); |
|
51 #ifdef SYMBIAN_TCPIPDHCP_UPDATE |
|
52 virtual void HandleGetDomainSearchListL(TDes8* aDes); |
|
53 virtual void HandleGetDNSServerListL(TDes8* aDes); |
|
54 #endif //SYMBIAN_TCPIPDHCP_UPDATE |
|
55 virtual void GetRawOptionDataL(TUint aOpCode, TPtr8& aPtr ); |
|
56 virtual void BindingFinishedL(); |
|
57 virtual TInt HandleClientRequestL(TUint aName); |
|
58 virtual TInt HandleClientRequestL(TUint aName, TInt aValue); |
|
59 #ifdef SYMBIAN_TCPIPDHCP_UPDATE |
|
60 void RequestInformOrCompleteCallL(TDes8& aOpcode); |
|
61 #endif //SYMBIAN_TCPIPDHCP_UPDATE |
|
62 #ifdef SYMBIAN_NETWORKING_DHCP_MSG_HEADERS |
|
63 virtual void HandleGetTftpServerAddrL(TDes8& aDes) ; |
|
64 virtual void HandleGetTftpServerNameL(TDes8& aDes); |
|
65 virtual void HandleGetMultipleParamsL(TDes8& aDesc); |
|
66 virtual void GetDhcpHdrSiaddrL(TDes8& aNxtAddress); |
|
67 virtual void GetDhcpHdrSnameL(TDes8& aHdrSvrName); |
|
68 virtual TInt InformCompleteRequestHandlerL(); |
|
69 #endif //SYMBIAN_NETWORKING_DHCP_MSG_HEADERS |
|
70 |
|
71 protected: |
|
72 CDHCPIP6StateMachine* DhcpStateMachine(); |
|
73 }; |
|
74 |
|
75 inline CDHCPIP6Control::CDHCPIP6Control(RSocketServ& aEsock, TConfigType aConfigType) : |
|
76 CDHCPControl(aEsock, aConfigType) |
|
77 { |
|
78 } |
|
79 |
|
80 inline CDHCPIP6StateMachine* CDHCPIP6Control::DhcpStateMachine() |
|
81 { |
|
82 return static_cast<CDHCPIP6StateMachine*>(iDhcpStateMachine); |
|
83 } |
|
84 |
|
85 #endif |
|
86 |