summaryrefslogtreecommitdiffstats
path: root/src/web/main.vala
diff options
context:
space:
mode:
authorHolger Cremer <HolgerCremer@gmail.com>2018-07-26 20:09:26 +0200
committerHolger Cremer <HolgerCremer@gmail.com>2018-07-26 20:09:26 +0200
commitbb55e121576a5b5d225bfc68c5062f386cc32db9 (patch)
tree21fe043175183944fe2d9fc0a2e08012c3d195fd /src/web/main.vala
parent567dadcd9d8816b447591c266c9ffd5a1c290390 (diff)
downloadserial-barcode-scanner-bb55e121576a5b5d225bfc68c5062f386cc32db9.tar.bz2
adds an inventory function
Diffstat (limited to 'src/web/main.vala')
-rw-r--r--src/web/main.vala11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/web/main.vala b/src/web/main.vala
index 7070e66..aefe7fd 100644
--- a/src/web/main.vala
+++ b/src/web/main.vala
@@ -18,6 +18,7 @@ public CSVMemberFile csvimport;
public PGP pgp;
public Config cfg;
public AudioPlayer audio;
+public PDFStock pdfStock;
string templatedir;
public static int main(string[] args) {
@@ -27,10 +28,12 @@ public static int main(string[] args) {
uint port = 8080;
try {
- db = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database");
- pgp = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp");
- cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
- audio = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.AudioPlayer", "/io/mainframe/shopsystem/audio");
+ db = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database");
+ pgp = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.PGP", "/io/mainframe/shopsystem/pgp");
+ cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ audio = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.AudioPlayer", "/io/mainframe/shopsystem/audio");
+ pdfStock = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.StockPDF", "/io/mainframe/shopsystem/stockpdf");
+
templatedir = cfg.get_string("WEB", "filepath");
port = cfg.get_integer("WEB", "port");