os/mm/mmhais/dvbhreceiverhai/hai/dvbh/teststubs/dvbhreceiverbody.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// Example declaration of RDvbhReceiver::RBody for the test stub
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
/**
sl@0
    19
 @file
sl@0
    20
 @internalComponent
sl@0
    21
 @prototype
sl@0
    22
*/
sl@0
    23
sl@0
    24
#ifndef RDVBHRECEIVERBODY_H
sl@0
    25
#define RDVBHRECEIVERBODY_H
sl@0
    26
sl@0
    27
#include "dvbhreceiver.h"
sl@0
    28
#include <e32cons.h>
sl@0
    29
#include <e32cmn.h>
sl@0
    30
sl@0
    31
/**
sl@0
    32
* @internalComponent
sl@0
    33
* @prototype
sl@0
    34
* @see RDvbhReceiver
sl@0
    35
*
sl@0
    36
* This is the RDvbhReceiver internal, RHandleBase derived class to which the
sl@0
    37
* RDvbhReceiver test stub implementation delegates its methods.  Its public
sl@0
    38
* interface should contain the RDvbhReceiver public interface and for these
sl@0
    39
* methods the documentation is the same as for RDvbhReceiver and are not 
sl@0
    40
* documented here.
sl@0
    41
*
sl@0
    42
* This example shows RDvbhReceiver::RBody deriving from RBusLogicalChannel.
sl@0
    43
* Another suitable parent class would have been RSessionBase.
sl@0
    44
*/
sl@0
    45
NONSHARABLE_CLASS(RDvbhReceiver::RBody) : public RBusLogicalChannel
sl@0
    46
    {
sl@0
    47
public:
sl@0
    48
	RBody();  
sl@0
    49
sl@0
    50
	static TInt GetDriverVersion( TVersion& aVersion );
sl@0
    51
sl@0
    52
    static TInt GetSupportedReceiverTypes( RArray<TDvbhReceiverType>& aReceiverTypes );
sl@0
    53
sl@0
    54
	TInt Open( const TDvbhReceiverType aReceiverType );
sl@0
    55
sl@0
    56
	void Close();
sl@0
    57
sl@0
    58
    TInt PowerOn( TRequestStatus& aStatus );
sl@0
    59
sl@0
    60
    void CancelPowerOn();
sl@0
    61
sl@0
    62
    void PowerOff( TRequestStatus& aStatus );
sl@0
    63
sl@0
    64
    void CancelPowerOff();
sl@0
    65
	
sl@0
    66
	void SetDisabled( TBool aDisable, TRequestStatus& aStatus );
sl@0
    67
    
sl@0
    68
    void CancelSetDisabled();
sl@0
    69
	
sl@0
    70
	TInt SetScanConfiguration( const TDvbhScanConfiguration& aScanConfiguration );
sl@0
    71
sl@0
    72
	TInt GetScanConfiguration( TDvbhScanConfiguration& aScanConfiguration );
sl@0
    73
sl@0
    74
	TInt GetDvbhVersion( TVersion& aVersion );
sl@0
    75
sl@0
    76
	TInt GetHardwareInfo( TDvbhHardwareInfo& aHardwareInfo );
sl@0
    77
sl@0
    78
	TInt Scan( MDvbhScanObserver& aObserver, TRequestStatus& aStatus );
sl@0
    79
sl@0
    80
	void CancelScan();
sl@0
    81
sl@0
    82
	TInt SetPlatform( const TDvbhNetwork& aNetwork, const TDvbhPlatform& aPlatform, TRequestStatus& aStatus );
sl@0
    83
sl@0
    84
	void CancelSetPlatform();
sl@0
    85
sl@0
    86
	TInt CreateFilter( const TIp6Addr& aSourceAddress, TInt& aFilterId, TRequestStatus& aStatus );
sl@0
    87
sl@0
    88
	TInt CancelFilter( TInt aFilterId );
sl@0
    89
sl@0
    90
	TInt ReceiveIPData( MDvbhDataObserver& aObserver );
sl@0
    91
sl@0
    92
	void CancelReceiveIPData();
sl@0
    93
sl@0
    94
	TInt UpdateNetworkTime( TRequestStatus& aStatus );
sl@0
    95
sl@0
    96
	void CancelUpdateNetworkTime();
sl@0
    97
sl@0
    98
	TInt CustomCommand( TInt aCommand, const TDesC8& aInputData, TDes8& aOutputBuffer, TRequestStatus& aStatus );
sl@0
    99
sl@0
   100
	void CancelCustomCommand( TRequestStatus &aStatus );
sl@0
   101
sl@0
   102
	TInt CustomCommand( TInt aCommand, const TDesC8& aInputData ); 
sl@0
   103
sl@0
   104
private:
sl@0
   105
	// Copy construction and assignment not allowed
sl@0
   106
    RBody( const RBody& );
sl@0
   107
    RBody& operator=( const RBody& );
sl@0
   108
    
sl@0
   109
private:
sl@0
   110
	// Private data needed for the implementation would go here.
sl@0
   111
    };
sl@0
   112
sl@0
   113
#endif // RDVBHRECEIVERBODY_H