Commit 0e9d3b94 authored by Adrien Béraud's avatar Adrien Béraud

dbus: add cancelMessage API

Change-Id: I61a5949c4d0ff70db53638bc3858ac244bf90455
parent 2130f067
......@@ -174,6 +174,18 @@ DBusConfigurationManager::getMessageStatus(const uint64_t& id) -> decltype(DRing
return DRing::getMessageStatus(id);
}
auto
DBusConfigurationManager::getMessageStatus(const std::string& accountID, const uint64_t& id) -> decltype(DRing::getMessageStatus(accountID, id))
{
return DRing::getMessageStatus(accountID, id);
}
bool
DBusConfigurationManager::cancelMessage(const std::string& accountID, const uint64_t& id)
{
return DRing::cancelMessage(accountID, id);
}
auto
DBusConfigurationManager::getTlsDefaultSettings() -> decltype(DRing::getTlsDefaultSettings())
{
......
......@@ -85,6 +85,8 @@ class DRING_PUBLIC DBusConfigurationManager :
uint64_t sendTextMessage(const std::string& accoundID, const std::string& to, const std::map<std::string, std::string>& payloads);
std::vector<RingDBusMessage> getLastMessages(const std::string& accountID, const uint64_t& base_timestamp);
int getMessageStatus(const uint64_t& id);
int getMessageStatus(const std::string& accountID, const uint64_t& id);
bool cancelMessage(const std::string& accountID, const uint64_t& messageId);
std::map<std::string, std::string> getTlsDefaultSettings();
std::vector<std::string> getSupportedCiphers(const std::string& accountID);
std::vector<unsigned> getCodecList();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment