blob: f7adc2dbf8ffd82aa35d4b495580777232e0d9bf (
plain)
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
|
// Copyright 2005-2016 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_MUMBLE_DBUS_H_
#define MUMBLE_MUMBLE_DBUS_H_
#include <QtDBus/QDBusAbstractAdaptor>
class QDBusMessage;
class MumbleDBus : public QDBusAbstractAdaptor {
private:
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "net.sourceforge.mumble.Mumble")
Q_DISABLE_COPY(MumbleDBus)
Q_PROPERTY(bool mute READ isSelfMuted WRITE setSelfMuted)
Q_PROPERTY(bool deaf READ isSelfDeaf WRITE setSelfDeaf)
public:
MumbleDBus(QObject *parent);
public slots:
void openUrl(const QString &url, const QDBusMessage &);
void getCurrentUrl(const QDBusMessage &);
void getTalkingUsers(const QDBusMessage &);
void focus();
void setSelfMuted(bool mute);
void setSelfDeaf(bool deafen);
bool isSelfMuted();
bool isSelfDeaf();
};
#endif
|