mpxmusicplayer/mediakeyhandler/inc/mpxremconkeyresponse.h
changeset 0 ff3acec5bc43
child 40 cb96c29156b2
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     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:  Helper class for sending response back to RemCon Framework.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CMPXREMCONKEYRESPONSE_H
       
    21 #define C_CMPXREMCONKEYRESPONSE_H
       
    22 
       
    23 
       
    24 // INCLUDE FILES
       
    25 #include <remconcoreapitarget.h>
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  Helper class for sending response back to 
       
    32  *  Remote Controller Framework.
       
    33  *  All events must be completed.
       
    34  *
       
    35  *  @lib mpxmediakeyhandler.lib
       
    36  *  @since S60 v3.0
       
    37  */
       
    38 NONSHARABLE_CLASS( CMPXRemConKeyResponse ) : public CActive
       
    39     {
       
    40 public:
       
    41         
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      *
       
    45      * @since 3.0
       
    46      * @param aRemConCoreApiTarget RemCon core target object.
       
    47      * @return Pointer to newly created object.
       
    48      */
       
    49     static CMPXRemConKeyResponse* NewL( 
       
    50         CRemConCoreApiTarget& aRemConCoreApiTarget );
       
    51         
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     virtual ~CMPXRemConKeyResponse();
       
    56    
       
    57     /**
       
    58      * Send the any key response back to Remcon server
       
    59      *
       
    60      * @since 3.0
       
    61      * @param aOperationId RemCon operation Id.
       
    62      */
       
    63     void CompleteAnyKey( TRemConCoreApiOperationId aOperationId );
       
    64     
       
    65 private:
       
    66 
       
    67     /**
       
    68      * C++ default constructor.
       
    69      */
       
    70     CMPXRemConKeyResponse(
       
    71         CRemConCoreApiTarget& aRemConCoreApiTarget );
       
    72 
       
    73 // from base class CActive
       
    74 
       
    75     /**
       
    76      * From CActive
       
    77      * Handles an active object's request completion event.
       
    78      */
       
    79     void RunL();
       
    80 
       
    81     /**
       
    82      * From CActive
       
    83      * Implements cancellation of an outstanding request.
       
    84      */
       
    85     void DoCancel();
       
    86 
       
    87 private:    // Data
       
    88 
       
    89     /**
       
    90      * Response array.
       
    91      * Own.
       
    92      */
       
    93     RArray<TRemConCoreApiOperationId> iResponseArray;
       
    94     
       
    95     /**
       
    96      * Remote controller.
       
    97      * Not own.
       
    98      */
       
    99     CRemConCoreApiTarget& iRemConCoreApiTarget;
       
   100     }; 
       
   101 
       
   102 #endif  // C_CMPXREMCONKEYRESPONSE_H
       
   103 
       
   104 // End of File