accessoryservices/remotecontrolfw/bearerplugin/public/bearerparams.h
author William Roberts <williamr@symbian.org>
Wed, 23 Jun 2010 22:58:50 +0100
branchGCC_SURGE
changeset 38 61516c5786af
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Select correct DEF file for GCCE builds, and remove obsolete eabi deffiles which were used instead - bug 2965

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