Akonadi::BlockAlarmsAttribute Class Reference

#include <blockalarmsattribute.h>

Inheritance diagram for Akonadi::BlockAlarmsAttribute:

Public Member Functions

 BlockAlarmsAttribute ()
 ~BlockAlarmsAttribute ()
void blockAlarmType (KCalendarCore::Alarm::Type type, bool block=true)
void blockEverything (bool block=true)
BlockAlarmsAttributeclone () const override
void deserialize (const QByteArray &data) override
bool isAlarmTypeBlocked (KCalendarCore::Alarm::Type type) const
bool isEverythingBlocked () const
QByteArray serialized () const override
QByteArray type () const override

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
typedef QList< Attribute * > List

Detailed Description

An Attribute that marks that alarms from a calendar collection are blocked.

A calendar collection which has this attribute set won't be evaluated by korgac and therefore it's alarms won't be used, unless explicitly unblocked in blockAlarmType().

Tobias Koenig tokoe[email protected]@kda[email protected]b.com
See also

Definition at line 27 of file blockalarmsattribute.h.

Constructor & Destructor Documentation

BlockAlarmsAttribute::BlockAlarmsAttribute ( )

Creates a new block alarms attribute.

Definition at line 27 of file blockalarmsattribute.cpp.

BlockAlarmsAttribute::~BlockAlarmsAttribute ( )

Destroys the block alarms attribute.

Definition at line 32 of file blockalarmsattribute.cpp.

Member Function Documentation

void BlockAlarmsAttribute::blockAlarmType ( KCalendarCore::Alarm::Type  type,
bool  block = true 

Blocks or unblocks given alarm type.

By default, all alarm types are blocked.


Definition at line 37 of file blockalarmsattribute.cpp.

void BlockAlarmsAttribute::blockEverything ( bool  block = true)

Blocks or unblocks every alarm type.

By default, all alarm types are blocked.


Definition at line 57 of file blockalarmsattribute.cpp.

bool BlockAlarmsAttribute::isAlarmTypeBlocked ( KCalendarCore::Alarm::Type  type) const

Returns whether given alarm type is blocked or not.


Definition at line 65 of file blockalarmsattribute.cpp.

bool BlockAlarmsAttribute::isEverythingBlocked ( ) const

Returns whether all alarms are blocked or not.


Definition at line 81 of file blockalarmsattribute.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 23:12:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.