summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h
Side-by-side diff
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h b/noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h
new file mode 100644
index 0000000..3ae13c5
--- a/dev/null
+++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h
@@ -0,0 +1,38 @@
+#ifndef _PASTELNK_H_
+#define _PASTELNK_H_
+
+#include <qwindowsystem_qws.h>
+
+#include <qpe/qpeapplication.h>
+#include <qclipboard.h>
+#include <qregexp.h>
+
+#include "AnyLnk.h"
+
+class TextLnk : public AnyLnk
+{
+public:
+ TextLnk(){}
+ TextLnk(const QStringList& params)
+ : AnyLnk(params){}
+ virtual ~TextLnk() {
+ }
+
+ virtual bool isValid() {
+ return(true);
+ }
+ virtual QString name() {
+ return("text");
+ }
+ virtual const QPixmap& pixmap() {
+ return(m_pixmap);
+ }
+
+ virtual void execute();
+protected:
+ virtual void parse(QString& str);
+ virtual void replace(QString& str, const QString& s1, const QString& s2);
+};
+
+#endif /* _PASTELNK_H_ */
+