filemanager/Engine/inc/CFileManagerActiveRename.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     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:  Class wraps rename operation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CFILEMANAGERACTIVERENAME_H
       
    21 #define CFILEMANAGERACTIVERENAME_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include "CFileManagerActiveBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class RFs;
       
    29 class CFileManagerEngine;
       
    30 class CFileManagerUtils;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 * Class wraps rename operation.
       
    35 *
       
    36 *  @lib FileManagerEngine.lib
       
    37 *  @since 3.2
       
    38 */
       
    39 NONSHARABLE_CLASS( CFileManagerActiveRename ) : public CFileManagerActiveBase
       
    40     {
       
    41     public:
       
    42         /**
       
    43         * Constructor.
       
    44         */
       
    45         static CFileManagerActiveRename* NewL(
       
    46             CFileManagerEngine& aEngine,
       
    47             CFileManagerUtils& aUtils,
       
    48             const TDesC& aName,
       
    49             const TDesC& aNewName );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CFileManagerActiveRename();
       
    55 
       
    56     private: // From CFileManagerActiveBase
       
    57         void ThreadFunctionL( const TBool& aCanceled );
       
    58         
       
    59         void CancelThreadFunction();
       
    60 
       
    61     private:
       
    62         /**
       
    63         * C++ default constructor.
       
    64         */
       
    65         CFileManagerActiveRename(
       
    66             CFileManagerEngine& aEngine,
       
    67             CFileManagerUtils& aUtils );
       
    68 
       
    69         void ConstructL( const TDesC& aName, const TDesC& aNewName );
       
    70 
       
    71         TInt ThreadGetMaxSubfolderPathL( const TBool& aCanceled );
       
    72 
       
    73     private: // Data
       
    74         // Ref: File Manager engine
       
    75         CFileManagerEngine& iEngine;
       
    76 
       
    77         // Ref: File Manager utils
       
    78         CFileManagerUtils& iUtils;
       
    79 
       
    80         // Ref: Shareable file server session
       
    81         RFs& iFs;
       
    82 
       
    83         // Own: Stores name.
       
    84         HBufC* iName;
       
    85 
       
    86         // Own: Stores new name.
       
    87         HBufC* iNewName;
       
    88 
       
    89         // Indicates if operation is done in remote drive
       
    90         TBool iIsRemoteDrive;
       
    91     };
       
    92 
       
    93 #endif      // CFILEMANAGERACTIVERENAME_H
       
    94             
       
    95 // End of File
       
    96