1 /*! 2 * @file searchfiledialog.h 3 * Copyright (c) 2018 4 * @brief des 5 * detailed des 6 * 7 * @date 2018 8 * @author lee 9 */ 10 #ifndef SEARCHFILEDIALOG_H 11 #define SEARCHFILEDIALOG_H 12 13 #include <QWidget> 14 #include <QFileDialog> 15 16 namespace Ui { 17 class searchFileDialog; 18 } 19 20 class searchFileDialog : public QDialog 21 { 22 Q_OBJECT 23 24 public: 25 explicit searchFileDialog(int Type, QWidget *parent = 0); 26 ~searchFileDialog(); 27 28 void showD(); 29 30 public slots: 31 void onGetFileName(); 32 33 void onCancel(); 34 signals: 35 void notifyMusicPlayerAddFile(QString); 36 37 void notifyVideoPlayerAddFile(QString); 38 39 void notifyGalleryAddFile(QString); 40 41 void notifyMusicCancelSearch(); 42 43 void notifyVideoCancelSearch(); 44 45 void notifyGalleryCancelSearch(); 46 47 48 private: 49 void createFileDialog(); 50 51 Ui::searchFileDialog *ui; 52 53 QFileDialog *m_pFileDialog; 54 55 int m_FileType;//0: musicplayer;1:videoplayer;2:gallery 56 QStringList m_filter; 57 QString m_Path; 58 }; 59 60 #endif // SEARCHFILEDIALOG_H 61