hwrmhaptics/hapticspluginmanager/inc/hwrmhapticspluginrequestdata.h
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 header file.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_HWRMHAPTICSPLUGINREQUESTDATA_H
       
    20 #define C_HWRMHAPTICSPLUGINREQUESTDATA_H
       
    21 
       
    22 #include "hwrmhapticsplugintransactionlist.h"
       
    23 
       
    24 /**
       
    25  * Data storage class for plugin requests.
       
    26  */
       
    27 class CHWRMHapticsPluginRequestData : public CHWRMHapticsPluginTransactionListItem
       
    28     {
       
    29 public:
       
    30 
       
    31     /**
       
    32      * C++ constructor.
       
    33      */
       
    34     CHWRMHapticsPluginRequestData( const RMessage2& aRequestMessage,
       
    35                                    TUint8 aTransId, 
       
    36                                    TInt aCommandId, 
       
    37                                    TBool aSplitCommand);
       
    38 
       
    39     /**
       
    40      * Virtual destructor.
       
    41      */
       
    42     virtual ~CHWRMHapticsPluginRequestData();
       
    43 
       
    44 
       
    45     /**
       
    46      * Method to get plugin request message.
       
    47      *
       
    48      * @return Plugin request message
       
    49      */
       
    50     RMessage2 RequestMessage();
       
    51 
       
    52     /**
       
    53      * Method to get information is command split to two adaptation calls.
       
    54      *
       
    55      * @return Is command split or not.
       
    56      */
       
    57     TBool CommandSplit();
       
    58     
       
    59     /**
       
    60      * Method to get information is command split to two adaptation calls.
       
    61      *
       
    62      * @return Is command split or not.
       
    63      */
       
    64     void SetRequestData( HBufC8* aRequestData );
       
    65     
       
    66 private:
       
    67 
       
    68     /**
       
    69      * Can have NULL handle for timer triggered requests.
       
    70      */
       
    71     RMessage2 iRequestMessage;
       
    72 
       
    73     /**
       
    74      * Indicates if command was split to two adaptation calls.
       
    75      */
       
    76     TBool iSplitCommand;
       
    77 
       
    78     /**
       
    79      * Request data buffer to be deleted, when the request is completed.
       
    80      * Owned.
       
    81      */
       
    82     HBufC8* iReqData;
       
    83     };
       
    84 
       
    85 
       
    86 #endif  // C_HWRMHAPTICSPLUGINREQUESTDATA_H
       
    87             
       
    88 // End of File