os/mm/mmhais/dvbhreceiverhai/hai/dvbh/teststubs/dvbhreceiverbody.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 implementation of RDvbhReceiver::RBody for the unit test stub
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalComponent
    21  @prototype
    22 */
    23 
    24 #include "dvbhreceiverbody.h"
    25 #include <in_sock.h>
    26 
    27 RDvbhReceiver::RBody::RBody()
    28 : RBusLogicalChannel()
    29 	{
    30 	}
    31 		
    32 TInt RDvbhReceiver::RBody::GetDriverVersion( TVersion& /*aVersion*/ )
    33 	{
    34 	return KErrNotSupported;
    35 	}	
    36 	
    37 TInt RDvbhReceiver::RBody::GetSupportedReceiverTypes( RArray<TDvbhReceiverType>& /* aReceiverTypes */ )
    38     {
    39 	return KErrNotSupported;
    40     }
    41 
    42 TInt RDvbhReceiver::RBody::Open( const TDvbhReceiverType /* aReceiverType */ )
    43 	{
    44 	return KErrNotSupported;
    45 	}	
    46 
    47 void RDvbhReceiver::RBody::Close()
    48 	{
    49 	}	
    50 
    51 TInt RDvbhReceiver::RBody::PowerOn( TRequestStatus& /* aStatus */ )
    52     {
    53     return KErrNotSupported;
    54     }
    55 
    56 void RDvbhReceiver::RBody::CancelPowerOn()
    57     {
    58     }
    59 
    60 void RDvbhReceiver::RBody::PowerOff( TRequestStatus& /* aStatus */ )
    61 	{
    62 	}	
    63 
    64 void RDvbhReceiver::RBody::CancelPowerOff()
    65     {
    66     }
    67 
    68 void RDvbhReceiver::RBody::SetDisabled( TBool /*aDisable*/, TRequestStatus& /* aStatus */ )
    69 	{
    70 	}	
    71 
    72 void RDvbhReceiver::RBody::CancelSetDisabled()
    73     {
    74     }
    75 
    76 TInt RDvbhReceiver::RBody::SetScanConfiguration( const TDvbhScanConfiguration& /*aScanConfiguration*/ )
    77 	{
    78 	return KErrNotSupported;
    79 	}	
    80 
    81 TInt RDvbhReceiver::RBody::GetScanConfiguration( TDvbhScanConfiguration& /*aScanConfiguration*/ )
    82 	{
    83 	return KErrNotSupported;
    84 	}	
    85 
    86 TInt RDvbhReceiver::RBody::GetDvbhVersion( TVersion& /*aVersion*/ )
    87 	{
    88 	return KErrNotSupported;
    89 	}	
    90 
    91 TInt RDvbhReceiver::RBody::GetHardwareInfo( TDvbhHardwareInfo& /*aHardwareInfo*/ )
    92 	{
    93 	return KErrNotSupported;
    94 	}	
    95 
    96 TInt RDvbhReceiver::RBody::Scan( MDvbhScanObserver& /*aObserver*/, TRequestStatus& /*aStatus*/ )
    97 	{
    98 	return KErrNotSupported;
    99 	}	
   100 
   101 void RDvbhReceiver::RBody::CancelScan()
   102 	{
   103 	}	
   104 
   105 TInt RDvbhReceiver::RBody::SetPlatform( const TDvbhNetwork& /*aNetwork*/, const TDvbhPlatform& /*aPlatform*/, TRequestStatus& /*aStatus*/ )
   106 	{
   107 	return KErrNotSupported;
   108 	}	
   109 
   110 void RDvbhReceiver::RBody::CancelSetPlatform()
   111 	{
   112 	}	
   113 
   114 TInt RDvbhReceiver::RBody::CreateFilter( const TIp6Addr& /*aSourceAddress*/, TInt& /*aFilterId*/, TRequestStatus& /*aStatus*/ )
   115 	{
   116 	return KErrNotSupported;	
   117 	}	
   118 
   119 TInt RDvbhReceiver::RBody::CancelFilter( TInt /*aFilterId*/ )
   120 	{
   121 	return KErrNotSupported;
   122 	}	
   123 
   124 TInt RDvbhReceiver::RBody::ReceiveIPData( MDvbhDataObserver& /*aObserver*/ )
   125 	{
   126 	return KErrNotSupported;
   127 	}	
   128 
   129 void RDvbhReceiver::RBody::CancelReceiveIPData()
   130 	{
   131 	}	
   132 
   133 TInt RDvbhReceiver::RBody::UpdateNetworkTime( TRequestStatus& /*aStatus*/ )
   134 	{
   135 	return KErrNotSupported;
   136 	}	
   137 
   138 void RDvbhReceiver::RBody::CancelUpdateNetworkTime()
   139 	{
   140 	}	
   141 
   142 TInt RDvbhReceiver::RBody::CustomCommand(
   143             TInt /*aCommand*/,
   144             const TDesC8& /*aInputData*/,
   145             TDes8& /*aOutputBuffer*/,
   146             TRequestStatus& /*aStatus*/ )
   147 	{
   148 	return KErrNotSupported;
   149 	}	
   150 
   151 void RDvbhReceiver::RBody::CancelCustomCommand( TRequestStatus& /*aStatus*/ )
   152 	{
   153 	}	
   154 
   155 TInt RDvbhReceiver::RBody::CustomCommand( TInt /*aCommand*/, const TDesC8& /*aInputData*/ )
   156 	{
   157 	return KErrNotSupported;
   158 	}	
   159 
   160 
   161 	
   162