summaryrefslogtreecommitdiffstats
path: root/copydialog.h
blob: 8a32372f8e881d9f46e2b1aa824a327bfc0216d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COPYDIALOG_H
#define COPYDIALOG_H

#include <QDialog>

class QLineEdit;
class QLabel;

class CopyDialog : public QDialog {
    public:
        explicit CopyDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());

    public slots:
        void readSettings();
        void getDestination();
        void setSource(const QString &src);
        void setDestFolder(const QString &dst);
        void setSources(const QStringList &sources);

    protected:
        virtual void closeEvent(QCloseEvent *e);

    private:
        QLineEdit *mSrcE;
        QLineEdit *mDstE;
        QLineEdit *mFolderE;
        QLabel *mResultL;
        QStringList mSources;
};

#endif // COPYDIALOG_H