-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.hxx
More file actions
27 lines (24 loc) · 774 Bytes
/
service.hxx
File metadata and controls
27 lines (24 loc) · 774 Bytes
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
#ifndef SERVICE_HXX
#define SERVICE_HXX
#include <QString>
#include <QRunnable>
#include <QList>
#include <QWidget>
namespace EWRB {
class Service : public QRunnable {
private:
const QWidget* parent_;
const QString descriptor_ = "";
const QList<QList<QString>> permitted_paths_;
QString current_block_ = "";
public:
Service(const QWidget* parent, const QString& descriptor, const QList<QList<QString>> paths) : parent_(parent), descriptor_(descriptor), permitted_paths_(paths) {
current_block_ = paths[0][0];
}
void moveService(const QString& block) {
current_block_ = block;
}
QString getLocation() const {return current_block_;}
};
};
#endif // SERVICE_HXX