-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdiscoverywindow.h
More file actions
45 lines (32 loc) · 850 Bytes
/
discoverywindow.h
File metadata and controls
45 lines (32 loc) · 850 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef DISCOVERYWINDOW_H
#define DISCOVERYWINDOW_H
#include <QWidget>
#include <QCloseEvent>
#include <string>
#include <set>
namespace Ui {
class DiscoveryWindow;
}
class DiscoveryWindow : public QWidget {
Q_OBJECT
public:
explicit DiscoveryWindow(QWidget *parent = 0);
~DiscoveryWindow();
void setTopic(QString topic);
private:
Ui::DiscoveryWindow *ui;
std::string topic;
std::set<std::string> topics;
private slots:
void subscriptionStatus(bool status);
void clearText();
public slots:
void receiveMessage(std::string topic, std::string message);
signals:
void addSubscription(std::string topic);
void removeSubscription(std::string topic);
void windowClosing(std::string topic);
protected:
void closeEvent(QCloseEvent *event);
};
#endif // DISCOVERYWINDOW_H