remotestoragefw/remotefileengine/inc/rsfwmkdirstatemachine.h
branchRCL_3
changeset 16 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
15:88ee4cf65e19 16: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:  State machine for creating directories
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFW_MKDIRSTATEMACHINE_H
       
    19 #define C_RSFW_MKDIRSTATEMACHINE_H
       
    20 
       
    21 #include "rsfwrfestatemachine.h"
       
    22 
       
    23 /**
       
    24  *  Creates a directory
       
    25  *
       
    26  *  State machine for creating directories. 
       
    27  *
       
    28  */ 
       
    29 class CRsfwMkDirStateMachine : public CRsfwRfeStateMachine
       
    30     {
       
    31 public:
       
    32     CRsfwMkDirStateMachine();
       
    33     ~CRsfwMkDirStateMachine();
       
    34     
       
    35 public:
       
    36     // STATES
       
    37     class TCheckIfExistsState : public CRsfwMkDirStateMachine::TState
       
    38         {
       
    39     public:
       
    40         TCheckIfExistsState(CRsfwMkDirStateMachine *aOperation);
       
    41         void EnterL();
       
    42         TState* CompleteL();
       
    43         TState* ErrorL(TInt aCode);
       
    44     private:
       
    45         CRsfwMkDirStateMachine* iOperation;
       
    46         };
       
    47         
       
    48     class TMakeDirectoryState : public CRsfwMkDirStateMachine::TState 
       
    49         {
       
    50     public:
       
    51         TMakeDirectoryState(CRsfwMkDirStateMachine *aOperation);
       
    52         void EnterL();
       
    53         TState* CompleteL();
       
    54         TState* ErrorL(TInt aCode);
       
    55     private:
       
    56         CRsfwMkDirStateMachine* iOperation; 
       
    57         };
       
    58         
       
    59 public:
       
    60     TState* CompleteRequestL(TInt aError);
       
    61         
       
    62     CRsfwFileEntry* iKidFep;
       
    63     TBool iKidCreated;
       
    64     CRsfwDirEntAttr* iDirEntAttr;
       
    65     }; 
       
    66 
       
    67  
       
    68  
       
    69 #endif // C_RSFW_MKDIRSTATEMACHINE_H