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

kalarm

Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ItemListModel Class Reference

#include <itemlistmodel.h>

Inheritance diagram for ItemListModel:
Inheritance graph
[legend]

Signals

void haveEventsStatus (bool have)
 

Public Member Functions

 ItemListModel (CalEvent::Types allowed, QObject *parent=0)
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
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 int iconWidth ()
 

Protected Member Functions

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

Detailed Description

Definition at line 38 of file itemlistmodel.h.

Constructor & Destructor Documentation

ItemListModel::ItemListModel ( CalEvent::Types  allowed,
QObject *  parent = 0 
)
explicit

Constructor.

Parameters
allowedthe alarm types (active/archived/template) included in this model

Definition at line 36 of file itemlistmodel.cpp.

Member Function Documentation

int ItemListModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Reimplemented in TemplateListModel, and AlarmListModel.

Definition at line 63 of file itemlistmodel.cpp.

KAEvent ItemListModel::event ( int  row) const

Definition at line 163 of file itemlistmodel.cpp.

KAEvent ItemListModel::event ( const QModelIndex &  index) const

Definition at line 171 of file itemlistmodel.cpp.

QModelIndex ItemListModel::eventIndex ( Akonadi::Item::Id  ) const

Definition at line 152 of file itemlistmodel.cpp.

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

Reimplemented in TemplateListModel, and AlarmListModel.

Definition at line 110 of file itemlistmodel.cpp.

Qt::ItemFlags ItemListModel::flags ( const QModelIndex &  index) const
virtual

Reimplemented in TemplateListModel.

Definition at line 142 of file itemlistmodel.cpp.

bool ItemListModel::haveEvents ( ) const

Determine whether the model contains any items.

Definition at line 179 of file itemlistmodel.cpp.

void ItemListModel::haveEventsStatus ( bool  have)
signal

Signal emitted when either the first item is added to the model, or when the last item is deleted from the model.

static int ItemListModel::iconWidth ( )
inlinestatic

Definition at line 59 of file itemlistmodel.h.

CalEvent::Types ItemListModel::includedTypes ( ) const
inline

Definition at line 47 of file itemlistmodel.h.


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