Debian Codegraph @

src/main_window.h

raw symbols SCIP
1 #pragma once
2
3 #include "icon_cache.h"
4 #include "job_options.h"
5 #include "pch.h"
6 #include "ui_main_window.h"
7
8 class JobWidget;
9
10 class MainWindow : public QMainWindow {
11 Q_OBJECT
12
13 public:
14 MainWindow();
15 ~MainWindow();
16
17 private slots:
18 void rcloneGetVersion();
19 void rcloneConfig();
20 void rcloneListRemotes();
21 void listTasks();
22
23 void addTransfer(const QString &message, const QString &source,
24 const QString &dest, const QStringList &args);
25 void addMount(const QString &remote, const QString &folder);
26 void addStream(const QString &remote, const QString &stream);
27
28 private:
29 Ui::MainWindow ui;
30
31 QSystemTrayIcon mSystemTray;
32 JobWidget *mLastFinished = nullptr;
33
34 bool mAlwaysShowInTray;
35 bool mCloseToTray;
36 bool mNotifyFinishedTransfers;
37
38 QLabel *mStatusMessage;
39
40 IconCache mIcons;
41
42 bool mFirstTime = true;
43 int mJobCount = 0;
44
45 bool canClose();
46 void closeEvent(QCloseEvent *ev) override;
47 bool getConfigPassword(QProcess *p);
48
49 void addEmptyJobsMessage();
50
51 void runItem(JobOptionsListWidgetItem *item, bool dryrun = false);
52 void editSelectedTask();
53 QIcon mUploadIcon;
54 QIcon mDownloadIcon;
55 };