usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmdhcpnotifwatcher.h
changeset 28 f1fd07aa74c9
equal deleted inserted replaced
27:2fefb5a2b416 28:f1fd07aa74c9
       
     1 /*
       
     2 * Copyright (c) 2010 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 *
       
    16 */
       
    17 
       
    18 /** @file
       
    19 @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef NCMDHCPNOTIFWATCHER_H
       
    23 #define NCMDHCPNOTIFWATCHER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 #ifdef OVERDUMMY_NCMCC
       
    28 #include <usb/testncmcc/dummy_essock.h>
       
    29 #include <usb/testncmcc/dummy_insock.h>
       
    30 #else
       
    31 #include <es_sock.h>
       
    32 #include <in_sock.h> 
       
    33 #endif // OVERDUMMY_NCMCC
       
    34 
       
    35 class MNcmDhcpNotificationObserver;
       
    36 class RNcmInternalSrv;
       
    37 
       
    38 /*
       
    39  * CNcmDhcpNotifWatcher is handler of DHCP provisioning requestion from NCM 
       
    40  * internal server.
       
    41  */
       
    42 NONSHARABLE_CLASS(CNcmDhcpNotifWatcher) : public CActive
       
    43 	{
       
    44 public:
       
    45     /**
       
    46      * Constructor
       
    47      * @param[in]  aObserver, the observer of DHCP provisioning result. 
       
    48      * @param[in]  aNcmInteralSvr, the NCM internal server.
       
    49      */
       
    50     CNcmDhcpNotifWatcher(MNcmDhcpNotificationObserver& aObserver,
       
    51             RNcmInternalSrv& aNcmInteralSvr);
       
    52     
       
    53 	~CNcmDhcpNotifWatcher();
       
    54 	
       
    55 	/**
       
    56 	 * Start the watcher to monitor DHCP provisioning requestion from
       
    57 	 * NCM internal server.
       
    58 	 */
       
    59 	void StartL();
       
    60 	
       
    61 private:
       
    62 	
       
    63 	// From CActive
       
    64 	void RunL();
       
    65 	void DoCancel();
       
    66 
       
    67 private:
       
    68 	
       
    69 	MNcmDhcpNotificationObserver& iObserver;  // DHCP provisioning result observer
       
    70 	RNcmInternalSrv&           iNcmInteralSvr; // NCM internal server
       
    71 	};
       
    72 
       
    73 #endif // NCMDHCPNOTIFWATCHER_H
       
    74