summaryrefslogtreecommitdiffstats
path: root/src/web/main.vala
diff options
context:
space:
mode:
authorHolger Cremer <HolgerCremer@gmail.com>2017-04-16 01:34:22 +0200
committerHolger Cremer <HolgerCremer@gmail.com>2017-04-16 01:34:22 +0200
commitf891ecc9fbe159ec8a6cf321c43217d59f8cdf02 (patch)
tree6f88f4ef2a2c59388487bbde25451cf7ee3eb34b /src/web/main.vala
parent14a7c9ff8a785608c54cd38f50dc14686907889e (diff)
downloadserial-barcode-scanner-f891ecc9fbe159ec8a6cf321c43217d59f8cdf02.tar.bz2
adds a new feature: a user can select it's sond theme in the web interface. If not selected, a random theme is used.
Diffstat (limited to 'src/web/main.vala')
-rw-r--r--src/web/main.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/web/main.vala b/src/web/main.vala
index 86caea5..22c586b 100644
--- a/src/web/main.vala
+++ b/src/web/main.vala
@@ -17,6 +17,7 @@ Database db;
public CSVMemberFile csvimport;
public PGP pgp;
public Config cfg;
+public AudioPlayer audio;
string templatedir;
public static int main(string[] args) {
@@ -26,9 +27,10 @@ public static int main(string[] args) {
uint port = 8080;
try {
- db = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database");
- pgp = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp");
- cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ db = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database");
+ pgp = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp");
+ cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ audio = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.AudioPlayer", "/io/mainframe/shopsystem/audio");
templatedir = cfg.get_string("WEB", "filepath");
port = cfg.get_integer("WEB", "port");