utilityapps/filebrowser/ui/inc/fbfolderselectiondialog.h
changeset 55 2d9cac8919d3
equal deleted inserted replaced
53:819e59dfc032 55:2d9cac8919d3
       
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef FBFOLDERSELECTIONDIALOG_H_
       
    19 #define FBFOLDERSELECTIONDIALOG_H_
       
    20 
       
    21 #include <HbDialog>
       
    22 
       
    23 // forward declarations
       
    24 class FbFolderSelectorWrapper;
       
    25 class HbListWidget;
       
    26 class HbListWidgetItem;
       
    27 class HbLabel;
       
    28 class QFileIconProvider;
       
    29 
       
    30 class FbFolderSelectionDialog : public HbDialog
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     explicit FbFolderSelectionDialog(QGraphicsItem *parent = 0);
       
    36     virtual ~FbFolderSelectionDialog();
       
    37 
       
    38     QString selectedFolder();
       
    39 
       
    40 private:
       
    41     void init();
       
    42     void createHeading();
       
    43     void createList();
       
    44     void createToolBar();
       
    45 
       
    46 private slots:
       
    47     void activated(HbListWidgetItem *);
       
    48     void refreshView();
       
    49     void moveUpPressed();
       
    50     void acceptTriggered();
       
    51 
       
    52 protected:
       
    53     HbLabel *mTitle;
       
    54 
       
    55 private:
       
    56     HbLabel *mCurrentPath;
       
    57     HbListWidget *mFolderList;
       
    58     FbFolderSelectorWrapper *mFolderSelectorWrapper;
       
    59     QFileIconProvider *mFileIconProvider;
       
    60 };
       
    61 
       
    62 class FbCopyToFolderSelectionDialog : public FbFolderSelectionDialog
       
    63 {
       
    64     Q_OBJECT
       
    65 
       
    66 public:
       
    67     explicit FbCopyToFolderSelectionDialog(QGraphicsItem *parent = 0);
       
    68 };
       
    69 
       
    70 class FbMoveToFolderSelectionDialog : public FbFolderSelectionDialog
       
    71 {
       
    72     Q_OBJECT
       
    73 
       
    74 public:
       
    75     explicit FbMoveToFolderSelectionDialog(QGraphicsItem *parent = 0);
       
    76 };
       
    77 
       
    78 #endif // FBFOLDERSELECTIONDIALOG_H_