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

KAlarm Library

  • KAlarmCal
  • CollectionAttribute
Public Member Functions | Static Public Member Functions | List of all members
KAlarmCal::CollectionAttribute Class Reference

#include <collectionattribute.h>

Inheritance diagram for KAlarmCal::CollectionAttribute:
Inheritance graph
[legend]

Public Member Functions

 CollectionAttribute (const CollectionAttribute &other)
 
QColor backgroundColor () const
 
virtual CollectionAttribute * clone () const
 
virtual void deserialize (const QByteArray &data)
 
CalEvent::Types enabled () const
 
bool isEnabled (CalEvent::Type type) const
 
bool isStandard (CalEvent::Type type) const
 
bool keepFormat () const
 
CollectionAttribute & operator= (const CollectionAttribute &other)
 
virtual QByteArray serialized () const
 
void setBackgroundColor (const QColor &c)
 
void setEnabled (CalEvent::Type type, bool enabled)
 
void setEnabled (CalEvent::Types types)
 
void setKeepFormat (bool keep)
 
void setStandard (CalEvent::Type, bool standard)
 
void setStandard (CalEvent::Types types)
 
CalEvent::Types standard () const
 
virtual QByteArray type () const
 

Static Public Member Functions

static QByteArray name ()
 

Detailed Description

An Attribute for a KAlarm Collection containing various status information.

This class represents an Akonadi attribute of a KAlarm Collection. It contains information on the enabled status, the alarm types allowed in the resource, which alarm types the resource is the standard Collection for, etc.

The attribute is maintained by client applications.

See also
CompatibilityAttribute
Author
David Jarvie djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 51 of file collectionattribute.h.

Constructor & Destructor Documentation

KAlarmCal::CollectionAttribute::CollectionAttribute ( const CollectionAttribute &  other)

Copy constructor.

Definition at line 48 of file collectionattribute.cpp.

Member Function Documentation

QColor KAlarmCal::CollectionAttribute::backgroundColor ( ) const

Return the background color to display this collection and its alarms, or invalid color if none is set.

Definition at line 150 of file collectionattribute.cpp.

CollectionAttribute * KAlarmCal::CollectionAttribute::clone ( ) const
virtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 69 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::deserialize ( const QByteArray &  data)
virtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 196 of file collectionattribute.cpp.

CalEvent::Types KAlarmCal::CollectionAttribute::enabled ( ) const

Return which alarm types (active, archived or template) the collection is enabled for.

Definition at line 79 of file collectionattribute.cpp.

bool KAlarmCal::CollectionAttribute::isEnabled ( CalEvent::Type  type) const

Return whether the collection is enabled for a specified alarm type (active, archived, template or displaying).

Parameters
typealarm type to check for.

Definition at line 74 of file collectionattribute.cpp.

bool KAlarmCal::CollectionAttribute::isStandard ( CalEvent::Type  type) const

Return whether the collection is the standard collection for a specified alarm type (active, archived or template).

Parameters
typealarm type

Definition at line 110 of file collectionattribute.cpp.

bool KAlarmCal::CollectionAttribute::keepFormat ( ) const

Return whether the user has chosen to keep the old calendar storage format, i.e.

not update to current KAlarm format.

Definition at line 160 of file collectionattribute.cpp.

QByteArray KAlarmCal::CollectionAttribute::name ( )
static

Return the attribute name.

Definition at line 175 of file collectionattribute.cpp.

CollectionAttribute & KAlarmCal::CollectionAttribute::operator= ( const CollectionAttribute &  other)

Assignment operator.

Definition at line 59 of file collectionattribute.cpp.

QByteArray KAlarmCal::CollectionAttribute::serialized ( ) const
virtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 180 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setBackgroundColor ( const QColor &  c)

Set the background color for this collection and its alarms.

Parameters
cbackground color

Definition at line 155 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setEnabled ( CalEvent::Type  type,
bool  enabled 
)

Set the enabled/disabled state of the collection and its alarms, for a specified alarm type (active, archived or template).

The enabled/disabled state for other alarm types is not affected. The alarms of that type in a disabled collection are ignored, and not displayed in the alarm list. The standard status for that type for a disabled collection is automatically cleared.

Parameters
typealarm type
enabledtrue to set enabled, false to set disabled.

Definition at line 84 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setEnabled ( CalEvent::Types  types)

Set which alarm types (active, archived or template) the collection is enabled for.

Parameters
typesalarm types

Definition at line 104 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setKeepFormat ( bool  keep)

Set whether to keep the old calendar storage format unchanged.

Parameters
keeptrue to keep format unchanged, false to allow changes.

Definition at line 165 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setStandard ( CalEvent::Type  type,
bool  standard 
)

Set or clear the collection as the standard collection for a specified alarm type (active, archived or template).

Parameters
typealarm type
standardtrue to set as standard, false to clear standard status.

Definition at line 128 of file collectionattribute.cpp.

void KAlarmCal::CollectionAttribute::setStandard ( CalEvent::Types  types)

Set which alarm types (active, archived or template) the collection is the standard collection for.

Parameters
typesalarm types.

Definition at line 145 of file collectionattribute.cpp.

CalEvent::Types KAlarmCal::CollectionAttribute::standard ( ) const

Return which alarm types (active, archived or template) the collection is standard for.

Returns
alarm types.

Definition at line 123 of file collectionattribute.cpp.

QByteArray KAlarmCal::CollectionAttribute::type ( ) const
virtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 170 of file collectionattribute.cpp.


The documentation for this class was generated from the following files:
  • collectionattribute.h
  • collectionattribute.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KAlarm Library

Skip menu "KAlarm Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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