1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmhais/dvbhreceiverhai/hai/dvbh/teststubs/dvbhreceiverbody.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,162 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Example implementation of RDvbhReceiver::RBody for the unit test stub
1.18 +//
1.19 +//
1.20 +
1.21 +/**
1.22 + @file
1.23 + @internalComponent
1.24 + @prototype
1.25 +*/
1.26 +
1.27 +#include "dvbhreceiverbody.h"
1.28 +#include <in_sock.h>
1.29 +
1.30 +RDvbhReceiver::RBody::RBody()
1.31 +: RBusLogicalChannel()
1.32 + {
1.33 + }
1.34 +
1.35 +TInt RDvbhReceiver::RBody::GetDriverVersion( TVersion& /*aVersion*/ )
1.36 + {
1.37 + return KErrNotSupported;
1.38 + }
1.39 +
1.40 +TInt RDvbhReceiver::RBody::GetSupportedReceiverTypes( RArray<TDvbhReceiverType>& /* aReceiverTypes */ )
1.41 + {
1.42 + return KErrNotSupported;
1.43 + }
1.44 +
1.45 +TInt RDvbhReceiver::RBody::Open( const TDvbhReceiverType /* aReceiverType */ )
1.46 + {
1.47 + return KErrNotSupported;
1.48 + }
1.49 +
1.50 +void RDvbhReceiver::RBody::Close()
1.51 + {
1.52 + }
1.53 +
1.54 +TInt RDvbhReceiver::RBody::PowerOn( TRequestStatus& /* aStatus */ )
1.55 + {
1.56 + return KErrNotSupported;
1.57 + }
1.58 +
1.59 +void RDvbhReceiver::RBody::CancelPowerOn()
1.60 + {
1.61 + }
1.62 +
1.63 +void RDvbhReceiver::RBody::PowerOff( TRequestStatus& /* aStatus */ )
1.64 + {
1.65 + }
1.66 +
1.67 +void RDvbhReceiver::RBody::CancelPowerOff()
1.68 + {
1.69 + }
1.70 +
1.71 +void RDvbhReceiver::RBody::SetDisabled( TBool /*aDisable*/, TRequestStatus& /* aStatus */ )
1.72 + {
1.73 + }
1.74 +
1.75 +void RDvbhReceiver::RBody::CancelSetDisabled()
1.76 + {
1.77 + }
1.78 +
1.79 +TInt RDvbhReceiver::RBody::SetScanConfiguration( const TDvbhScanConfiguration& /*aScanConfiguration*/ )
1.80 + {
1.81 + return KErrNotSupported;
1.82 + }
1.83 +
1.84 +TInt RDvbhReceiver::RBody::GetScanConfiguration( TDvbhScanConfiguration& /*aScanConfiguration*/ )
1.85 + {
1.86 + return KErrNotSupported;
1.87 + }
1.88 +
1.89 +TInt RDvbhReceiver::RBody::GetDvbhVersion( TVersion& /*aVersion*/ )
1.90 + {
1.91 + return KErrNotSupported;
1.92 + }
1.93 +
1.94 +TInt RDvbhReceiver::RBody::GetHardwareInfo( TDvbhHardwareInfo& /*aHardwareInfo*/ )
1.95 + {
1.96 + return KErrNotSupported;
1.97 + }
1.98 +
1.99 +TInt RDvbhReceiver::RBody::Scan( MDvbhScanObserver& /*aObserver*/, TRequestStatus& /*aStatus*/ )
1.100 + {
1.101 + return KErrNotSupported;
1.102 + }
1.103 +
1.104 +void RDvbhReceiver::RBody::CancelScan()
1.105 + {
1.106 + }
1.107 +
1.108 +TInt RDvbhReceiver::RBody::SetPlatform( const TDvbhNetwork& /*aNetwork*/, const TDvbhPlatform& /*aPlatform*/, TRequestStatus& /*aStatus*/ )
1.109 + {
1.110 + return KErrNotSupported;
1.111 + }
1.112 +
1.113 +void RDvbhReceiver::RBody::CancelSetPlatform()
1.114 + {
1.115 + }
1.116 +
1.117 +TInt RDvbhReceiver::RBody::CreateFilter( const TIp6Addr& /*aSourceAddress*/, TInt& /*aFilterId*/, TRequestStatus& /*aStatus*/ )
1.118 + {
1.119 + return KErrNotSupported;
1.120 + }
1.121 +
1.122 +TInt RDvbhReceiver::RBody::CancelFilter( TInt /*aFilterId*/ )
1.123 + {
1.124 + return KErrNotSupported;
1.125 + }
1.126 +
1.127 +TInt RDvbhReceiver::RBody::ReceiveIPData( MDvbhDataObserver& /*aObserver*/ )
1.128 + {
1.129 + return KErrNotSupported;
1.130 + }
1.131 +
1.132 +void RDvbhReceiver::RBody::CancelReceiveIPData()
1.133 + {
1.134 + }
1.135 +
1.136 +TInt RDvbhReceiver::RBody::UpdateNetworkTime( TRequestStatus& /*aStatus*/ )
1.137 + {
1.138 + return KErrNotSupported;
1.139 + }
1.140 +
1.141 +void RDvbhReceiver::RBody::CancelUpdateNetworkTime()
1.142 + {
1.143 + }
1.144 +
1.145 +TInt RDvbhReceiver::RBody::CustomCommand(
1.146 + TInt /*aCommand*/,
1.147 + const TDesC8& /*aInputData*/,
1.148 + TDes8& /*aOutputBuffer*/,
1.149 + TRequestStatus& /*aStatus*/ )
1.150 + {
1.151 + return KErrNotSupported;
1.152 + }
1.153 +
1.154 +void RDvbhReceiver::RBody::CancelCustomCommand( TRequestStatus& /*aStatus*/ )
1.155 + {
1.156 + }
1.157 +
1.158 +TInt RDvbhReceiver::RBody::CustomCommand( TInt /*aCommand*/, const TDesC8& /*aInputData*/ )
1.159 + {
1.160 + return KErrNotSupported;
1.161 + }
1.162 +
1.163 +
1.164 +
1.165 +