diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-27 00:49:15 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-27 01:28:40 -0800 |
commit | 287ad328be75011bd3be4caf46cbbe663dd0cba2 (patch) | |
tree | d18d9fd3645bf147a4610e5d1ed461b5846ac4dc /network/network.cpp | |
parent | b38d75787fffb5d921224b45d15d86631c6b1755 (diff) |
libqtappfw: network: add remove() method for removal of services
Bug-AGL: SPEC-2184
Change-Id: Ic9b4513dd7f63f02a6012170225a4993555006c1
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
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 db4b2b4..53a4898 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(); |