+
+
+//QT_BEGIN_NAMESPACE
+//QT_END_NAMESPACE
+
+class fbgui : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ fbgui();
+ ~fbgui();
+ void printUsage();
+ QString getPath(const char* c);
+
+//private:
+
+//private slots:
+
+//signals:
+
+};
+
+#endif // FBGUI_H
diff --git a/src/fbgui.pro b/src/fbgui.pro
new file mode 100644
index 0000000..c1bcf82
--- /dev/null
+++ b/src/fbgui.pro
@@ -0,0 +1,12 @@
+TEMPLATE = app
+TARGET = fbgui
+CONFIG += qt debug
+QT += core \
+ gui \
+ webkit \
+ network
+HEADERS += fbbrowser.h
+SOURCES += fbgui.cpp \
+ fbbrowser.cpp
+FORMS += fbbrowser.ui
+RESOURCES += fbgui.qrc
diff --git a/src/fbgui.qrc b/src/fbgui.qrc
new file mode 100644
index 0000000..da051a4
--- /dev/null
+++ b/src/fbgui.qrc
@@ -0,0 +1,5 @@
+
+
+ html/errorPage.html
+
+
diff --git a/src/html/errorPage.html b/src/html/errorPage.html
new file mode 100644
index 0000000..271d9fe
--- /dev/null
+++ b/src/html/errorPage.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+ERROR
+
+
+No Internet Connection or Server is down.
+
+
+Please contact your Administrator.
+
+
+
+
+
+
diff --git a/src/testApp.sh b/src/testApp.sh
new file mode 100755
index 0000000..0995695
--- /dev/null
+++ b/src/testApp.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# This script now needs to have the URL to load as an argument.
+if [ $# = 0 ]; then
+ echo "No URL passed, exiting..."
+ exit
+fi
+# Start QT's virtual framebuffer
+/usr/local/Trolltech/Qt-4.7.1/bin/qvfb -width 800 -height 600 &
+# Wait for it to load (needed?)
+sleep 1
+# Start the fbbrowser app.
+# This requires the fbgui git repository to be in the user's home directory.
+export PATH=~/fbgui/fbbrowser/:$PATH
+fbgui -qws $1
+# Check if fbbrowser is not running, if so kill the qvfb.
+if [ $(ps aux | grep -v grep | grep -c fbgui) -eq 1 ]
+then
+ echo "fbgui is still running ..."
+else
+ echo "fbgui stopped running, killing qvfb ..."
+ killall qvfb
+fi
--
cgit v1.2.3-55-g7522