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

kalarm

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
AlarmListModel Class Reference

#include <itemlistmodel.h>

Inheritance diagram for AlarmListModel:
Inheritance graph
[legend]

Public Types

enum  {
  TimeColumn = 0, TimeToColumn, RepeatColumn, ColourColumn,
  TypeColumn, TextColumn, ColumnCount
}
 

Public Member Functions

 AlarmListModel (QObject *parent=0)
 
 ~AlarmListModel ()
 
virtual int columnCount (const QModelIndex &=QModelIndex()) const
 
CalEvent::Types eventTypeFilter () const
 
virtual QVariant headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const
 
void setEventTypeFilter (CalEvent::Types types)
 
- Public Member Functions inherited from ItemListModel
 ItemListModel (CalEvent::Types allowed, QObject *parent=0)
 
KAEvent event (int row) const
 
KAEvent event (const QModelIndex &) const
 
QModelIndex eventIndex (Akonadi::Item::Id) const
 
virtual Qt::ItemFlags flags (const QModelIndex &) const
 
bool haveEvents () const
 
CalEvent::Types includedTypes () const
 

Static Public Member Functions

static AlarmListModel * all ()
 
- Static Public Member Functions inherited from ItemListModel
static int iconWidth ()
 

Protected Member Functions

virtual bool filterAcceptsColumn (int sourceCol, const QModelIndex &sourceParent) const
 
virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
 

Additional Inherited Members

- Signals inherited from ItemListModel
void haveEventsStatus (bool have)
 

Detailed Description

Definition at line 87 of file itemlistmodel.h.

Member Enumeration Documentation

anonymous enum
Enumerator
TimeColumn 
TimeToColumn 
RepeatColumn 
ColourColumn 
TypeColumn 
TextColumn 
ColumnCount 

Definition at line 91 of file itemlistmodel.h.

Constructor & Destructor Documentation

AlarmListModel::AlarmListModel ( QObject *  parent = 0)
explicit

Definition at line 193 of file itemlistmodel.cpp.

AlarmListModel::~AlarmListModel ( )

Definition at line 199 of file itemlistmodel.cpp.

Member Function Documentation

AlarmListModel * AlarmListModel::all ( )
static

Return the model containing all active and archived alarms.

Definition at line 205 of file itemlistmodel.cpp.

virtual int AlarmListModel::columnCount ( const QModelIndex &  = QModelIndex()) const
inlinevirtual

Reimplemented from ItemListModel.

Definition at line 113 of file itemlistmodel.h.

CalEvent::Types AlarmListModel::eventTypeFilter ( ) const
inline

Return the filter set by setEventTypeFilter().

Returns
all event types included in the model

Definition at line 111 of file itemlistmodel.h.

bool AlarmListModel::filterAcceptsColumn ( int  sourceCol,
const QModelIndex &  sourceParent 
) const
protectedvirtual

Definition at line 239 of file itemlistmodel.cpp.

bool AlarmListModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protectedvirtual

Reimplemented from ItemListModel.

Definition at line 229 of file itemlistmodel.cpp.

QVariant AlarmListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 244 of file itemlistmodel.cpp.

void AlarmListModel::setEventTypeFilter ( CalEvent::Types  types)

Set a filter to restrict the event types to a subset of those specified in the constructor.

Parameters
typesthe event types to be included in the model

Definition at line 215 of file itemlistmodel.cpp.


The documentation for this class was generated from the following files:
  • itemlistmodel.h
  • itemlistmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal