remotestoragefw/remotefileengine/inc/rsfwflushstatemachine.h
branchRCL_3
changeset 20 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
19:88ee4cf65e19 20:1aa8c82cb4cb
       
     1 /*
       
     2 * Copyright (c) 2007 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:  State machine for flushing file contexts
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_RSFW_FLUSHSTATEMACHINE_H
       
    20 #define C_RSFW_FLUSHSTATEMACHINE_H
       
    21 
       
    22 #include "rsfwwaitnotestatemachine.h"
       
    23 #include "rsfwsavetodlgrequest.h"
       
    24 
       
    25 /**
       
    26  *  State machine for flushing a file
       
    27  *
       
    28  */
       
    29 
       
    30 class CRsfwFlushStateMachine : public CRsfwWaitNoteStateMachine
       
    31     {
       
    32 public:
       
    33     CRsfwFlushStateMachine();
       
    34         
       
    35 public:
       
    36     // STATES
       
    37     class TFlushDataToServerState : public CRsfwFlushStateMachine::TState
       
    38         {
       
    39     public:
       
    40         TFlushDataToServerState(CRsfwFlushStateMachine *aOperation);
       
    41         void EnterL();
       
    42         TState* CompleteL();
       
    43         TState* ErrorL(TInt aCode);
       
    44     private:
       
    45         CRsfwFlushStateMachine* iOperation;
       
    46         };
       
    47     
       
    48 public: 
       
    49     TState* CompleteL(TInt aError);
       
    50     TState* CompleteRequestL(TInt aError);
       
    51    
       
    52   };
       
    53 
       
    54 
       
    55 
       
    56 #endif // C_RSFW_FLUSHSTATEMACHINE_H