libkcal
calselectdialog.h
Go to the documentation of this file.00001 /* 00002 This file is part of libkcal. 00003 00004 Copyright (c) 2008 Kevin Ottens <ervin@kde.org> 00005 Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 00022 In addition, as a special exception, the copyright holders give 00023 permission to link the code of this program with any edition of 00024 the TQt library by Trolltech AS, Norway (or with modified versions 00025 of TQt that use the same license as TQt), and distribute linked 00026 combinations including the two. You must obey the GNU General 00027 Public License in all respects for all of the code used other than 00028 TQt. If you modify this file, you may extend this exception to 00029 your version of the file, but you are not obligated to do so. If 00030 you do not wish to do so, delete this exception statement from 00031 your version. 00032 */ 00042 #ifndef CALSELECTDIALOG_H 00043 #define CALSELECTDIALOG_H 00044 00045 #include <kdialogbase.h> 00046 00047 namespace KCal { 00048 00049 class CalSelectDialog : public KDialogBase 00050 { 00051 private: 00052 CalSelectDialog( const TQString &caption, const TQString &label, 00053 const TQStringList &list ); 00054 00055 public: 00056 static TQString getItem( const TQString &caption, const TQString &label, 00057 const TQStringList &list ); 00058 00059 protected: 00060 virtual void closeEvent( TQCloseEvent *event ); 00061 void reject(); 00062 00063 private: 00064 TDEListBox *mListBox; 00065 }; 00066 00067 } 00068 00069 #endif