diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qtcpp/echo/echo.pro | 12 | ||||
-rw-r--r-- | examples/qtcpp/echo/echo.qdl | 15 | ||||
-rw-r--r-- | examples/qtcpp/echo/main.cpp | 8 |
3 files changed, 35 insertions, 0 deletions
diff --git a/examples/qtcpp/echo/echo.pro b/examples/qtcpp/echo/echo.pro new file mode 100644 index 0000000..cfc7aef --- /dev/null +++ b/examples/qtcpp/echo/echo.pro @@ -0,0 +1,12 @@ +QT += core +QT -= gui + +CONFIG += c++11 + +TARGET = echo +CONFIG += console +CONFIG -= app_bundle + +TEMPLATE = app + +SOURCES += main.cpp diff --git a/examples/qtcpp/echo/echo.qdl b/examples/qtcpp/echo/echo.qdl new file mode 100644 index 0000000..d308285 --- /dev/null +++ b/examples/qtcpp/echo/echo.qdl @@ -0,0 +1,15 @@ +module org.example 1.0; + +/*! + * Provide a simple echo service. + */ +interface Echo { + /*! + * The last echo message. + */ + string currentMessage; + /*! + * Returns the passed in message + */ + string echo(string message); +} diff --git a/examples/qtcpp/echo/main.cpp b/examples/qtcpp/echo/main.cpp new file mode 100644 index 0000000..2e15127 --- /dev/null +++ b/examples/qtcpp/echo/main.cpp @@ -0,0 +1,8 @@ +#include <QtCore> + +int main(int argc, char *argv[]) +{ + QCoreApplication a(argc, argv); + + return a.exec(); +} |