tpsession initial import
[tpsession] / tpsession-0.1 / tests / smstest / main.cpp
diff --git a/tpsession-0.1/tests/smstest/main.cpp b/tpsession-0.1/tests/smstest/main.cpp
new file mode 100644 (file)
index 0000000..efd4bb5
--- /dev/null
@@ -0,0 +1,16 @@
+#include <QtCore/QCoreApplication>
+#include "testprog.h"
+#include <QDebug>
+int main(int argc, char *argv[])
+{
+    QCoreApplication a(argc, argv);
+
+    if(argc<2) {
+      qDebug() << "Usage smstest <telephone_number> <message>";
+      exit(0);
+    };
+      
+    TestProg t(argv[1],argv[2]);
+
+    return a.exec();
+}