Akonadi::BlockAlarmsAttribute
#include <blockalarmsattribute.h>
Public Member Functions | |
BlockAlarmsAttribute () | |
~BlockAlarmsAttribute () override | |
void | blockAlarmType (KCalendarCore::Alarm::Type type, bool block=true) |
void | blockEverything (bool block=true) |
BlockAlarmsAttribute * | clone () 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 |
Public Member Functions inherited from Akonadi::Attribute |
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().
- See also
- Akonadi::Attribute
- Since
- 4.11
Definition at line 31 of file blockalarmsattribute.h.
Constructor & Destructor Documentation
◆ BlockAlarmsAttribute()
BlockAlarmsAttribute::BlockAlarmsAttribute | ( | ) |
Creates a new block alarms attribute.
Definition at line 28 of file blockalarmsattribute.cpp.
◆ ~BlockAlarmsAttribute()
|
overridedefault |
Destroys the block alarms attribute.
Member Function Documentation
◆ blockAlarmType()
void BlockAlarmsAttribute::blockAlarmType | ( | KCalendarCore::Alarm::Type | type, |
bool | block = true ) |
Blocks or unblocks given alarm type.
By default, all alarm types are blocked.
- Since
- 4.11
Definition at line 35 of file blockalarmsattribute.cpp.
◆ blockEverything()
void BlockAlarmsAttribute::blockEverything | ( | bool | block = true | ) |
Blocks or unblocks every alarm type.
By default, all alarm types are blocked.
- Since
- 5.0
Definition at line 55 of file blockalarmsattribute.cpp.
◆ clone()
|
overridevirtual |
Implements Akonadi::Attribute.
Definition at line 91 of file blockalarmsattribute.cpp.
◆ deserialize()
|
overridevirtual |
Implements Akonadi::Attribute.
Definition at line 114 of file blockalarmsattribute.cpp.
◆ isAlarmTypeBlocked()
|
nodiscard |
Returns whether given alarm type is blocked or not.
- Since
- 4.11
Definition at line 63 of file blockalarmsattribute.cpp.
◆ isEverythingBlocked()
|
nodiscard |
Returns whether all alarms are blocked or not.
- Since
- 5.0
Definition at line 79 of file blockalarmsattribute.cpp.
◆ serialized()
|
nodiscardoverridevirtual |
Implements Akonadi::Attribute.
Definition at line 102 of file blockalarmsattribute.cpp.
◆ type()
|
nodiscardoverridevirtual |
Implements Akonadi::Attribute.
Definition at line 85 of file blockalarmsattribute.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.