summaryrefslogtreecommitdiffstats
path: root/shemovcleaner.h
blob: 47a763a0a8727d9f40200f1c2c4c2b4bc1602d4f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef SHEMOVCLEANER_H
#define SHEMOVCLEANER_H

#include <QMainWindow>

class QTabWidget;
class TorrentWidget;
class FileWidget;
class QLabel;
class QProgressBar;

class ShemovCleaner : public QMainWindow {
    Q_OBJECT
    public:
        enum Tabs { Torrents = 0, Videos = 1, Actors = 2, Search = 3 };
        ShemovCleaner(QWidget *parent = 0, Qt::WindowFlags f = 0);
        ~ShemovCleaner();

    public slots:
        void statusBarMessage(const QString &msg);
        void setSelectionCount(const QString &msg);
        void setDuration(const QString &msg);
        void updateFreeSpace(const QString &path);
        void updateCopying(bool inProgress, const QString &count);
        void configure();
        void tabChanged(int idx);
        void aboutThisProgram();

    protected:
        virtual void closeEvent(QCloseEvent *e);

    signals:
        void configurationChanged();

    private:
        void createStatusBar();
        void createGlobalActions();
        void openDatabase();
        void readSettings();
        void writeSettings();
        QAction *createSeparator();
        QLabel *mSelected;
        QLabel *mDuration;
        QLabel *mDrive;
        QLabel *mFree;
        QLabel *mCopying;
        QTabWidget *mTab;
        TorrentWidget *mTorrentTab;
        FileWidget *mFileTab;
};

#endif // SHEMOVCLEANER_H