Commit e6c7666a authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Olivier SOLDANO

datatransfer: add bytes progress DBus API

Add ConfigurationManager::dataTransferBytesSent() DBus method access.

Change-Id: I74fc22f42faeb5c352059831150b6c8b7e813fd8
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 25fcfd5b
......@@ -1419,6 +1419,14 @@
</arg>
</method>
<method name="dataTransferBytesSent" tp:name-for-bindings="dataTransferBytesSent">
<tp:added version="4.2.0"/>
<arg type="t" name="BytesProgress" direction="out">
</arg>
<arg type="t" name="DataTransferId" direction="in">
</arg>
</method>
<signal name="mediaParametersChanged" tp:name-for-bindings="mediaParametersChanged">
<tp:added version="2.3.0"/>
<tp:docstring>
......
......@@ -634,3 +634,9 @@ DBusConfigurationManager::dataTransferInfo(const DRing::DataTransferId& id)
out._6 = info.path;
return out;
}
uint64_t
DBusConfigurationManager::dataTransferBytesSent(const uint64_t& id)
{
return DRing::dataTransferBytesSent(id);;
}
......@@ -156,6 +156,7 @@ class DBusConfigurationManager :
DRing::DataTransferId sendFile(const std::string& account_id, const std::string& peer_uri,
const std::string& file_path, const std::string& display_name);
DBus::Struct<bool, uint32_t, uint64_t, uint64_t, std::string, std::string> dataTransferInfo(const DRing::DataTransferId& id);
uint64_t dataTransferBytesSent(const uint64_t& id);
};
#endif // __RING_DBUSCONFIGURATIONMANAGER_H__
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