source: ogBrowser-Git/src/dbusinterface.h

shutdown-environment
Last change on this file was 98db196, checked in by Vadim Troshchinskiy Shmelev <vtroshchinskiy@…>, 4 weeks ago

Use DBus to command browser to quit or change URL

  • Property mode set to 100644
File size: 436 bytes
Line 
1#ifndef DBUSINTERFACE_H
2#define DBUSINTERFACE_H
3
4#include <QObject>
5#include "mainwindow.h"
6
7
8class DBusInterface : public QObject
9{
10    Q_OBJECT
11public:
12    explicit DBusInterface(QObject *parent = nullptr);
13
14    void setMainWindow(MainWindow *window) { _mainWindow = window; };
15
16public slots:
17    void quit();
18    void setURL(const QString &url);
19
20signals:
21private:
22    MainWindow* _mainWindow{nullptr};
23};
24
25#endif // DBUSINTERFACE_H
Note: See TracBrowser for help on using the repository browser.