Commit 53f5bd52 authored by Giulio Camuffo's avatar Giulio Camuffo

[ssu] Allow retrieving the domain via DBus. Contributes to JB#16892

parent 04b6fe7e
......@@ -35,6 +35,9 @@
<method name="isRegistered">
<arg direction="out" type="b" name="status"/>
</method>
<method name="domain">
<arg direction="out" type="s" name="domain"/>
</method>
<!-- deviceInfo related methods -->
<method name="deviceModel">
......
......@@ -116,6 +116,10 @@ void Ssud::unregisterDevice(){
ssu.unregister();
};
QString Ssud::domain(){
autoclose.start();
return ssu.domain();
}
Ssu::DeviceModeFlags Ssud::deviceMode(){
autoclose.start();
......
......@@ -32,6 +32,7 @@ class Ssud: public QObject {
bool isRegistered();
void registerDevice(const QString &username, const QString &password);
void unregisterDevice();
QString domain();
/* repository management */
Ssu::DeviceModeFlags deviceMode();
void setDeviceMode(int mode);
......
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