From: Henrique Date: Sat, 16 May 2020 09:40:02 +0000 (+0200) Subject: BEE Backport bacula/src/qt-console/tray-monitor/restorejobmodel.h X-Git-Tag: Release-11.3.2~1533 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f479ffd707484c0cb6530d58a40ebcb8e212924;p=thirdparty%2Fbacula.git BEE Backport bacula/src/qt-console/tray-monitor/restorejobmodel.h This commit is the result of the squash of the following main commits: Author: Henrique Date: Thu Aug 15 21:20:44 2019 -0300 android: tweak comments Author: Henrique Date: Wed Jun 26 12:03:27 2019 -0300 android: added missing license and a few comments on src files. FD debug level reduced to 50 Author: Henrique Faria Date: Tue Dec 18 10:56:09 2018 +0100 android: Port bacula tray-monitor for Android --- diff --git a/bacula/src/qt-console/tray-monitor/restorejobmodel.h b/bacula/src/qt-console/tray-monitor/restorejobmodel.h new file mode 100644 index 0000000000..32112f8b66 --- /dev/null +++ b/bacula/src/qt-console/tray-monitor/restorejobmodel.h @@ -0,0 +1,58 @@ +/* + Bacula(R) - The Network Backup Solution + + Copyright (C) 2000-2020 Kern Sibbald + + The original author of Bacula is Kern Sibbald, with contributions + from many others, a complete list can be found in the file AUTHORS. + + You may use this file and others of this release according to the + license defined in the LICENSE file, which includes the Affero General + Public License, v3.0 ("AGPLv3") and some additional permissions and + terms pursuant to its AGPLv3 Section 7. + + This notice must be preserved when any source code is + conveyed and/or propagated. + + Bacula(R) is a registered trademark of Kern Sibbald. +*/ + +#ifndef RESTOREJOBMODEL_H +#define RESTOREJOBMODEL_H + +#include +#include +#include "tray_conf.h" + +/* + RestoreJobModel - contains the director that the App is connected with. + The only reason for the existence of this class is the fact we can't + send a RESMON struct between QML screens. Therefore, we need to wrap it into a + class that extends QObject. +*/ +class RestoreJobModel : public QObject +{ + Q_OBJECT + +private: + + RESMON *m_director; + +public: + explicit RestoreJobModel(QObject *parent = nullptr); + ~RestoreJobModel(); + + void setDirector(RESMON *dir) { + m_director = dir; + } + + RESMON *getDirector() { + return m_director; + } + +signals: + + +}; + +#endif // RESTOREJOBMODEL_H