sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Example declaration of RDvbhReceiver::RBody for the test stub sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: @prototype sl@0: */ sl@0: sl@0: #ifndef RDVBHRECEIVERBODY_H sl@0: #define RDVBHRECEIVERBODY_H sl@0: sl@0: #include "dvbhreceiver.h" sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: * @internalComponent sl@0: * @prototype sl@0: * @see RDvbhReceiver sl@0: * sl@0: * This is the RDvbhReceiver internal, RHandleBase derived class to which the sl@0: * RDvbhReceiver test stub implementation delegates its methods. Its public sl@0: * interface should contain the RDvbhReceiver public interface and for these sl@0: * methods the documentation is the same as for RDvbhReceiver and are not sl@0: * documented here. sl@0: * sl@0: * This example shows RDvbhReceiver::RBody deriving from RBusLogicalChannel. sl@0: * Another suitable parent class would have been RSessionBase. sl@0: */ sl@0: NONSHARABLE_CLASS(RDvbhReceiver::RBody) : public RBusLogicalChannel sl@0: { sl@0: public: sl@0: RBody(); sl@0: sl@0: static TInt GetDriverVersion( TVersion& aVersion ); sl@0: sl@0: static TInt GetSupportedReceiverTypes( RArray& aReceiverTypes ); sl@0: sl@0: TInt Open( const TDvbhReceiverType aReceiverType ); sl@0: sl@0: void Close(); sl@0: sl@0: TInt PowerOn( TRequestStatus& aStatus ); sl@0: sl@0: void CancelPowerOn(); sl@0: sl@0: void PowerOff( TRequestStatus& aStatus ); sl@0: sl@0: void CancelPowerOff(); sl@0: sl@0: void SetDisabled( TBool aDisable, TRequestStatus& aStatus ); sl@0: sl@0: void CancelSetDisabled(); sl@0: sl@0: TInt SetScanConfiguration( const TDvbhScanConfiguration& aScanConfiguration ); sl@0: sl@0: TInt GetScanConfiguration( TDvbhScanConfiguration& aScanConfiguration ); sl@0: sl@0: TInt GetDvbhVersion( TVersion& aVersion ); sl@0: sl@0: TInt GetHardwareInfo( TDvbhHardwareInfo& aHardwareInfo ); sl@0: sl@0: TInt Scan( MDvbhScanObserver& aObserver, TRequestStatus& aStatus ); sl@0: sl@0: void CancelScan(); sl@0: sl@0: TInt SetPlatform( const TDvbhNetwork& aNetwork, const TDvbhPlatform& aPlatform, TRequestStatus& aStatus ); sl@0: sl@0: void CancelSetPlatform(); sl@0: sl@0: TInt CreateFilter( const TIp6Addr& aSourceAddress, TInt& aFilterId, TRequestStatus& aStatus ); sl@0: sl@0: TInt CancelFilter( TInt aFilterId ); sl@0: sl@0: TInt ReceiveIPData( MDvbhDataObserver& aObserver ); sl@0: sl@0: void CancelReceiveIPData(); sl@0: sl@0: TInt UpdateNetworkTime( TRequestStatus& aStatus ); sl@0: sl@0: void CancelUpdateNetworkTime(); sl@0: sl@0: TInt CustomCommand( TInt aCommand, const TDesC8& aInputData, TDes8& aOutputBuffer, TRequestStatus& aStatus ); sl@0: sl@0: void CancelCustomCommand( TRequestStatus &aStatus ); sl@0: sl@0: TInt CustomCommand( TInt aCommand, const TDesC8& aInputData ); sl@0: sl@0: private: sl@0: // Copy construction and assignment not allowed sl@0: RBody( const RBody& ); sl@0: RBody& operator=( const RBody& ); sl@0: sl@0: private: sl@0: // Private data needed for the implementation would go here. sl@0: }; sl@0: sl@0: #endif // RDVBHRECEIVERBODY_H