tcpiputils/dhcp/include/DNSUpdateIf.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 15:23:49 +0200
changeset 0 af10295192d8
permissions -rw-r--r--
Revision: 201004

// Copyright (c) 2004-2009 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:
// The DNS Update abstract plug-in interface
// 
//

/**
 @file DNSUpdateIf.h
*/

#ifndef __DNSUPDATEIF_H__
#define __DNSUPDATEIF_H__

#include <e32base.h>
#include <ecom/ecom.h>

class CDnsUpdateIf : public CBase
	{

public:
	// Wraps ECom object instantitation
	static CDnsUpdateIf* NewL();
	// Wraps ECom object destruction 
	virtual ~CDnsUpdateIf();

	virtual void Update(TDesC& aInterfaceName, TDesC8* aHostName, TDesC8* aDomainName) = 0;

private:
	// Instance identifier key
	TUid iDtor_ID_Key;
	};

//keep the destructor inline even though it's virtual so that 
//the plug-in doesn't have to link against us
inline CDnsUpdateIf::~CDnsUpdateIf()
    {
    REComSession::DestroyedImplementation(iDtor_ID_Key);
    }

#endif