filebrowser/inc/FBFileDlgs.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FILEBROWSER_FILEDLGS_H
       
    20 #define FILEBROWSER_FILEDLGS_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include "FBFileUtils.h"
       
    25 
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 #include <f32file.h>
       
    29 #include <aknlistquerydialog.h>
       
    30 #include <apgcli.h>
       
    31 
       
    32 
       
    33 //  FORWARD DECLARATIONS
       
    34 class CAknIconArray;
       
    35 class CAknSingleGraphicStyleListBox;
       
    36 
       
    37 
       
    38 //  CLASS DEFINITIONS
       
    39 
       
    40 class CFileBrowserDestinationFolderSelectionDlg : public CAknListQueryDialog
       
    41     {
       
    42 public:
       
    43     static CFileBrowserDestinationFolderSelectionDlg* NewL(TDes& aReturnPath, CDriveEntryList* aDriveEntryList, CAknIconArray* aIconArray);
       
    44     virtual ~CFileBrowserDestinationFolderSelectionDlg();
       
    45 
       
    46 private: // Constructors
       
    47     CFileBrowserDestinationFolderSelectionDlg(TDes& aReturnPath, CAknIconArray* aIconArray);
       
    48     void ConstructL(CDriveEntryList* aDriveEntryList);        
       
    49 
       
    50 protected:  // From CEikDialog
       
    51     TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
       
    52     void PreLayoutDynInitL();
       
    53     void PostLayoutDynInitL();
       
    54     TBool OkToExitL(TInt aButtonId);    
       
    55 
       
    56 protected:  // From CCoeControl
       
    57     //void HandlePointerEventL(const TPointerEvent &aPointerEvent); 
       
    58 
       
    59 private: // New methods
       
    60     void MoveUpOneLevelL();
       
    61     void MoveDownToDirectoryL();
       
    62     void RefreshViewL();
       
    63     inline TBool IsDriveListViewActive() { return iCurrentPath==KNullDesC; }
       
    64     
       
    65 public:  // New methods
       
    66     TBool RunCopyDlgLD();
       
    67     TBool RunMoveDlgLD();
       
    68 
       
    69 private: // Data
       
    70     TInt                            iSelectedIndex;
       
    71     TBuf<16>                        iLSKActionText;
       
    72     TDes&                           iReturnPath;
       
    73     RFs                             iFs;
       
    74     CDriveEntryList*                iDriveEntryList;
       
    75     CFileEntryList*                 iFileEntryList;
       
    76     CAknIconArray*                  iIconArray;
       
    77     TFileName                       iCurrentPath;
       
    78     //TPoint                          iDragStartPoint;
       
    79     //TBool                           iIsDragging;
       
    80     };
       
    81 
       
    82 
       
    83 class CFileBrowserAttributeEditorDlg : public CAknForm
       
    84     {
       
    85 public:
       
    86     static CFileBrowserAttributeEditorDlg* NewL(TUint& aSetAttMask, TUint& aClearAttMask, TBool& aRecurse);
       
    87     virtual ~CFileBrowserAttributeEditorDlg();
       
    88 
       
    89 private: // Constructors
       
    90     CFileBrowserAttributeEditorDlg(TUint& aSetAttMask, TUint& aClearAttMask, TBool& aRecurse);
       
    91     void ConstructL();        
       
    92 
       
    93 protected:  // From CEikDialog
       
    94     TBool OkToExitL(TInt aButtonId);    
       
    95     void PreLayoutDynInitL();
       
    96     
       
    97 public:  // New methods
       
    98     TBool RunEditorLD();
       
    99 
       
   100 private: // Data
       
   101     TUint&                          iSetAttMask;
       
   102     TUint&                          iClearAttMask;
       
   103     TBool&                          iRecurse;
       
   104     };
       
   105 
       
   106 
       
   107 class CFileBrowserSearchQueryDlg : public CAknForm
       
   108     {
       
   109 public:
       
   110     static CFileBrowserSearchQueryDlg* NewL(TSearchAttributes& aSearchAttributes);
       
   111     virtual ~CFileBrowserSearchQueryDlg();
       
   112 
       
   113 private: // Constructors
       
   114     CFileBrowserSearchQueryDlg(TSearchAttributes& aSearchAttributes);
       
   115     void ConstructL();        
       
   116 
       
   117 protected:  // From CEikDialog
       
   118     TBool OkToExitL(TInt aButtonId);    
       
   119     void PreLayoutDynInitL();
       
   120     
       
   121 public:  // New methods
       
   122     TBool RunQueryLD();
       
   123 
       
   124 private: // Data
       
   125     TSearchAttributes&              iSearchAttributes;
       
   126     };
       
   127 
       
   128 
       
   129 class CFileBrowserDataTypesDlg : public CAknDialog, public MEikListBoxObserver
       
   130     {
       
   131 public:
       
   132     static CFileBrowserDataTypesDlg* NewL();
       
   133     virtual ~CFileBrowserDataTypesDlg();
       
   134 
       
   135 public: // From MEikListBoxObserver
       
   136     void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
       
   137 
       
   138 public: // From CAknDialog
       
   139     void ProcessCommandL(TInt aCommandId);
       
   140         
       
   141 private: // Constructors
       
   142     CFileBrowserDataTypesDlg();
       
   143     void ConstructL();        
       
   144 
       
   145 protected: // From CEikDialog
       
   146     void PreLayoutDynInitL();
       
   147     TBool OkToExitL(TInt aButtonId); 
       
   148     
       
   149 public:  // New methods
       
   150     void GetDataTypesL();
       
   151     void ChangeMappingL();
       
   152     void SetDefaultMappingL();
       
   153     TBool RunQueryLD();
       
   154 
       
   155 private: // Data
       
   156     CAknSingleGraphicStyleListBox*          iListBox;
       
   157     RApaLsSession                           iLs;
       
   158     CDataTypeArray*                         iDTArray;  
       
   159     };
       
   160 
       
   161 #endif
       
   162 
       
   163 // End of File
       
   164