Commit a1a3ff48 authored by Giulio Camuffo's avatar Giulio Camuffo

Merge pull request #50 from giucam/master

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