deviceencryption/DevEncUi/inc/DevEncUiFileManager.h
changeset 14 1957042d8c7e
parent 1 d1daf54a55b5
child 16 ada7962b4308
equal deleted inserted replaced
1:d1daf54a55b5 14:1957042d8c7e
     1 /*
       
     2 * Copyright (c) 2005 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:  AppUi class of the application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CDEVENCUIFILEMANAGER_H_
       
    19 #define CDEVENCUIFILEMANAGER_H_
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <f32file.h>
       
    23 
       
    24 class CDir;
       
    25 class CFileStore;
       
    26 //class RFs;
       
    27 
       
    28 class CDevEncUiFileManager : public CBase
       
    29     {
       
    30     public:
       
    31         virtual ~CDevEncUiFileManager();
       
    32         void ConstructL();
       
    33         
       
    34         void InteractiveKeySaveL( const TDesC8& aPkcs5Key );
       
    35         void InteractiveKeyLoadL( HBufC8*& aPkcs5Key );
       
    36 
       
    37         TInt OpenFileStore( const TDesC& aFilename,
       
    38                             CFileStore*& aStore );
       
    39 
       
    40         void SaveKeyL( CFileStore* aStore,
       
    41                 const TDesC8& aPkcs5Key ) const;
       
    42 
       
    43         void LoadKeyL( const TFileName& aFileName,
       
    44                        HBufC8*& aPkcs5Key );
       
    45 
       
    46         void GetKeyListL( CDir*& aList );
       
    47 
       
    48         TInt DriveToChar( TInt aDrive, TChar &aChar );
       
    49 
       
    50         TInt KeyFolder( TDes& aResult );
       
    51 
       
    52         TInt RemountMmc();
       
    53 
       
    54     private:
       
    55         RFs iFs;
       
    56     };
       
    57 
       
    58 #endif /*CDEVENCUIFILEMANAGER_H_*/