Add sample qml application
[staging/HomeScreen.git] / sample-qml / calledbyqml.h
diff --git a/sample-qml/calledbyqml.h b/sample-qml/calledbyqml.h
new file mode 100644 (file)
index 0000000..fbb5ef5
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef CALLEDBYQML_H
+#define CALLEDBYQML_H
+#include <QObject>
+
+class CalledByQml : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit CalledByQml(QObject *parent = 0);
+    Q_INVOKABLE int consoleout();
+    Q_INVOKABLE int showup();
+
+signals:
+
+public slots:
+    void refresh() {
+        qDebug("Called the C++ slot");
+    }
+};
+
+#endif // CALLEDBYQML_H