summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kdedcop/app_iface.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kdedcop/app_iface.h')
-rw-r--r--languages/cpp/app_templates/kdedcop/app_iface.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/kdedcop/app_iface.h b/languages/cpp/app_templates/kdedcop/app_iface.h
new file mode 100644
index 00000000..7049c712
--- /dev/null
+++ b/languages/cpp/app_templates/kdedcop/app_iface.h
@@ -0,0 +1,19 @@
+%{H_TEMPLATE}
+
+#include <dcopobject.h>
+
+class DCOPDemoIface : virtual public DCOPObject
+{
+ K_DCOP
+ k_dcop:
+
+
+ // Here you should place your DCOP interface.
+ // Below are four example methods.
+ virtual TQString strVal() const = 0;
+ virtual int intVal() const = 0;
+
+ virtual void setIntVal( int num ) = 0;
+ virtual void setStrVal( const TQString &str ) = 0;
+
+};