summaryrefslogtreecommitdiffstats
path: root/kdict/dcopinterface.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kdict/dcopinterface.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/dcopinterface.h')
-rw-r--r--kdict/dcopinterface.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/kdict/dcopinterface.h b/kdict/dcopinterface.h
new file mode 100644
index 00000000..f088a842
--- /dev/null
+++ b/kdict/dcopinterface.h
@@ -0,0 +1,54 @@
+/* -------------------------------------------------------------
+
+ dcopinterface.h (part of The KDE Dictionary Client)
+ Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org>
+
+ This file is distributed under the Artistic License.
+ See LICENSE for details.
+
+ -------------------------------------------------------------
+
+ KDictDCOPInterface abstract base class that defines the
+ DCOP interface of Kdict
+
+ ------------------------------------------------------------- */
+
+#ifndef _DCOPINTERFACE_H
+#define _DCOPINTERFACE_H
+
+#include <dcopobject.h>
+#include <qstringlist.h>
+
+class KDictIface : virtual public DCOPObject
+{
+ K_DCOP
+
+k_dcop:
+
+ /** Quit Kdict **/
+ virtual void quit() = 0;
+ virtual void makeActiveWindow() = 0;
+
+ /** define/match a word/phrase **/
+ virtual void definePhrase(QString phrase) = 0;
+ virtual void matchPhrase(QString phrase) = 0;
+ virtual void defineClipboardContent() = 0;
+ virtual void matchClipboardContent() = 0;
+
+ /** get info **/
+ virtual QStringList getDatabases() = 0;
+ virtual QString currentDatabase() = 0;
+ virtual QStringList getStrategies() = 0;
+ virtual QString currentStrategy() = 0;
+
+ /** set current database/strategy (returns true on success) **/
+ virtual bool setDatabase(QString db) = 0;
+ virtual bool setStrategy(QString strategy) = 0;
+
+ /** navigate in history **/
+ virtual bool historyGoBack() = 0;
+ virtual bool historyGoForward() = 0;
+
+};
+
+#endif