|
|
@ -32,12 +32,22 @@ |
|
|
|
#define HEADLESSLOADER_H |
|
|
|
#define HEADLESSLOADER_H |
|
|
|
|
|
|
|
|
|
|
|
#include <QObject> |
|
|
|
#include <QObject> |
|
|
|
|
|
|
|
#include <QCoreApplication> |
|
|
|
|
|
|
|
|
|
|
|
class HeadlessLoader: QObject { |
|
|
|
class HeadlessLoader: QObject { |
|
|
|
|
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
HeadlessLoader() { |
|
|
|
HeadlessLoader() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
|
|
|
|
// Call this function to exit qBittorrent headless loader
|
|
|
|
|
|
|
|
// and return to prompt (object will be deleted by main)
|
|
|
|
|
|
|
|
void exit() { |
|
|
|
|
|
|
|
qApp->quit(); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|