wim/WimServer/inc/WimResponse.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003 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:  This is a header file for class that is used a transaction id
       
    15 *                for the callback functions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef WIMRESPONSE_H
       
    21 #define WIMRESPONSE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "Wimi.h"       // WIMI definitions
       
    25 #include "WimOpcode.h"
       
    26 
       
    27 #include <e32std.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  WIMI response.
       
    33 *  Holds messages for completing after WIMI response.
       
    34 *  
       
    35 *  @since Series60 2.1
       
    36 */
       
    37 class CWimResponse : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Constructor.
       
    43         */
       
    44         CWimResponse( RMessage2 aMessage );
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CWimResponse();
       
    50     
       
    51     public: // New functions
       
    52 
       
    53         /**
       
    54         * Delete myself
       
    55         * @return void
       
    56         */
       
    57         void CompleteMsgAndDelete();
       
    58 
       
    59     public:     // Data
       
    60     
       
    61         // Message to be completed
       
    62         RMessage2     iMessage;
       
    63         // Status of the WIMI call
       
    64         WIMI_STAT    iStatus; 
       
    65         // Any internal error 
       
    66         TInt         iError;
       
    67         // Operation code
       
    68         TWimServRqst iOpcode;
       
    69 
       
    70     };
       
    71 
       
    72 #endif      // WIMRESPONSE_H
       
    73 
       
    74 // End of File
       
    75 
       
    76 
       
    77