PURPOSE "Required for audio notifications"
)
- find_package(LibsnoreQt5 0.5.70 QUIET)
+ find_package(LibsnoreQt5 0.7.0 QUIET)
set_package_properties(LibsnoreQt5 PROPERTIES TYPE OPTIONAL
URL "https://projects.kde.org/projects/playground/libs/snorenotify"
DESCRIPTION "a cross-platform notification framework"
PURPOSE "Enable support for the snorenotify framework"
)
+ if(LibsnoreQt5_FOUND)
+ find_package(LibsnoreSettingsQt5)
+ set_package_properties(LibsnoreSettingsQt5 PROPERTIES TYPE REQUIRED
+ URL "https://projects.kde.org/projects/playground/libs/snorenotify"
+ DESCRIPTION "a cross-platform notification framework"
+ PURPOSE "Enable support for the snorenotify framework"
+ )
+ endif()
+
if (WITH_WEBKIT)
find_package(Qt5WebKit QUIET)
Init @("ninja", "png2ico", "nsis") ([ordered]@{"git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"};
"https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"; "buildType" = "Release"};
- "git://anongit.kde.org/snorenotify.git" = @{"branch" = "v0.6.0"; "buildType" = "Release"}})
+ "git://anongit.kde.org/snorenotify.git" = @{"branch" = "v0.7.0"; "buildType" = "Release"}})
mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
#snore
"bin\\.*snore.*\.dll",
"lib\\plugins\\libsnore.*\\libsnore_backend.*\.dll",
- "lib\\plugins\\libsnore.*\\libsnore_secondary_backend.*\.dll",
- #snorenotify 0.5
- "lib\\libsnore.*\\libsnore_backend.*\.dll",
- #
- "bin\\SnoreToast\.exe",
+ "lib\\plugins\\libsnore.*\\libsnore_settings_backend.*\.dll",
+ "lib\\plugins\\libsnore.*\\libsnore_secondarybackend.*\.dll", "lib\\plugins\\libsnore.*\\libsnore_settings_secondarybackend.*\.dll", "bin\\SnoreToast\.exe",
#
#Growl
"bin\\.*snoregrowl.*\.dll",
add_definitions(-DHAVE_LIBSNORE)
list(APPEND SOURCES snorenotificationbackend.cpp)
list(APPEND FORMS snorentificationconfigwidget.ui)
- list(APPEND LIBS Snore::Libsnore)
+ list(APPEND LIBS Snore::Libsnore Snore::LibsnoreSettings)
endif()
if (PHONON_FOUND OR Phonon4Qt5_FOUND)
Snore::SnoreCore::instance().loadPlugins(
#ifndef HAVE_KDE
- Snore::SnorePlugin::BACKEND |
+ Snore::SnorePlugin::Backend |
#endif
- Snore::SnorePlugin::SECONDARY_BACKEND);
+ Snore::SnorePlugin::SecondaryBackend | Snore::SnorePlugin::Settings);
m_application = Snore::Application("Quassel", m_icon);
m_application.hints().setValue("windows-app-id","QuasselProject.QuasselIRC");
m_application.hints().setValue("pushover-token", "arNtsi983QSZUqU3KAZrFLKHGFPkdL");
}
#endif
Snore::Notification n = Snore::SnoreCore::instance().getActiveNotificationByID(m_notificationIds.take(notificationId));
- Snore::SnoreCore::instance().requestCloseNotification(n, Snore::Notification::CLOSED);
+ Snore::SnoreCore::instance().requestCloseNotification(n, Snore::Notification::Closed);
}
void SnoreNotificationBackend::actionInvoked(Snore::Notification n)
<customwidget>
<class>Snore::SettingsDialog</class>
<extends>QWidget</extends>
- <header location="global">libsnore/settingsdialog.h</header>
+ <header location="global">libsnore/settings/settingsdialog.h</header>
<container>1</container>
</customwidget>
</customwidgets>