accessoryservices/remotecontrolfw/bearerplugin/public/bearerparams.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef BEARERPARAMS_H
       
    23 #define BEARERPARAMS_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 class MRemConBearerObserver;
       
    28 
       
    29 /**
       
    30 Struct for initialisation parameters for concrete bearer plugins. The derived 
       
    31 (concrete) plugin will receive an instance of this in its NewL. It should pass 
       
    32 it to the CRemConBearerPlugin base class constructor.
       
    33 */
       
    34 class TBearerParams
       
    35 	{
       
    36 public:
       
    37 	/**
       
    38 	Constructor.
       
    39 	@param aImplementationUid The implementation UID of the bearer.
       
    40 	@param aObserver Observer.
       
    41 	*/
       
    42 	IMPORT_C TBearerParams(TUid aImplementationUid, MRemConBearerObserver& aObserver);
       
    43 
       
    44 	/** Destructor. */
       
    45 	IMPORT_C ~TBearerParams();
       
    46 
       
    47 public:
       
    48 	/** 
       
    49 	Accessor for the implementation UID.
       
    50 	@return Implementation UID.
       
    51 	*/
       
    52 	IMPORT_C TUid ImplementationUid() const;
       
    53 
       
    54 	/**
       
    55 	Accessor for the observer.
       
    56 	@return Observer.
       
    57 	*/
       
    58 	IMPORT_C MRemConBearerObserver& Observer() const;
       
    59 
       
    60 private: // owned
       
    61 	const TUid iImplementationUid;
       
    62 
       
    63 	/** 
       
    64 	Pad for BC-friendly future change.
       
    65 	*/
       
    66 	TUint32 iPad;
       
    67 
       
    68 private: // unowned
       
    69 	MRemConBearerObserver& iObserver;
       
    70 	};
       
    71 
       
    72 #endif // BEARERPARAMS_H