libkcal Library API Documentation

selectdialog.h

00001 /*
00002     This file is part of libkresources.
00003 
00004     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00005     Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
00006     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021     Boston, MA 02111-1307, USA.
00022 */
00023 
00024 #ifndef LIBKCAL_KRESOURCES_SELECTDIALOG_H
00025 #define LIBKCAL_KRESOURCES_SELECTDIALOG_H
00026 
00027 #include <qobject.h>
00028 #include <qptrlist.h>
00029 #include <qmap.h>
00030 
00031 #include <kdialog.h>
00032 
00033 class KListBox;
00034 
00035 namespace KCal {
00036 
00037 class ResourceCalendar;
00038 class Incidence;
00039 
00057 class SelectDialog : KDialog
00058 {
00059   public:
00066     SelectDialog( QPtrList<ResourceCalendar> list, Incidence* incidence,
00067                   QWidget *parent = 0, const char *name = 0);
00068 
00072     ResourceCalendar *resource();
00073 
00078     static ResourceCalendar *getResource( QPtrList<ResourceCalendar> list,
00079                                           Incidence* incidence,
00080                                           QWidget *parent = 0 );
00081 
00082   private:
00083     KListBox *mResourceId;
00084 
00085     QMap<int, ResourceCalendar*> mResourceMap;
00086 };
00087 
00088 }
00089 
00090 #endif
KDE Logo
This file is part of the documentation for libkcal Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:17:27 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003