• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kalarm

alarmlistfiltermodel.h

Go to the documentation of this file.
00001 /*
00002  *  alarmlistfiltermodel.h  -  proxy model class for lists of alarms
00003  *  Program:  kalarm
00004  *  Copyright © 2007,2008 by David Jarvie <software@astrojar.org.uk>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef ALARMLISTFILTERMODEL_H
00022 #define ALARMLISTFILTERMODEL_H
00023 
00024 #include "kalarm.h"
00025 
00026 #include "eventlistmodel.h"
00027 #include "kcalendar.h"
00028 
00029 
00030 class AlarmListFilterModel : public EventListFilterModel
00031 {
00032     public:
00033         enum { ColumnCount = 6 };
00034 
00035         explicit AlarmListFilterModel(EventListModel* baseModel, QObject* parent = 0);
00036         void                setStatusFilter(KCalEvent::Status);
00037         KCalEvent::Status   statusFilter() const   { return mStatusFilter; }
00038         virtual QModelIndex mapFromSource(const QModelIndex& sourceIndex) const;
00039 
00040     protected:
00041         virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
00042         virtual bool filterAcceptsColumn(int sourceCol, const QModelIndex& sourceParent) const;
00043 
00044     private:
00045         KCalEvent::Status mStatusFilter;
00046 };
00047 
00048 #endif // ALARMLISTFILTERMODEL_H
00049 

kalarm

Skip menu "kalarm"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  •   akonadi_next
  •   kcal
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korganizer
  •   korgac
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • messageviewer
  • runtime
  •   kcm
  •       libmaildir
Generated for kdepim by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal