Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ssu] Allow retrieving the domain via DBus. Contributes to JB#16892
  • Loading branch information
giucam committed Oct 30, 2015
1 parent 04b6fe7 commit 53f5bd5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbus/org.nemo.ssu.xml
Expand Up @@ -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">
Expand Down
4 changes: 4 additions & 0 deletions ssud/ssud.cpp
Expand Up @@ -116,6 +116,10 @@ void Ssud::unregisterDevice(){
ssu.unregister();
};

QString Ssud::domain(){
autoclose.start();
return ssu.domain();
}

Ssu::DeviceModeFlags Ssud::deviceMode(){
autoclose.start();
Expand Down
1 change: 1 addition & 0 deletions ssud/ssud.h
Expand Up @@ -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);
Expand Down

0 comments on commit 53f5bd5

Please sign in to comment.