summaryrefslogtreecommitdiff
path: root/src/timedate.h
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-06-18 11:19:44 +0200
committerEugen Wissner <belka@caraus.de>2024-06-18 11:19:44 +0200
commit9dc8fb26405938834b13971c3188f4f52bb8b90d (patch)
tree72f770ee2c49d4f6ef9e90341d0c1bd6414fc942 /src/timedate.h
parent7b5fe4b9d1edf5d3eecc71bb0bf50ac0f4487f7e (diff)
downloadslack-timedate-9dc8fb26405938834b13971c3188f4f52bb8b90d.tar.gz
Generate path configuration file
Diffstat (limited to 'src/timedate.h')
-rw-r--r--src/timedate.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/timedate.h b/src/timedate.h
index 82336de..49883f9 100644
--- a/src/timedate.h
+++ b/src/timedate.h
@@ -20,17 +20,13 @@
#include <dbus/dbus.h>
#include <glibmm.h>
#include <giomm.h>
-
-#define BUS_NAME "org.freedesktop.timedate1"
+#include "resources.h"
namespace dlackware::timedate
{
constexpr const char *bus_path = "/org/freedesktop/timedate1";
- constexpr const char *zoneinfo_database = "/usr/share/zoneinfo";
- constexpr const char *introspection_xml = "/usr/share/dbus-1/interfaces/org.freedesktop.timedate1.xml";
-
- constexpr const gint32 usec_per_sec = 1000000ULL;
- constexpr const gint32 nsec_per_usec = 1000ULL;
+ constexpr const std::string_view bus_name = "org.freedesktop.timedate1";
+ constexpr const std::string_view zoneinfo_database = "/usr/share/zoneinfo";
// Returns the system time zone.
Glib::ustring timezone();