mmfenh/enhancedmediaclient/Client/src/Components/StreamControl/CMCustomCommand.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 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:  Implementation of the CMCustomCommand class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "CMCustomCommand.h"
       
    20 #include <mmfcontroller.h>
       
    21 
       
    22 using namespace multimedia;
       
    23 
       
    24 CMCustomCommand::CMCustomCommand(RMMFController& aController)
       
    25 : iController(aController)
       
    26     {
       
    27     // No impl
       
    28     }
       
    29 
       
    30 CMCustomCommand::~CMCustomCommand()
       
    31     {
       
    32     // No impl
       
    33     }
       
    34 
       
    35 TInt CMCustomCommand::CustomCommandSync(const TMMFMessageDestinationPckg&  aDestination,
       
    36                                         TInt                         aFunction,
       
    37                                         const TDesC8&                aDataTo1,
       
    38                                         const TDesC8&                aDataTo2,
       
    39                                         TDes8&                       aDataFrom)
       
    40     {
       
    41     return iController.CustomCommandSync( aDestination, aFunction, aDataTo1, aDataTo2, aDataFrom );
       
    42     }
       
    43 
       
    44 TInt CMCustomCommand::CustomCommandSync(const TMMFMessageDestinationPckg&  aDestination,
       
    45                                         TInt                         aFunction,
       
    46                                         const TDesC8&                aDataTo1,
       
    47                                         const TDesC8&                aDataTo2)
       
    48     {
       
    49     return iController.CustomCommandSync( aDestination, aFunction, aDataTo1, aDataTo2 );
       
    50     }
       
    51 
       
    52 void CMCustomCommand::CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination,
       
    53                                          TInt                        aFunction,
       
    54                                          const TDesC8&               aDataTo1,
       
    55                                          const TDesC8&               aDataTo2,
       
    56                                          TDes8&                      aDataFrom,
       
    57                                          TRequestStatus&             aStatus)
       
    58     {
       
    59     iController.CustomCommandAsync( aDestination, aFunction, aDataTo1, aDataTo2, aDataFrom, aStatus );
       
    60     }
       
    61 
       
    62 void CMCustomCommand::CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination,
       
    63                                          TInt                        aFunction,
       
    64                                          const TDesC8&               aDataTo1,
       
    65                                          const TDesC8&               aDataTo2,
       
    66                                          TRequestStatus&             aStatus)
       
    67     {
       
    68     iController.CustomCommandAsync( aDestination, aFunction, aDataTo1, aDataTo2, aStatus );
       
    69     }
       
    70 
       
    71 // End of file