filemanager/App/inc/CFileManagerMainView.h
branchRCL_3
changeset 21 65326cf895ed
parent 0 6a9f87576119
equal deleted inserted replaced
20:491b3ed49290 21:65326cf895ed
       
     1 /*
       
     2 * Copyright (c) 2006-2008 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:  Main view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_FILEMANAGERMAINVIEW_H
       
    21 #define C_FILEMANAGERMAINVIEW_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <aknview.h>
       
    26 #include "CFileManagerViewBase.h"
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  * This class implements main view of the application.
       
    32  *
       
    33  *  @since S60 3.1
       
    34  */
       
    35 class CFileManagerMainView : public CFileManagerViewBase
       
    36     {
       
    37 
       
    38 public:  // Constructors and destructor
       
    39     /**
       
    40      * Two-phased constructor.Leaves created view
       
    41      * to cleanup stack.
       
    42      *
       
    43      * @return Newly constructed view 
       
    44      */
       
    45     static CFileManagerMainView* NewLC();
       
    46     
       
    47     /**
       
    48      * Destructor.
       
    49      */
       
    50     ~CFileManagerMainView();
       
    51 
       
    52 public: // From CFileManagerViewBase
       
    53     /**
       
    54      * @see CFileManagerViewBase
       
    55      */
       
    56     void DirectoryChangedL();
       
    57 
       
    58     /**
       
    59      * @see CFileManagerViewBase
       
    60      */
       
    61     CFileManagerContainerBase* CreateContainerL();
       
    62 
       
    63 private: // From CAknView
       
    64     /**
       
    65      * @see CAknView
       
    66      */
       
    67     void DoActivateL(
       
    68         const TVwsViewId& aPrevViewId,
       
    69         TUid aCustomMessageId,
       
    70         const TDesC8& aCustomMessage );
       
    71 
       
    72     /**
       
    73      * @see CAknView
       
    74      */
       
    75     void DoDeactivate();
       
    76 
       
    77     /**
       
    78      * @see CAknView
       
    79      */
       
    80     TUid Id() const;
       
    81 
       
    82     /**
       
    83      * @see CAknView
       
    84      */
       
    85     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    86 
       
    87     /**
       
    88      * @see CAknView
       
    89      */
       
    90     void HandleCommandL( TInt aCommand );
       
    91 
       
    92 private: // From MFileManagerProcessObserver
       
    93     /**
       
    94      * @see MFileManagerProcessObserver
       
    95      */
       
    96     TInt NotifyL( TFileManagerNotify aType, TInt aData, const TDesC& aName );
       
    97 
       
    98 private: // New functions
       
    99     /**
       
   100      * Filters main menu in aMenuPane.
       
   101      */
       
   102     void MainMenuFilteringL( CEikMenuPane& aMenuPane );
       
   103 
       
   104     /**
       
   105      * Filters remote drives menu in aMenuPane.
       
   106      */        
       
   107     void RemoteDrivesMenuFilteringL( CEikMenuPane& aMenuPane );
       
   108 
       
   109     /**
       
   110      * Handles memory store open command
       
   111      */
       
   112     void CmdOpenMemoryStoreL();
       
   113 
       
   114     /**
       
   115      * Handles eject command
       
   116      */
       
   117     void CmdEjectL();
       
   118 
       
   119 #ifndef RD_FILE_MANAGER_BACKUP
       
   120     /**
       
   121      * Handles legacy backup command
       
   122      */
       
   123     void CmdBackupL();
       
   124 
       
   125     /**
       
   126      * Handles legacy restore command
       
   127      */
       
   128     void CmdRestoreL();
       
   129 #endif // RD_FILE_MANAGER_BACKUP
       
   130 
       
   131     /**
       
   132      * Handles map remote drive command
       
   133      */
       
   134     void CmdMapRemoteDriveL();
       
   135 
       
   136     /**
       
   137      * Handles remote drive settings command
       
   138      */
       
   139     void CmdRemoteDriveSettingsL();
       
   140 
       
   141     /**
       
   142      * Handles remote drive delete command
       
   143      */
       
   144     void CmdRemoteDriveDeleteL();
       
   145 
       
   146     /**
       
   147      * Filters memory storage menu items.
       
   148      *
       
   149      * @param aMenuPane Menu instance to be filtered.
       
   150      */
       
   151     void MemoryStorageMenuFilteringL( CEikMenuPane& aMenuPane );
       
   152 
       
   153     /**
       
   154      * Handles memory storage details command.
       
   155      */
       
   156     void CmdMemoryStorageDetailsL();
       
   157 
       
   158     /**
       
   159      * Handles drive rename command.
       
   160      */
       
   161     void CmdRenameDriveL();
       
   162 
       
   163     /**
       
   164      * Handles drive password set command.
       
   165      */
       
   166     void CmdSetDrivePasswordL();
       
   167 
       
   168     /**
       
   169      * Handles drive password change command.
       
   170      */
       
   171     void CmdChangeDrivePasswordL();
       
   172 
       
   173     /**
       
   174      * Handles drive password remove command.
       
   175      */
       
   176     void CmdRemoveDrivePasswordL();
       
   177 
       
   178     /**
       
   179      * Gets drive at current position.
       
   180      *
       
   181      * @return Drive identifier or KErrNotFound.
       
   182      */
       
   183     TInt DriveAtCurrentPosL();
       
   184 
       
   185 private:
       
   186     /**
       
   187     * C++ default constructor.
       
   188     */
       
   189     CFileManagerMainView();
       
   190 
       
   191     void ConstructL();
       
   192 
       
   193     };
       
   194 
       
   195 #endif // C_FILEMANAGERMAINVIEW_H
       
   196             
       
   197 // End of File