diff -r f742655b05bf -r d38647835c2e voipplugins/dhcppositionprovider/inc/dhcpdatalocationrequest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/voipplugins/dhcppositionprovider/inc/dhcpdatalocationrequest.h Wed Sep 01 12:29:57 2010 +0100 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef DHCPDATALOCATIONREQUEST_H +#define DHCPDATALOCATIONREQUEST_H + +#include +#include + +#include "dhcpdatapacket.h" + +/** +* This class wraps the DHCP location request message. +* +* @lib sspcontroller +* @since S60 4.0 +*/ +class TDhcpLocationRequestPacket : public TDhcpBasePacket + { + public: + + /** + * Default constructor. + * @since S60 3.2 + */ + TDhcpLocationRequestPacket(); + + /** + * Constructs DHCP location request message. + * @since S60 3.2 + * @param aLocalIp local IP address + * @param aMacAddr local hardware address + * @return + */ + void MakeDhcpInformMsg ( TUint32 aLocalIp, const TDesC8& aMacAddr ); + + public: // data + + /* + * Return used transaction id in this dhcp message. + * @since S60 3.2 + * + * @return Transaction id to follow. + */ + TUint32 TransactionId (); + + private: + + /* + * + * Generate random transaction identifier for the DHCPInform-message. + * + * @since S60 3.2 + * + * @return Transaction id to follow. + */ + void RandomiseXid (); + + private: + /** + * Transaction identifier for Dhcp inform message. + */ + TUint32 iXid; + + }; + +#endif // DHCPDATALOCATIONREQUEST_H