- NotificationSettings notificationSettings;
- QString backend = notificationSettings.value("Snore/Backend", "SystemTray").toString();
- m_timeout = notificationSettings.value("Snore/Timeout",10).toInt();
-
- notificationSettings.notify("Snore/Backend", this, SLOT(backendChanged(const QVariant &)));
- notificationSettings.notify("Snore/Backend", this, SLOT(timeoutChanged(const QVariant &)));
-
- //TODO: try to get an instance of the tray icon to be able to show popups
- m_snore = new Snore::SnoreCore();
- m_snore->hints().setValue("WINDOWS_APP_ID","QuasselProject.QuasselIRC");
- m_snore->loadPlugins(Snore::PluginContainer::BACKEND);
- Snore::Application *a = new Snore::Application("Quassel",Snore::Icon(DesktopIcon("quassel").toImage()));
-
- connect(m_snore,SIGNAL(actionInvoked(Snore::Notification)),this,SLOT(actionInvoked(Snore::Notification)));