remotestoragefw/remotefileengine/inc/rsfwgetattributesstatemachine.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:  State machine for getting attributes of a file
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFW_GETATTRIBUTESSTATEMACHINE_H
       
    19 #define C_RSFW_GETATTRIBUTESSTATEMACHINE_H
       
    20 
       
    21 
       
    22 #include "rsfwgetattributesstatemachine.h"
       
    23 #include "rsfwattributerefreshingstatemachine.h"
       
    24 
       
    25 class CRsfwGetAttributesStateMachine : public CRsfwAttributeRefreshingStateMachine
       
    26     {
       
    27 public:
       
    28     CRsfwGetAttributesStateMachine();
       
    29     
       
    30 public:
       
    31     // STATES
       
    32     // get remote attributes
       
    33     class TRefreshAttributesState :
       
    34         public CRsfwGetAttributesStateMachine::TState
       
    35         {
       
    36     public:
       
    37         TRefreshAttributesState(CRsfwAttributeRefreshingStateMachine *aOperation);
       
    38         void EnterL();
       
    39         TState* CompleteL();
       
    40         TState* ErrorL(TInt aCode);
       
    41     private:
       
    42         TState* CompleteOurRequestL(TInt aErr);
       
    43     private:
       
    44         // iOperation = CRsfwGetAttributesStateMachine or COpenByPath 
       
    45         CRsfwAttributeRefreshingStateMachine* iOperation;    
       
    46         };     
       
    47         
       
    48 public:   
       
    49     TState* CompleteRequestL(TInt aError);   
       
    50   };
       
    51 
       
    52 #endif // C_RSFW_GETATTRIBUTESSTATEMACHINE_H