summaryrefslogtreecommitdiffstats
path: root/kapptemplate/kapp/appiface.h
diff options
context:
space:
mode:
Diffstat (limited to 'kapptemplate/kapp/appiface.h')
-rw-r--r--kapptemplate/kapp/appiface.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/kapptemplate/kapp/appiface.h b/kapptemplate/kapp/appiface.h
new file mode 100644
index 00000000..2601df94
--- /dev/null
+++ b/kapptemplate/kapp/appiface.h
@@ -0,0 +1,17 @@
+echo "Creating $LOCATION_ROOT/$APP_NAME_LC/${APP_NAME_LC}iface.h...";
+cat << EOF > $LOCATION_ROOT/$APP_NAME_LC/${APP_NAME_LC}iface.h
+#ifndef ${APP_NAME_UC}IFACE_H
+#define ${APP_NAME_UC}IFACE_H
+
+#include <dcopobject.h>
+
+class ${APP_NAME}Iface : virtual public DCOPObject
+{
+ K_DCOP
+public:
+
+k_dcop:
+ virtual void openURL(QString url) = 0;
+};
+
+#endif // ${APP_NAME_UC}IFACE_H