tcpiputils/dhcp/include/dhcphwaddrmanager.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2008-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 // Hardware address manager class declaration.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #ifndef __DHCPHWADDRMANAGER_H__
       
    24 #define __DHCPHWADDRMANAGER_H__
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32cmn.h>
       
    28 /**
       
    29   * This class receives the hardware address from the application which 
       
    30   * is loading the DHCP server, and preserves it for provisioning.
       
    31   *
       
    32   * @internalTechnology
       
    33   */
       
    34 class CDhcpHwAddrManager : public CBase
       
    35 {
       
    36 public:
       
    37 	static CDhcpHwAddrManager* NewL();
       
    38 	TBool IsHwAddressProvisioned();
       
    39 	void Insert(const Uint64& aInt);
       
    40 	TBool Provisioned( const Uint64& aInt);
       
    41 	TBool IsAnyClientAllowed();
       
    42 	~CDhcpHwAddrManager();
       
    43 protected:
       
    44 	CDhcpHwAddrManager();
       
    45 	void ConstructL();
       
    46 private:
       
    47 	RArray<Uint64> iHardwareAddressList;
       
    48 };
       
    49 
       
    50 #endif //__DHCPHWADDRMANAGER_H__