usbuis/rndisui/inc/rndisrefusalnotifier.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:14:30 +0200
changeset 0 1e05558e2206
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2005-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:  Header file for RNDIS refusal notifier
*
*/

/**
@file
@internalComponent
*/

#ifndef RNDISREFUSALNOTIFIER_H
#define RNDISREFUSALNOTIFIER_H

#include <e32base.h>	// CBase
#include <e32std.h>		// TBuf
#include <eiknotapi.h>	// For MEikSrvNotifierBase2

NONSHARABLE_CLASS(CRndisNetworkConnectionRefusalNotifier)
	: public MEikSrvNotifierBase2
/**
RNDIS network connection refusal notifier
*/
	{
public: 
	//Create CRndisNetworkConnectionRefusalNotifier.
	static CRndisNetworkConnectionRefusalNotifier* NewLC();
	//Destructor
	~CRndisNetworkConnectionRefusalNotifier();

public:
	// virtual functions from MEikSrvNotifierBase2
	virtual void Release();
	virtual TNotifierInfo RegisterL();
	virtual TNotifierInfo Info() const;
	virtual TPtrC8 StartL(const TDesC8& aBuffer);
	virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot,	const RMessagePtr2& aMessage);
	virtual void Cancel();
	virtual TPtrC8 UpdateL(const TDesC8& aBuffer);

private:
	CRndisNetworkConnectionRefusalNotifier();
	void ConstructL();

private:
	TNotifierInfo iInfo;	
	};

#endif //RNDISREFUSALNOTIFIER_H