remotestoragefw/remotefileengine/inc/rsfwmountconnectionstatemachine.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 changing mount state, e.g. online->offline
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFW_MOUNTCONNECTIONSTATEMACHINE_H
       
    19 #define C_RSFW_MOUNTCONNECTIONSTATEMACHINE_H
       
    20 
       
    21 #include "rsfwwaitnotestatemachine.h"
       
    22 #include "rsfwvolume.h"
       
    23 
       
    24 /**
       
    25  *  State machine for changing mount state, e.g. online->offline
       
    26  *  This state machine is currently only used for disconnecting
       
    27  *  For connecting CRsfWMountStateMachine is used
       
    28  *  Disconnecting does not currently send packets to network,
       
    29  *  but it is possible that this happens in the future.
       
    30  *
       
    31  */
       
    32 class CRsfwMountConnectionStateMachine : public CRsfwWaitNoteStateMachine
       
    33     {
       
    34 public:
       
    35     CRsfwMountConnectionStateMachine(TChar aDriveLetter, TUint aState);
       
    36 
       
    37 public:
       
    38     // STATES
       
    39     class TChangeConnectionState : public CRsfwMountConnectionStateMachine::TState
       
    40         {
       
    41     public:
       
    42         TChangeConnectionState(CRsfwMountConnectionStateMachine* aOperation);
       
    43         void EnterL();
       
    44         TState* CompleteL();
       
    45         TState* ErrorL(TInt aCode);
       
    46     private:
       
    47         // backpointer to the operation
       
    48         CRsfwMountConnectionStateMachine* iOperation;
       
    49         // 
       
    50         CRsfwVolume *iVolume;
       
    51         };
       
    52         
       
    53 public:
       
    54     // parameters of the operation  
       
    55     TChar iDriveLetter;
       
    56     TUint iState;
       
    57         
       
    58     };    
       
    59     
       
    60 #endif  // C_RSFW_MOUNTCONNECTIONSTATEMACHINE_H