summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h
Side-by-side diff
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h b/noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h
new file mode 100644
index 0000000..7e595df
--- a/dev/null
+++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/ExecLnk.h
@@ -0,0 +1,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_ */
+