kshowmail: kshowmail/commandentry.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories

# commandentry.h

    00001 /***************************************************************************
    00002                           commandentry.h  -  description
    00003                              -------------------
    00004     begin                : Thu Jul 20 2000
    00005     copyright            : (C) 2000-2001 by Eggert Ehmke
    00006     email                : eggert.ehmke@berlin.de
    00007  ***************************************************************************/
    00008
    00009 /***************************************************************************
    00010  *                                                                         *
    00011  *   This program is free software; you can redistribute it and/or modify  *
    00012  *   it under the terms of the GNU General Public License as published by  *
    00013  *   the Free Software Foundation; either version 2 of the License, or     *
    00014  *   (at your option) any later version.                                   *
    00015  *                                                                         *
    00016  ***************************************************************************/
    00017
    00018 #ifndef COMMANDENTRY_H
    00019 #define COMMANDENTRY_H
    00020
    00021 #include <tqdialog.h>
    00022 #include <tqpopupmenu.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