accessoryservices/remotecontrolfw/bearerplugin/public/bearerparams.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:56:08 +0300
changeset 35 f7565e9c9ce8
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201023 Kit: 2010123

// 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:
//

/**
 @file
 @publishedPartner
 @released
*/

#ifndef BEARERPARAMS_H
#define BEARERPARAMS_H

#include <e32base.h>

class MRemConBearerObserver;

/**
Struct for initialisation parameters for concrete bearer plugins. The derived 
(concrete) plugin will receive an instance of this in its NewL. It should pass 
it to the CRemConBearerPlugin base class constructor.
*/
class TBearerParams
	{
public:
	/**
	Constructor.
	@param aImplementationUid The implementation UID of the bearer.
	@param aObserver Observer.
	*/
	IMPORT_C TBearerParams(TUid aImplementationUid, MRemConBearerObserver& aObserver);

	/** Destructor. */
	IMPORT_C ~TBearerParams();

public:
	/** 
	Accessor for the implementation UID.
	@return Implementation UID.
	*/
	IMPORT_C TUid ImplementationUid() const;

	/**
	Accessor for the observer.
	@return Observer.
	*/
	IMPORT_C MRemConBearerObserver& Observer() const;

private: // owned
	const TUid iImplementationUid;

	/** 
	Pad for BC-friendly future change.
	*/
	TUint32 iPad;

private: // unowned
	MRemConBearerObserver& iObserver;
	};

#endif // BEARERPARAMS_H