os/mm/mmhais/dvbhreceiverhai/hai/dvbh/teststubs/dvbhreceiverbody.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Example declaration of RDvbhReceiver::RBody for the test stub
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalComponent
    21  @prototype
    22 */
    23 
    24 #ifndef RDVBHRECEIVERBODY_H
    25 #define RDVBHRECEIVERBODY_H
    26 
    27 #include "dvbhreceiver.h"
    28 #include <e32cons.h>
    29 #include <e32cmn.h>
    30 
    31 /**
    32 * @internalComponent
    33 * @prototype
    34 * @see RDvbhReceiver
    35 *
    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 
    40 * documented here.
    41 *
    42 * This example shows RDvbhReceiver::RBody deriving from RBusLogicalChannel.
    43 * Another suitable parent class would have been RSessionBase.
    44 */
    45 NONSHARABLE_CLASS(RDvbhReceiver::RBody) : public RBusLogicalChannel
    46     {
    47 public:
    48 	RBody();  
    49 
    50 	static TInt GetDriverVersion( TVersion& aVersion );
    51 
    52     static TInt GetSupportedReceiverTypes( RArray<TDvbhReceiverType>& aReceiverTypes );
    53 
    54 	TInt Open( const TDvbhReceiverType aReceiverType );
    55 
    56 	void Close();
    57 
    58     TInt PowerOn( TRequestStatus& aStatus );
    59 
    60     void CancelPowerOn();
    61 
    62     void PowerOff( TRequestStatus& aStatus );
    63 
    64     void CancelPowerOff();
    65 	
    66 	void SetDisabled( TBool aDisable, TRequestStatus& aStatus );
    67     
    68     void CancelSetDisabled();
    69 	
    70 	TInt SetScanConfiguration( const TDvbhScanConfiguration& aScanConfiguration );
    71 
    72 	TInt GetScanConfiguration( TDvbhScanConfiguration& aScanConfiguration );
    73 
    74 	TInt GetDvbhVersion( TVersion& aVersion );
    75 
    76 	TInt GetHardwareInfo( TDvbhHardwareInfo& aHardwareInfo );
    77 
    78 	TInt Scan( MDvbhScanObserver& aObserver, TRequestStatus& aStatus );
    79 
    80 	void CancelScan();
    81 
    82 	TInt SetPlatform( const TDvbhNetwork& aNetwork, const TDvbhPlatform& aPlatform, TRequestStatus& aStatus );
    83 
    84 	void CancelSetPlatform();
    85 
    86 	TInt CreateFilter( const TIp6Addr& aSourceAddress, TInt& aFilterId, TRequestStatus& aStatus );
    87 
    88 	TInt CancelFilter( TInt aFilterId );
    89 
    90 	TInt ReceiveIPData( MDvbhDataObserver& aObserver );
    91 
    92 	void CancelReceiveIPData();
    93 
    94 	TInt UpdateNetworkTime( TRequestStatus& aStatus );
    95 
    96 	void CancelUpdateNetworkTime();
    97 
    98 	TInt CustomCommand( TInt aCommand, const TDesC8& aInputData, TDes8& aOutputBuffer, TRequestStatus& aStatus );
    99 
   100 	void CancelCustomCommand( TRequestStatus &aStatus );
   101 
   102 	TInt CustomCommand( TInt aCommand, const TDesC8& aInputData ); 
   103 
   104 private:
   105 	// Copy construction and assignment not allowed
   106     RBody( const RBody& );
   107     RBody& operator=( const RBody& );
   108     
   109 private:
   110 	// Private data needed for the implementation would go here.
   111     };
   112 
   113 #endif // RDVBHRECEIVERBODY_H