author | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
commit | 2b64a84d39eeed5681d0ee5068c7d11a01527750 (patch) (unidiff) | |
tree | c8693340dbc5ef5e2f9afa90b690829ddff2c4bd /noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h | |
parent | 61fa699140c5efbb6ba0bf2a62f7e8fbf62976be (diff) | |
download | opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.zip opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.gz opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.bz2 |
other keymapping tool - not working this moment, I have to check it out
- the reason is that the config file is somewhat easier to understand than
from zkbapplet and has a nice config tool.
Please don't put it into any repositories this moment.
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h b/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h new file mode 100644 index 0000000..9853942 --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef _ANYLNK_H_ | ||
2 | #define _ANYLNK_H_ | ||
3 | |||
4 | #include <time.h> | ||
5 | |||
6 | #include <qstring.h> | ||
7 | #include <qstringlist.h> | ||
8 | #include <qpixmap.h> | ||
9 | #include <qimage.h> | ||
10 | #include <qclipboard.h> | ||
11 | #include <qtextcodec.h> | ||
12 | |||
13 | #include <qpe/qpeapplication.h> | ||
14 | #include <qpe/resource.h> | ||
15 | |||
16 | #include "AppLnkManager.h" | ||
17 | #include "ConfigEx.h" | ||
18 | |||
19 | class AnyLnk | ||
20 | { | ||
21 | public: | ||
22 | AnyLnk(){} | ||
23 | AnyLnk(const QStringList& params){ | ||
24 | m_params = params; | ||
25 | loadPixmap(); | ||
26 | } | ||
27 | virtual ~AnyLnk(){ | ||
28 | } | ||
29 | virtual bool isValid() = 0; | ||
30 | virtual void execute() = 0; | ||
31 | virtual QString name() = 0; | ||
32 | virtual const QPixmap& pixmap() = 0; | ||
33 | |||
34 | protected: | ||
35 | QStringList m_params; | ||
36 | QPixmap m_pixmap; | ||
37 | |||
38 | virtual void loadPixmap(); | ||
39 | virtual void parseText(); | ||
40 | virtual void replaceText(QString& str, const QString& s1, const QString& s2); | ||
41 | virtual void replaceDate(QString& str); | ||
42 | virtual void replaceKeyword(QString& str); | ||
43 | }; | ||
44 | |||
45 | #endif /* _ANYLNK_H_ */ | ||