From d8f10b3cf26b5e585db0f2b5d2e0a7e528c23160 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 31 Oct 2021 22:19:42 +0100 Subject: Rename com.ubuntu.touch.AccountsService.Sound to com.lomiri.touch.AccountsService.Sound --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 90b2a4b..595acd9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,8 +49,8 @@ add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-alarm-properties ${CMAKE_SOURCE_DIR}/data/org.ayatana.indicator.datetime.AlarmProperties.xml) if(HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-accounts-sound - com.ubuntu.touch - ${CMAKE_SOURCE_DIR}/src/com.ubuntu.touch.AccountsService.Sound.xml) + com.lomiri.touch + ${CMAKE_SOURCE_DIR}/src/com.lomiri.touch.AccountsService.Sound.xml) add_definitions (-DHAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) endif() -- cgit v1.2.3 From b942e307658c4e4fa72bc1184c53ae09f7bc3a74 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 31 Oct 2021 22:22:08 +0100 Subject: Drop local file and generate code from /usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml --- src/CMakeLists.txt | 2 +- src/com.ubuntu.touch.AccountsService.Sound.xml | 47 -------------------------- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 src/com.ubuntu.touch.AccountsService.Sound.xml (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 595acd9..118cee5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -50,7 +50,7 @@ add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-alarm-properties if(HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-accounts-sound com.lomiri.touch - ${CMAKE_SOURCE_DIR}/src/com.lomiri.touch.AccountsService.Sound.xml) + /usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml) add_definitions (-DHAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) endif() diff --git a/src/com.ubuntu.touch.AccountsService.Sound.xml b/src/com.ubuntu.touch.AccountsService.Sound.xml deleted file mode 100644 index 781a52f..0000000 --- a/src/com.ubuntu.touch.AccountsService.Sound.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3 From ede945145e96ecb3bde0dce0fd104c53f059cdca Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 31 Oct 2021 22:41:09 +0100 Subject: Rename HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS to HAS_LOMIRI_ACCTSERVICE_SOUND --- src/CMakeLists.txt | 4 ++-- src/main.cpp | 6 +++--- src/snap.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 118cee5..6132dfc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -47,11 +47,11 @@ set(SERVICE_GENERATED_SOURCES) add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-alarm-properties org.ayatana.indicator ${CMAKE_SOURCE_DIR}/data/org.ayatana.indicator.datetime.AlarmProperties.xml) -if(HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) +if(HAS_LOMIRI_ACCTSERVICE_SOUND) add_gdbus_codegen(SERVICE_GENERATED_SOURCES dbus-accounts-sound com.lomiri.touch /usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml) - add_definitions (-DHAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) + add_definitions (-DHAS_LOMIRI_ACCTSERVICE_SOUND) endif() # add warnings/coverage info on handwritten files diff --git a/src/main.cpp b/src/main.cpp index 279d7be..613f700 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,7 +32,7 @@ #include #include #include -#ifdef HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND #include #endif #include @@ -95,7 +95,7 @@ namespace return state; } -#ifdef HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND std::shared_ptr create_simple_alarm_queue(const std::shared_ptr& clock, const std::shared_ptr& snooze_planner, const std::shared_ptr& engine, @@ -149,7 +149,7 @@ main(int /*argc*/, char** /*argv*/) auto actions = std::make_shared(state); MenuFactory factory(actions, state); -#ifdef HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND // set up the snap decisions auto snooze_planner = std::make_shared(state->settings, state->clock); auto notification_engine = std::make_shared("ayatana-indicator-datetime-service"); diff --git a/src/snap.cpp b/src/snap.cpp index eb82b37..37ce741 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -19,7 +19,7 @@ * Robert Tari */ -#ifdef HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND #include "dbus-accounts-sound.h" #include -- cgit v1.2.3