From 892031329a987a6aa92f5799d8a6d33831700677 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 15 Oct 2014 23:30:59 +0000 Subject: added dependencies.txt, added changes in TODO list, added empty specifications document git-svn-id: file:///var/local/svn/basicwriter@55 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/main.cpp | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6e3457c..3603b9c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,6 +2,8 @@ #include #include #include +#include +#include #include #include @@ -12,24 +14,27 @@ using namespace ousia::xml; int main(int argc, char *argv[]) { + QScriptEngine engine; + qDebug() << "JS Test: " << engine.evaluate("Test"); + // Open the file given as first argument - if (argc < 2) { - std::cout << "No filename specified!" << std::endl; - return 1; - } +// if (argc < 2) { +// std::cout << "No filename specified!" << std::endl; +// return 1; +// } - QFile file(argv[1]); - if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - std::cout << "Error while opening file " << argv[1] << std::endl; - return 1; - } +// QFile file(argv[1]); +// if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { +// std::cout << "Error while opening file " << argv[1] << std::endl; +// return 1; +// } // Create the QXmlStreamReader instance - QXmlStreamReader xml(&file); +// QXmlStreamReader xml(&file); // Pass it to the XmlReader - XmlReader xmlReader(xml); - xmlReader.process(); +// XmlReader xmlReader(xml); +// xmlReader.process(); return 0; } -- cgit v1.2.3