filemanager/src/filemanager/src/components/fmdlgutils.h
changeset 16 ada7962b4308
parent 14 1957042d8c7e
child 18 edd66bde63a4
child 25 b7bfdea70ca2
child 37 15bc28c9dd51
equal deleted inserted replaced
14:1957042d8c7e 16:ada7962b4308
    23 
    23 
    24 #include <QString>
    24 #include <QString>
    25 #include <QStringList>
    25 #include <QStringList>
    26 #include <QTime>
    26 #include <QTime>
    27 
    27 
       
    28 class HbDialog;
       
    29 class HbAction;
       
    30 
    28 class FmDlgUtils : public QObject
    31 class FmDlgUtils : public QObject
    29 {
    32 {
    30     Q_OBJECT
    33     Q_OBJECT
    31 public:
    34 public:
    32 
    35 
    39      * @return true if selection made, otherwise false
    42      * @return true if selection made, otherwise false
    40      */
    43      */
    41     static bool showSingleSettingQuery(
    44     static bool showSingleSettingQuery(
    42         const QString &title,
    45         const QString &title,
    43         const QStringList &textList,
    46         const QStringList &textList,
    44         int &selectedIndex );
    47         int &selectedIndex,
       
    48 		const QString &associatedDrives = QString() );
    45 
    49 
    46     /**
    50     /**
    47      * Shows multi select setting page
    51      * Shows multi select setting page
    48      *
    52      *
    49      * @param title Title text
    53      * @param title Title text
    54      */
    58      */
    55 	static bool showMultiSettingQuery(
    59 	static bool showMultiSettingQuery(
    56         const QString &title,
    60         const QString &title,
    57         const QStringList &textList,
    61         const QStringList &textList,
    58         quint32 &selection,
    62         quint32 &selection,
    59         int dominantIndex );
    63         int dominantIndex,
       
    64 		const QString &associatedDrives = QString() );
    60 
    65 
    61     /**
    66     /**
    62      * Shows time setting page
    67      * Shows time setting page
    63      *
    68      *
    64      * @param title Title text id
    69      * @param title Title text id
    65      * @param time Selected time
    70      * @param time Selected time
    66      * @return true if selection made, otherwise false
    71      * @return true if selection made, otherwise false
    67      */
    72      */
    68     static bool showTimeSettingQuery(
    73     static bool showTimeSettingQuery(
    69         const QString &title, QTime &time );
    74         const QString &title, QTime &time,
       
    75 		const QString &associatedDrives = QString() );
    70 
    76 
    71     static bool showTextQuery(     
    77     static bool showTextQuery(     
    72        const QString &title, QString &driveName );
    78        const QString &title, QString &driveName, bool isDimPrimaryActionWhenEmpty, int maxLength = -1,
       
    79 	   const QString &associatedDrives = QString() );
    73 
    80 
    74     static bool showConfirmPasswordQuery(     
    81     static bool showSinglePasswordQuery(     
    75        const QString &title, const QString &driveName, QString &pwd );
    82        const QString &title, QString &pwd,
       
    83 	   const QString &associatedDrives = QString() );
    76 
    84 
    77     static bool showChangePasswordQuery(     
    85     static bool showMultiPasswordQuery(     
    78        const QString &firstLabel, const QString &secondLabel, QString &newPassword );
    86        const QString &firstLabel, const QString &secondLabel, QString &pwd,
       
    87 	   const QString &associatedDrives = QString() );
    79 
    88 
    80     ~FmDlgUtils(void);
    89     ~FmDlgUtils(void);
    81 private:
    90 private:
    82     FmDlgUtils(void);
    91     FmDlgUtils(void);
       
    92 	static HbAction *executeDialog( HbDialog *dialog, const QString &associatedDrives );
    83 };
    93 };
    84 
    94 
    85 
    95 
    86 #endif
    96 #endif