Update contrib.
1 // Copyright (c) 2007-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Example declaration of RDvbhReceiver::RBody for the test stub
24 #ifndef RDVBHRECEIVERBODY_H
25 #define RDVBHRECEIVERBODY_H
27 #include "dvbhreceiver.h"
36 * This is the RDvbhReceiver internal, RHandleBase derived class to which the
37 * RDvbhReceiver test stub implementation delegates its methods. Its public
38 * interface should contain the RDvbhReceiver public interface and for these
39 * methods the documentation is the same as for RDvbhReceiver and are not
42 * This example shows RDvbhReceiver::RBody deriving from RBusLogicalChannel.
43 * Another suitable parent class would have been RSessionBase.
45 NONSHARABLE_CLASS(RDvbhReceiver::RBody) : public RBusLogicalChannel
50 static TInt GetDriverVersion( TVersion& aVersion );
52 static TInt GetSupportedReceiverTypes( RArray<TDvbhReceiverType>& aReceiverTypes );
54 TInt Open( const TDvbhReceiverType aReceiverType );
58 TInt PowerOn( TRequestStatus& aStatus );
62 void PowerOff( TRequestStatus& aStatus );
64 void CancelPowerOff();
66 void SetDisabled( TBool aDisable, TRequestStatus& aStatus );
68 void CancelSetDisabled();
70 TInt SetScanConfiguration( const TDvbhScanConfiguration& aScanConfiguration );
72 TInt GetScanConfiguration( TDvbhScanConfiguration& aScanConfiguration );
74 TInt GetDvbhVersion( TVersion& aVersion );
76 TInt GetHardwareInfo( TDvbhHardwareInfo& aHardwareInfo );
78 TInt Scan( MDvbhScanObserver& aObserver, TRequestStatus& aStatus );
82 TInt SetPlatform( const TDvbhNetwork& aNetwork, const TDvbhPlatform& aPlatform, TRequestStatus& aStatus );
84 void CancelSetPlatform();
86 TInt CreateFilter( const TIp6Addr& aSourceAddress, TInt& aFilterId, TRequestStatus& aStatus );
88 TInt CancelFilter( TInt aFilterId );
90 TInt ReceiveIPData( MDvbhDataObserver& aObserver );
92 void CancelReceiveIPData();
94 TInt UpdateNetworkTime( TRequestStatus& aStatus );
96 void CancelUpdateNetworkTime();
98 TInt CustomCommand( TInt aCommand, const TDesC8& aInputData, TDes8& aOutputBuffer, TRequestStatus& aStatus );
100 void CancelCustomCommand( TRequestStatus &aStatus );
102 TInt CustomCommand( TInt aCommand, const TDesC8& aInputData );
105 // Copy construction and assignment not allowed
106 RBody( const RBody& );
107 RBody& operator=( const RBody& );
110 // Private data needed for the implementation would go here.
113 #endif // RDVBHRECEIVERBODY_H