summaryrefslogtreecommitdiff
path: root/src/unite/internal/statebuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unite/internal/statebuilder.cpp')
-rw-r--r--src/unite/internal/statebuilder.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/unite/internal/statebuilder.cpp b/src/unite/internal/statebuilder.cpp
new file mode 100644
index 0000000..48ea6f6
--- /dev/null
+++ b/src/unite/internal/statebuilder.cpp
@@ -0,0 +1,32 @@
+
+#include "statebuilder.h"
+#include "fqterm.h"
+#include "fqterm_path.h"
+
+#include <QDomDocument>
+#include <QFile>
+
+namespace FQTerm {
+
+void StateBuilder::BuildState()
+{
+ QDomDocument domDocument;
+ QFile welcome(getPath(RESOURCE) + "unite/welcom.xml");
+ welcome.open(QIODevice::ReadOnly);
+ QString errorStr;
+ int errorLine;
+ int errorColumn;
+ domDocument.setContent(welcome.readAll(), true, &errorStr, &errorLine, &errorColumn);
+ QDomElement root = domDocument.firstChildElement("page");
+ if (root.isNull())
+ {
+
+ }
+ QDomAttr a = root.attributeNode("type");
+ //cout << a.value() << endl;
+
+
+}
+
+
+} \ No newline at end of file