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

MenuLnk.h

Go to the documentation of this file.
00001 #ifndef _MENULNK_H_
00002 #define _MENULNK_H_
00003 
00004 #include <qpe/qpeapplication.h>
00005 
00006 #include "AnyLnk.h"
00007 #include "ConfigEx.h"
00008 
00009 class MenuLnk : public AnyLnk
00010 {
00011 public:
00012         MenuLnk(){}
00013         MenuLnk(const QStringList& params)
00014                 : AnyLnk(params){}
00015         virtual ~MenuLnk() {
00016         }
00017 
00018         virtual bool isValid() {
00019                 ConfigEx& cfg = ConfigEx::getInstance("keyhelper");
00020                 QString group = cfg.getGroup();
00021                 cfg.setGroup(name());
00022                 bool valid = (cfg.getKeys().isEmpty() == false);
00023                 cfg.setGroup(group);
00024                 return(valid);
00025         }
00026         virtual void execute() {
00027         }
00028         virtual QString name() {
00029                 QString group;
00030                 group = m_params[1];
00031                 group[0] = group[0].upper();
00032                 return(group);
00033         }
00034         virtual const QPixmap& pixmap() {
00035                 return(m_pixmap);
00036         }
00037 protected:
00038 };
00039 
00040 #endif /* _MENULNK_H_ */
00041 

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