00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef COMMANDENTRY_H
00019 #define COMMANDENTRY_H
00020
00021 #include <ntqdialog.h>
00022 #include <ntqpopupmenu.h>
00023
00024 #include <tdetoolbar.h>
00025
00026 #include "configelem.h"
00027
00031 class ConfigElem;
00032
00033 class CommandEntry
00034 {
00035 public:
00036 CommandEntry () {};
00037 CommandEntry (const char* name, const char* path, const int id, const bool modal)
00038 : m_name (name), m_path (path), m_id (id), m_waitForCommand (modal) {};
00039 CommandEntry (const CommandEntry* copy)
00040 : m_name (copy->m_name), m_path (copy->m_path), m_id (copy->m_id), m_waitForCommand (copy->m_waitForCommand) {};
00041 CommandEntry& operator = (const CommandEntry& entry);
00042 bool exec (ConfigElem* pelem = NULL, const char* header = NULL, const char* body = NULL);
00043 bool exec (const TQString& path, ConfigElem* pelem, const char* header = NULL, const char* body = NULL);
00044 TQString m_name;
00045 TQString m_path;
00046 int m_id;
00047 bool m_waitForCommand;
00048 };
00049
00050 #endif