Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ExecLnk.h

Go to the documentation of this file.
00001 #ifndef _EXECLNK_H_
00002 #define _EXECLNK_H_
00003 
00004 #include <qpe/qpeapplication.h>
00005 
00006 #include "AnyLnk.h"
00007 #include "ProcessInvoker.h"
00008 
00009 class ExecLnk : public AnyLnk
00010 {
00011 public:
00012         ExecLnk(){}
00013         ExecLnk(const QStringList& params)
00014                 : AnyLnk(params){}
00015         virtual ~ExecLnk() {
00016         }
00017 
00018         virtual bool isValid() {
00019                 return(true);
00020         }
00021         virtual void execute() {
00022                 parseText();
00023                 ProcessInvoker& pi = ProcessInvoker::getInstance();
00024                 pi.setArguments(m_params[1]);
00025                 pi.setNotify();
00026                 pi.run();
00027         }
00028         virtual QString name() {
00029                 return("exec");
00030         }
00031         virtual const QPixmap& pixmap() {
00032                 return(m_pixmap);
00033         }
00034 protected:
00035 };
00036 
00037 #endif /* _EXECLNK_H_ */
00038 

Generated on Sat Nov 5 16:16:42 2005 for OPIE by  doxygen 1.4.2