vtprotocols/inc/ch324confighandler.h
changeset 0 ed9695c8bcbe
child 34 f15ac8e65a02
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     1 /*
       
     2 * Copyright (c) 2004-2006 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CH324ConfigHandler_H
       
    20 #define CH324ConfigHandler_H
       
    21 NONSHARABLE_CLASS( TH324ConfigHandler ) : public MPVH324MConfigSymbianObserver
       
    22     {
       
    23     public:
       
    24         
       
    25         /**
       
    26          * Constructor.
       
    27          */
       
    28         TH324ConfigHandler(MVtProtocolHandler* aProtocolHandler);
       
    29 
       
    30         /**
       
    31         Handle an event that has been generated.
       
    32 
       
    33         @param aResponse  The response to a previously issued command.
       
    34         */
       
    35         virtual void MPVH324MConfigCommandCompletedL(const CPVCmdResponse& aResponse);
       
    36 
       
    37         /**
       
    38         Handle an information event.
       
    39 
       
    40         @param aEvent  
       
    41         */
       
    42         virtual void MPVH324MConfigInformationalEventL(const CPVAsyncInformationalEvent& aEvent);
       
    43     private:
       
    44         MVtProtocolHandler* iProtocolHandler;
       
    45     };
       
    46  
       
    47 NONSHARABLE_CLASS( CH324ConfigCommand ): public CBase,
       
    48                                          public MVtH324ConfigCommand
       
    49     {
       
    50     public:
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         ~CH324ConfigCommand();
       
    55 
       
    56         /**
       
    57          * Sets the vendor identification data.  This does not cause the stack to issue a vendor identifiation request.
       
    58          * Set to NULL to disable sending vendor id.  If set to a valid parameter before Connect, it will cause the stack
       
    59          * to automatically send it along with the TCS message.
       
    60          * @param cc
       
    61          *         T35 Country code
       
    62          * @param ext
       
    63          *         T35 Extension
       
    64          * @param mc
       
    65          *         T35 Manufacturer code
       
    66          * @param aProduct
       
    67          *         Product number
       
    68          * @param aVersion
       
    69          *         Version number
       
    70          **/
       
    71         virtual TInt SetVendorId(TUint8 cc, TUint8 ext, TUint32 mc, const TDesC8* aProduct, const TDesC8* aVersion);
       
    72 
       
    73         /**
       
    74          * This API allows the user to send a videoTemporalSpatialTradeOff command to the peer.
       
    75          * It is a request to the remote encoder to adjust its encoding in accordance with the tradeoff value.
       
    76          * A value of 0 indicates a high spatial resolution and a value of 31 indicates a high frame rate.
       
    77          * The values from 0 to 31 indicate monotonically a higher frame rate. Actual values do not correspond
       
    78          * to precise values of spatial resolution or frame rate.
       
    79          *
       
    80          **/
       
    81         virtual TInt SendVideoTemporalSpatialTradeoffCommand(TUint aLogicalChannel, TUint8 aTradeoff);
       
    82 
       
    83         /**
       
    84          * This API allows the user to send a videoTemporalSpatialTradeOff command to the peer.
       
    85          * It is an indication to the remote decoder that the local encoder has adjusted its encoding parameters
       
    86          * according to the tradeoff value.
       
    87          * A value of 0 indicates a high spatial resolution and a value of 31 indicates a high frame rate.
       
    88          * The values from 0 to 31 indicate monotonically a higher frame rate. Actual values do not correspond
       
    89          * to precise values of spatial resolution or frame rate.
       
    90          *
       
    91          **/
       
    92         virtual TInt SendVideoTemporalSpatialTradeoffIndication(TUint aLogicalChannel, TUint8 aTradeoff);
       
    93 
       
    94         /**
       
    95          * This API allows the user to specify the supported resolutions for video for transmit and receive.
       
    96          *
       
    97          **/
       
    98         virtual TInt SetSupportedResolutions( );
       
    99         /**
       
   100         * This API allows the user to set options for fast call setup procedures
       
   101         **/
       
   102         virtual TInt SetFastCsupOptions( );
       
   103 
       
   104         /**
       
   105          * Causes the protocol to send the specified user input to the remote terminal using
       
   106          * control channel.  The user input can be either DTMF ot Alphanumeric
       
   107          * @param user_input A pointer to MVTUserInput
       
   108          * @returns A unique command id for asynchronous completion
       
   109          **/
       
   110         virtual TInt SendUserInputMessageL(MVTUserInput& user_input);
       
   111 
       
   112         /**
       
   113          * This API allows the user to specify observers for the 324m interface.
       
   114          *
       
   115          * @param aHandler     the observer for command status and unsolicited informational events
       
   116          **/
       
   117         virtual void SetObserverL(MVtProtocolHandler* aHandler);
       
   118        
       
   119        /**
       
   120         * Get member variant.
       
   121         */
       
   122         MPVH324MConfig*& PVH324ConfigInterface() { return iH324Config; }
       
   123     private:
       
   124         MPVH324MConfig* iH324Config;
       
   125         TH324ConfigHandler* iH324ConfigHandler;
       
   126     };    
       
   127 #endif
       
   128 //  End of File
       
   129