diff options
Diffstat (limited to 'network/network.cpp')
-rw-r--r-- | network/network.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/network.cpp b/network/network.cpp index ebfa7a9..dc5fa5f 100644 --- a/network/network.cpp +++ b/network/network.cpp @@ -75,6 +75,18 @@ void Network::disconnect(QString service) delete nmsg; } +void Network::remove(QString service) +{ + NetworkMessage *nmsg = new NetworkMessage(); + QJsonObject parameter; + + parameter.insert("service", service); + + nmsg->createRequest("remove_service", parameter); + m_mloop->sendMessage(nmsg); + delete nmsg; +} + void Network::input(int id, QString passphrase) { NetworkMessage *nmsg = new NetworkMessage(); |