remotestoragefw/remotefileengine/inc/rsfwrferequest.h
branchRCL_3
changeset 20 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
19:88ee4cf65e19 20:1aa8c82cb4cb
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Base class for request encapsulation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFWRFEREQUEST_H
       
    19 #define C_RSFWRFEREQUEST_H
       
    20 
       
    21 class TParse;
       
    22 class TRfeInArgs;
       
    23 class TRfeOutArgs;
       
    24 class CRsfwVolumeTable;
       
    25 class CRsfwVolume;
       
    26 class CRsfwRfeOperation;
       
    27 
       
    28 
       
    29 #include <e32base.h>
       
    30 
       
    31 // type of the request
       
    32 // in the future we could have e.g. internal requests
       
    33 enum TRequestType 
       
    34 	{
       
    35 	EMessageRequest
       
    36 	};
       
    37 
       
    38 
       
    39 /**
       
    40  *  Base class for request encapsulation.
       
    41  *
       
    42  *
       
    43  */
       
    44 class CRsfwRfeRequest : public CBase
       
    45     {
       
    46 public:
       
    47     ~CRsfwRfeRequest();
       
    48     //
       
    49     virtual void CompleteAndDestroy(TInt aError) = 0;  // pure virtual
       
    50     
       
    51     void Destroy();
       
    52     virtual void Dispatch();
       
    53     virtual TParse& Src();
       
    54     virtual TParse& Dest();
       
    55     //
       
    56     CRsfwRfeOperation* Operation();
       
    57     void SetOperation(CRsfwRfeOperation* aCaller);
       
    58     TRequestType RequestType();
       
    59     void SetRequestType(TRequestType aRequestType);
       
    60     
       
    61 // Request parameters
       
    62 public:
       
    63     TRfeInArgs*    iInArgs;
       
    64     TRfeOutArgs*   iOutArgs;
       
    65 
       
    66     CRsfwVolumeTable*  iVolumeTable;
       
    67     // volume can be null in mount operation, but not after that  
       
    68     CRsfwVolume*       iVolume;
       
    69 public:
       
    70     TDblQueLink    iLink;
       
    71 protected:
       
    72     CRsfwRfeOperation* iOperation;
       
    73 private:
       
    74     TRequestType   iRequestType;
       
    75     };
       
    76 
       
    77 #endif
       
    78