summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h
blob: 7e595dff7f321d131fcb44ee756a8af2c085bd4c (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 _EXECLNK_H_
#define _EXECLNK_H_

#include <qpe/qpeapplication.h>

#include "AnyLnk.h"
#include "ProcessInvoker.h"

class ExecLnk : public AnyLnk
{
public:
	ExecLnk(){}
	ExecLnk(const QStringList& params)
		: AnyLnk(params){}
	virtual ~ExecLnk() {
	}

	virtual bool isValid() {
		return(true);
	}
	virtual void execute() {
		parseText();
		ProcessInvoker& pi = ProcessInvoker::getInstance();
		pi.setArguments(m_params[1]);
		pi.setNotify();
		pi.run();
	}
	virtual QString name() {
		return("exec");
	}
	virtual const QPixmap& pixmap() {
		return(m_pixmap);
	}
protected:
};

#endif /* _EXECLNK_H_ */