summaryrefslogtreecommitdiffstats
path: root/src/pvs.cpp
diff options
context:
space:
mode:
authorJohann Latocha2010-08-28 03:17:08 +0200
committerJohann Latocha2010-08-28 03:17:08 +0200
commitca61d21c6defb9553234c1fa5b0979c46542c676 (patch)
tree610c5b1457d968135c1b70dfc8150737263e8922 /src/pvs.cpp
parentSome refactoring (diff)
downloadpvs-ca61d21c6defb9553234c1fa5b0979c46542c676.tar.gz
pvs-ca61d21c6defb9553234c1fa5b0979c46542c676.tar.xz
pvs-ca61d21c6defb9553234c1fa5b0979c46542c676.zip
Enhancement #587
Diffstat (limited to 'src/pvs.cpp')
-rwxr-xr-xsrc/pvs.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pvs.cpp b/src/pvs.cpp
index 1c08be5..21b7bdf 100755
--- a/src/pvs.cpp
+++ b/src/pvs.cpp
@@ -53,8 +53,10 @@ PVS::PVS() :
// connect to D-Bus
new PvsAdaptor(this);
QDBusConnection dbus = QDBusConnection::sessionBus();
- dbus.registerObject("/", this);
- dbus.registerService("org.openslx.pvs");
+ if (!dbus.registerObject("/", this))
+ qDebug("[ERROR] DBus: Could not register object");
+ if (!dbus.registerService("org.openslx.pvs"))
+ qDebug("[ERROR] DBus: Could not register service");
_sdClient = new PVSServiceDiscovery(this);
@@ -552,9 +554,10 @@ int PVS::stopVNCScript()
}
}
-void PVS::start()
+bool PVS::start()
{
_pvsServerConnection->sendMessage(PVSMsg(PVSCOMMAND, "PROJECTING", "YES"));
+ return true;
}
void PVS::onConnected(QString name)