kmail
foldershortcutdialog.h
Go to the documentation of this file.00001 /******************************************************************************* 00002 ** 00003 ** Filename : foldershortcutdialog.h 00004 ** Created on : 09 October, 2004 00005 ** Copyright : (c) 2004 Till Adam 00006 ** Email : adam@kde.org 00007 ** 00008 *******************************************************************************/ 00009 00010 /******************************************************************************* 00011 ** 00012 ** This program is free software; you can redistribute it and/or modify 00013 ** it under the terms of the GNU General Public License as published by 00014 ** the Free Software Foundation; either version 2 of the License, or 00015 ** (at your option) any later version. 00016 ** 00017 ** This program is distributed in the hope that it will be useful, 00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 ** GNU General Public License for more details. 00021 ** 00022 ** You should have received a copy of the GNU General Public License 00023 ** along with this program; if not, write to the Free Software 00024 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00025 ** 00026 ** In addition, as a special exception, the copyright holders give 00027 ** permission to link the code of this program with any edition of 00028 ** the Qt library by Trolltech AS, Norway (or with modified versions 00029 ** of Qt that use the same license as Qt), and distribute linked 00030 ** combinations including the two. You must obey the GNU General 00031 ** Public License in all respects for all of the code used other than 00032 ** Qt. If you modify this file, you may extend this exception to 00033 ** your version of the file, but you are not obligated to do so. If 00034 ** you do not wish to do so, delete this exception statement from 00035 ** your version. 00036 ** 00037 *******************************************************************************/ 00038 00039 #ifndef FOLDERSHORTCUTDIALOG_H 00040 #define FOLDERSHORTCUTDIALOG_H 00041 00042 #include <kdialogbase.h> // include for the base class 00043 class KShortcut; 00044 class KMFolder; 00045 class KKeyButton; 00046 class KMMainWidget; 00047 00048 namespace KMail 00049 { 00050 00051 class FolderShortcutDialog : public KDialogBase 00052 { 00053 Q_OBJECT 00054 public: 00055 FolderShortcutDialog( KMFolder *folder, KMMainWidget *mw, 00056 QWidget *parent=0, const char *name=0 ); 00057 ~FolderShortcutDialog(); 00058 00059 00060 protected slots: 00061 void slotOk(); 00062 void slotCapturedShortcut( const KShortcut& ); 00063 00064 private: 00065 KMFolder *mFolder; 00066 KMMainWidget *mMainWidget; 00067 KKeyButton *mKeyButton; 00068 00069 }; // End of class FolderShortcutDialog 00070 00071 } // End of namespace KMail 00072 00073 00074 #endif // FOLDERSHORTCUTDIALOG_H