summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/libkate/document/katecmd.h
Unidiff
Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katecmd.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/document/katecmd.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katecmd.h b/noncore/apps/tinykate/libkate/document/katecmd.h
new file mode 100644
index 0000000..72158cc
--- a/dev/null
+++ b/noncore/apps/tinykate/libkate/document/katecmd.h
@@ -0,0 +1,57 @@
1/***************************************************************************
2 katecmd.h - description
3 -------------------
4 begin : Mon Feb 5 2001
5 copyright : (C) 2001 by Christoph Cullmann
6 (C) 2002 by Joseph Wenninger
7 email : crossfire@babylon2k.de
8 jowenn@kde.org
9
10***************************************************************************/
11
12/***************************************************************************
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 ***************************************************************************/
20
21#ifndef _KATE_CMD_H
22#define _KATE_CMD_H
23
24#include <qobject.h>
25#include <qstring.h>
26#include <qlist.h>
27#include <katedocument.h>
28
29class KateCmdParser
30{
31 public:
32 KateCmdParser (KateDocument *doc=0L);
33 virtual ~KateCmdParser ();
34
35 virtual bool execCmd (QString cmd=0L, KateView *view=0L)=0;
36
37 private:
38 KateDocument *myDoc;
39};
40
41class KateCmd : public QObject
42{
43 Q_OBJECT
44
45 public:
46 KateCmd (KateDocument *doc=0L);
47 ~KateCmd ();
48
49 void execCmd (QString cmd=0L, KateView *view=0L);
50
51 private:
52 KateDocument *myDoc;
53 QList<KateCmdParser> myParser;
54};
55
56#endif
57