korganizer Library API Documentation

calendardecoration.h

00001 /*
00002     This file is part of the KOrganizer interfaces.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 */
00020 #ifndef KORG_CALENDARDECORATION_H
00021 #define KORG_CALENDARDECORATION_H
00022 // $Id: calendardecoration.h,v 1.1 2002/01/19 01:30:03 cschumac Exp $
00023 
00024 #include <qstring.h>
00025 #include <qdatetime.h>
00026 #include <qpixmap.h>
00027 
00028 #include <klibloader.h>
00029 
00030 #include "plugin.h"
00031 
00032 namespace KOrg {
00033 
00040 class CalendarDecoration : public Plugin {
00041   public:
00042     typedef QPtrList<CalendarDecoration> List;
00043 
00044     CalendarDecoration() {};
00045     virtual ~CalendarDecoration() {};
00046 
00050     virtual QString shortText( const QDate & ) { return QString::null; }
00055     virtual QString longText( const QDate & ) { return QString::null; }
00056 
00060     virtual QPixmap smallPixmap( const QDate &) { return QPixmap(); }
00064     virtual QPixmap largePixmap( const QDate &) { return QPixmap(); }
00065     
00069     virtual QWidget *smallWidget( QWidget *, const QDate & ) { return 0; }
00070 };
00071 
00072 class CalendarDecorationFactory : public PluginFactory {
00073   public:
00074     virtual CalendarDecoration *create() = 0;
00075 };
00076 
00077 }
00078 
00079 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:30 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001