summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/anylnk/TextLnk.h
blob: 3ae13c56dbee7e707eff4caa2386cd192efe4087 (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
#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_ */