remotestoragefw/remotefileengine/inc/rsfwrequestallocator.h
changeset 13 6b4fc789785b
parent 2 c32dc0be5eb4
equal deleted inserted replaced
2:c32dc0be5eb4 13:6b4fc789785b
     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:  Operation and request allocation and deletion
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RSFWTRequestType_H
       
    19 #define RSFWTRequestType_H
       
    20 
       
    21 #include <e32def.h>
       
    22 
       
    23 class CRsfwRfeSyncOperation;
       
    24 class CRsfwRfeAsyncOperation;
       
    25 class CRsfwRfeMessageRequest;
       
    26 class CRsfwRfeRequest;
       
    27 class RMessage2;
       
    28 class CRsfwRfeSession;
       
    29 
       
    30 /**
       
    31  *  Operation and request allocation and deletion
       
    32  */
       
    33 class RsfwRequestAllocator
       
    34     {
       
    35 public:
       
    36     static CRsfwRfeSyncOperation* GetSyncOperation(CRsfwRfeRequest* aRequest,
       
    37                                                TInt aCaller);
       
    38     static CRsfwRfeAsyncOperation* GetAsyncOperation(CRsfwRfeRequest* aRequest,
       
    39                                                  TInt aCaller);
       
    40     static CRsfwRfeMessageRequest* GetMessageRequest(const RMessage2& aMessage,
       
    41                                                  CRsfwRfeSession* aSession);
       
    42     // request gets ownership of its operation, and deletes it
       
    43     static void FreeRequest(CRsfwRfeRequest* aRequest);
       
    44     };
       
    45     
       
    46 #endif