remotestoragefw/remotefileengine/inc/rsfwwaitnotestatemachine.h
branchRCL_3
changeset 16 1aa8c82cb4cb
parent 0 3ad9d5175a89
equal deleted inserted replaced
15:88ee4cf65e19 16:1aa8c82cb4cb
       
     1 /*
       
     2 * Copyright (c) 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:  States that use a global wait dialog
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_RSFW_WAITNOTESTATEMACHINE_H
       
    19 #define C_RSFW_WAITNOTESTATEMACHINE_H
       
    20 
       
    21 #include "rsfwrfestatemachine.h"
       
    22 #include "rsfwnotpluginrequest.h"
       
    23 
       
    24 // Wait Note States
       
    25 enum TRemoteWaitNoteStates
       
    26     {
       
    27     ERemoteWaitNoteStateOk = 0,
       
    28     ERemoteWaitNoteStateInProgress
       
    29     };
       
    30     
       
    31 // Operation type supported for wait note
       
    32 enum TRemoteOperationType
       
    33     {
       
    34     ERemoteOpIdle = 0,
       
    35     ERemoteOpConnecting,
       
    36     ERemoteOpDirDownloading,
       
    37     ERemoteOpAuthDialog,
       
    38     ERemoteUnavailableRetry,
       
    39     ERemoteSaveToLocal,
       
    40     ERemoteWarnDisconnect,
       
    41     };
       
    42 
       
    43 /**
       
    44  *  Parent class for states that use global wait dialogs
       
    45  *
       
    46  */  
       
    47  class CRsfwWaitNoteStateMachine : public CRsfwRfeStateMachine   
       
    48     {
       
    49  public: 
       
    50     void CancelTransaction();
       
    51     void ShowWaitNoteL(TRemoteOperationType aResourceId); 
       
    52     void DeleteWaitNoteL(TBool aCancelOpWait);
       
    53     TState* ErrorOnStateEntry(TInt aError);
       
    54     TState* ErrorOnStateExit(TInt aError);
       
    55     TState* CompleteRequestL(TInt aError);
       
    56  public: 
       
    57     TRsfwNotPluginRequest iGlobalWaitNoteRequest;
       
    58     TUint iTransactionId; // for cancelling requests
       
    59     TUint iNoteId; 	// id of the global note
       
    60     };    
       
    61     
       
    62 #endif // C_RSFW_WAITNOTESTATEMACHINE_H