hwrmhaptics/hapticspluginmanager/src/hwrmhapticspluginrequestdata.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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:  Haptic plugin request data implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "hwrmhapticspluginrequestdata.h"
       
    20 #include "hwrmhapticstrace.h"
       
    21 
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // Destructor.
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 CHWRMHapticsPluginRequestData::~CHWRMHapticsPluginRequestData()
       
    28     {
       
    29     COMPONENT_TRACE( ( _L( "CHWRMHapticsPluginRequestData::~CHWRMHapticsPluginRequestData()" ) ) );
       
    30     delete iReqData;
       
    31     iReqData = NULL;
       
    32     COMPONENT_TRACE( ( _L( "CHWRMHapticsPluginRequestData::~CHWRMHapticsPluginRequestData - return" ) ) );
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // C++ constructor.
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 CHWRMHapticsPluginRequestData::CHWRMHapticsPluginRequestData(
       
    40                                             const RMessage2& aRequestMessage,
       
    41                                             TUint8 aTransId, 
       
    42                                             TInt aCommandId, 
       
    43                                             TBool aSplitCommand )
       
    44             : CHWRMHapticsPluginTransactionListItem( aTransId, aCommandId ),
       
    45               iRequestMessage(aRequestMessage), iSplitCommand( aSplitCommand )
       
    46     {
       
    47     }
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // Returns plugin request message.
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 RMessage2 CHWRMHapticsPluginRequestData::RequestMessage()
       
    54     {
       
    55     return iRequestMessage;
       
    56     }
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // Returns information is command split to two adaptation calls.
       
    60 // ---------------------------------------------------------------------------
       
    61 //
       
    62 TBool CHWRMHapticsPluginRequestData::CommandSplit()
       
    63     {
       
    64     return iSplitCommand;
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // 
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 void CHWRMHapticsPluginRequestData::SetRequestData( HBufC8* aRequestData )
       
    72     {
       
    73     iReqData = aRequestData;
       
    74     }
       
    75 // End of File