networkprotocols/dnsproxy/dnsproxyupdateif/inc/dnsproxyupdateif.h
author William Roberts <williamr@symbian.org>
Tue, 27 Jul 2010 17:03:19 +0100
branchGCC_SURGE
changeset 47 a96f0f8e6602
parent 0 af10295192d8
permissions -rw-r--r--
Remove spurious "inline" on implementations in MSCHAP.CPP - added to Bug 2629

// Copyright (c) 2008-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:
//



/**
 @file
 @publishedPartner
 @released
*/

#ifndef __CDNSPROXYUPDATEIF_H__
#define __CDNSPROXYUPDATEIF_H__

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


/**
* Ecomp plugin implementation class
*/
class CDNSProxyUpdateIf : public CBase
{
public:

	/**
	* Factory method for CDNSProxyUpdateIf
	*/
   static CDNSProxyUpdateIf* NewL(TUid aUid );

	/**
	* virtual D'tor for the class.
	*/
    virtual ~CDNSProxyUpdateIf();

	/**
	* Interface function for adding entry to the DNS DB, this need to be implemented by the deriving class.
	*/
    virtual void AddDbEntry(const TDes8& aHostName, const TDes& aIpAddress, TRequestStatus& aStatus) = 0;

	/**
	*Interface function for removing entry from the DNS DB, this need to be implemented by the deriving class.
	*/
    virtual void RemoveDbEntry(const TDes& aIpAddress, TRequestStatus& aStatus) = 0;


private:

    //private member varible for identifying the implementations
    TUid                        iDtorIdKey;
};

/**
* Factory method for CDNSProxyUpdateIf
*/
inline CDNSProxyUpdateIf* CDNSProxyUpdateIf::NewL(TUid aUid )
    {
    CDNSProxyUpdateIf* self = reinterpret_cast<CDNSProxyUpdateIf*>(
    REComSession::CreateImplementationL(
        aUid,
        _FOFF(CDNSProxyUpdateIf, iDtorIdKey)));
    return self;
    }

/**
* D'Tor for ~CDNSProxyUpdateIf
*/
inline CDNSProxyUpdateIf::~CDNSProxyUpdateIf()
    {
    REComSession::DestroyedImplementation(iDtorIdKey);
    }


#endif //__CDNSPROXYUPDATEIF_H__