summaryrefslogtreecommitdiff
path: root/common/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/config.cpp')
-rw-r--r--common/config.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/config.cpp b/common/config.cpp
new file mode 100644
index 0000000..ff24976
--- /dev/null
+++ b/common/config.cpp
@@ -0,0 +1,31 @@
+/*
+ * config.cpp
+ *
+ * Created on: 05.08.2012
+ * Author: savop
+ */
+
+
+#include "../include/config.h"
+#include "../include/tools.h"
+#include "../upnp.h"
+
+using namespace upnp;
+
+upnp::cConfig::cConfig()
+: enabled(true)
+, expertSettings(false)
+, useInternalWebserver(false)
+, webServerPort(0)
+, presentationURL("index.html")
+, maxContentLength(KB(20))
+, announceMaxAge(1800)
+, deviceUUID(tools::GenerateUUIDRandomly())
+, serviceURL("services/")
+, staticContentURL("http/")
+, bindToAddress(true)
+, address("0.0.0.0")
+, port(0)
+, databaseFile("metadata.db")
+{
+}