summaryrefslogtreecommitdiff
path: root/daemon/daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/daemon.cpp')
-rw-r--r--daemon/daemon.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/daemon/daemon.cpp b/daemon/daemon.cpp
index e4306da..178f04d 100644
--- a/daemon/daemon.cpp
+++ b/daemon/daemon.cpp
@@ -51,6 +51,7 @@ void signalhandler(int sig)
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
+ app.setApplicationName("pebble"); // Use the same appname as the UI.
QStringList filterRules;
@@ -64,16 +65,11 @@ int main(int argc, char *argv[])
qCDebug(l) << argv[0] << APP_VERSION;
Settings settings;
- watch::WatchConnector watch;
- DBusConnector dbus;
- VoiceCallManager voice(&settings);
- NotificationManager notifications(&settings);
- Manager manager(&watch, &dbus, &voice, &notifications, &settings);
+ Manager manager(&settings);
+ Q_UNUSED(manager);
signal(SIGINT, signalhandler);
signal(SIGTERM, signalhandler);
- QObject::connect(&app, SIGNAL(aboutToQuit()), &watch, SLOT(endPhoneCall()));
- QObject::connect(&app, SIGNAL(aboutToQuit()), &watch, SLOT(disconnect()));
return app.exec();
}