vtprotocolsstub/src/ch324confighandler.cpp
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  H324 configuration implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mvtprotocolhandler.h"
       
    20 #include "ch324confighandler.h"
       
    21 #include "cvtuserinput.h"
       
    22 
       
    23 #ifdef _DEBUG
       
    24 #    define __IF_DEBUG(t) {RDebug::t;}
       
    25 #else
       
    26 #    define __IF_DEBUG(t)
       
    27 #endif
       
    28 
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // TH324ConfigHandler::TH324ConfigHandler
       
    32 // Constructor.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 TH324ConfigHandler::TH324ConfigHandler(MVtProtocolHandler* aProtocolHandler) : iProtocolHandler(aProtocolHandler)
       
    36     {
       
    37     __IF_DEBUG(Print(_L("VTProto: TH324ConfigHandler::TH324ConfigHandler<")));	
       
    38     __IF_DEBUG(Print(_L("VTProto: TH324ConfigHandler::TH324ConfigHandler>")));	
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CH324ConfigCommand::SetVendorId
       
    43 // Sets the vendor identification data.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 TInt CH324ConfigCommand::SetVendorId(TUint8 cc, TUint8 ext, TUint32 mc, const TDesC8* aProduct, const TDesC8* aVersion)
       
    47     {
       
    48     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetVendorId")));		
       
    49     return KErrNone;
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CH324ConfigCommand::SendVideoTemporalSpatialTradeoffCommand
       
    54 // This API allows the user to send a videoTemporalSpatialTradeOff command to the peer.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 TInt CH324ConfigCommand::SendVideoTemporalSpatialTradeoffCommand(TUint aLogicalChannel, TUint8 aTradeoff)
       
    58     {
       
    59     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SendVideoTemporalSpatialTradeoffCommand")));			
       
    60     return KErrNone;
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CH324ConfigCommand::SendVideoTemporalSpatialTradeoffIndication
       
    65 // This API allows the user to send a videoTemporalSpatialTradeOff command to the peer.
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 TInt CH324ConfigCommand::SendVideoTemporalSpatialTradeoffIndication(TUint aLogicalChannel, TUint8 aTradeoff)
       
    69     {
       
    70     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SendVideoTemporalSpatialTradeoffIndication")));		
       
    71     return KErrNone;
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CH324ConfigCommand::SetVideoResolutions
       
    76 // This API allows the user to specify the supported resolutions for video for transmit and receive.
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 TInt CH324ConfigCommand::SetSupportedResolutions()
       
    80     {
       
    81     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetSupportedResolutions")));	
       
    82         
       
    83     return KErrNone;    
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CH324ConfigCommand::SetFastCsupOptions
       
    88 // This API allows the user to set options for fast call setup procedures.
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 TInt CH324ConfigCommand::SetFastCsupOptions( )
       
    92     {
       
    93     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetFastCsupOptions")));	
       
    94     return KErrNone;
       
    95     }
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // CH324ConfigCommand::SendUserInputMessageL
       
    99 // Causes the vt2way to send the specified user input to the remote terminal using
       
   100 // control channel.
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 TInt CH324ConfigCommand::SendUserInputMessageL(MVTUserInput& user_input)
       
   104     {
       
   105     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SendUserInputMessageL<")));	
       
   106     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SendUserInputMessageL>")));
       
   107     return KErrNone;
       
   108     }
       
   109 
       
   110 // -----------------------------------------------------------------------------
       
   111 // CH324ConfigCommand::SetObserverL
       
   112 // This API allows the user to specify observers for the 324m interface.
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 void CH324ConfigCommand::SetObserverL(MVtProtocolHandler* aHandler)
       
   116     {
       
   117     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetObserverL<")));	 	
       
   118     iH324ConfigHandler = new (ELeave)TH324ConfigHandler(aHandler);
       
   119     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetObserverL observer %d"), iH324ConfigHandler));
       
   120     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::SetObserverL>")));	 
       
   121     }
       
   122 
       
   123 // -----------------------------------------------------------------------------
       
   124 // CH324ConfigCommand::~CH324ConfigCommand
       
   125 // Destructor.
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 CH324ConfigCommand::~CH324ConfigCommand()
       
   129     {
       
   130     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::~CH324ConfigCommand<")));		
       
   131     delete iH324ConfigHandler;
       
   132     __IF_DEBUG(Print(_L("VTProto: CH324ConfigCommand::~CH324ConfigCommand>")));	
       
   133     }    
       
   134 
       
   135 // end of file