blob: 347a2e1517b85a9a42e38a5572ebe621025b1a71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 <tqstringlist.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(TQString phrase) = 0;
virtual void matchPhrase(TQString phrase) = 0;
virtual void defineClipboardContent() = 0;
virtual void matchClipboardContent() = 0;
/** get info **/
virtual TQStringList getDatabases() = 0;
virtual TQString currentDatabase() = 0;
virtual TQStringList getStrategies() = 0;
virtual TQString currentStrategy() = 0;
/** set current database/strategy (returns true on success) **/
virtual bool setDatabase(TQString db) = 0;
virtual bool setStrategy(TQString strategy) = 0;
/** navigate in history **/
virtual bool historyGoBack() = 0;
virtual bool historyGoForward() = 0;
};
#endif
|