Autoconfiguration for Linux

Change-Id: I6874628f29de327e5ece7ffddf3433cbc88de968
diff --git a/linux/network-manager.h b/linux/network-manager.h
new file mode 100644
index 0000000..11e5ec7
--- /dev/null
+++ b/linux/network-manager.h
@@ -0,0 +1,33 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
+/*
+ * @copyright See LICENCE for copyright and license information.
+ *
+ * @author Ilya Moiseenko <iliamo@ucla.edu>
+ */
+
+#include <QtDBus>
+
+#ifndef NETWORKMANAGER_H
+#define NETWORKMANAGER_H
+
+#define NDND_AUTOCONFIG_COMMAND "/usr/local/bin/ndnd-autoconfig"
+#define NM_STATE_DISCONNECTED 20
+#define NM_STATE_CONNECTING 40
+#define NM_STATE_CONNECTED_GLOBAL 70
+
+class NetworkManager : public QObject
+{
+     Q_OBJECT
+
+public:
+    NetworkManager();
+
+private:
+    void autoconfigDaemon();
+
+private slots:
+    void stateChanged(uint state);
+};
+
+
+#endif // NETWORKMANAGER_H