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

KAlarm Library

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

#include <kaevent.h>

Public Types

enum  Action {
  MESSAGE, FILE, COMMAND, EMAIL,
  AUDIO
}
 
enum  Type {
  INVALID_ALARM = 0, MAIN_ALARM = 1, REMINDER_ALARM = 0x02, DEFERRED_ALARM = 0x04,
  DEFERRED_REMINDER_ALARM = REMINDER_ALARM | DEFERRED_ALARM, AT_LOGIN_ALARM = 0x10, DISPLAYING_ALARM = 0x20
}
 

Public Member Functions

 KAAlarm ()
 
 KAAlarm (const KAAlarm &other)
 
 ~KAAlarm ()
 
Action action () const
 
QDate date () const
 
DateTime dateTime (bool withRepeats=false) const
 
bool deferred () const
 
bool isReminder () const
 
bool isValid () const
 
KAAlarm & operator= (const KAAlarm &other)
 
bool repeatAtLogin () const
 
void setTime (const DateTime &dt)
 
void setTime (const KDateTime &dt)
 
QTime time () const
 
bool timedDeferral () const
 
Type type () const
 

Static Public Member Functions

static const char * debugType (Type)
 

Detailed Description

KAAlarm represents individual alarms within a KAEvent.

The KAAlarm class represents one of the main or subsidiary alarms in a KAEvent instance. It contains the alarm's type and trigger time.

Note that valid KAAlarm instances can only be created by the KAEvent class.

See also
KAEvent::alarm(), KAEvent::firstAlarm(), KAEvent::nextAlarm().
Author
David Jarvie djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 78 of file kaevent.h.

Member Enumeration Documentation

enum KAlarmCal::KAAlarm::Action

The basic KAAlarm action types.

Enumerator
MESSAGE 

KCal::Alarm::Display type: display a text message.

FILE 

KCal::Alarm::Display type: display a file (URL given by the alarm text)

COMMAND 

KCal::Alarm::Procedure type: execute a shell command.

EMAIL 

KCal::Alarm::Email type: send an email.

AUDIO 

KCal::Alarm::Audio type: play a sound file.

Definition at line 82 of file kaevent.h.

enum KAlarmCal::KAAlarm::Type

Alarm types.

KAAlarm's of different types may be contained in a KAEvent, each KAAlarm defining a different component of the overall alarm.

Enumerator
INVALID_ALARM 

Not an alarm.

MAIN_ALARM 

THE real alarm. Must be the first in the enumeration.

REMINDER_ALARM 

Reminder in advance of/after the main alarm.

DEFERRED_ALARM 

Deferred alarm.

DEFERRED_REMINDER_ALARM 

Deferred reminder alarm.

AT_LOGIN_ALARM 

Additional repeat-at-login trigger.

DISPLAYING_ALARM 

Copy of the alarm currently being displayed.

Definition at line 95 of file kaevent.h.

Constructor & Destructor Documentation

KAlarmCal::KAAlarm::KAAlarm ( )

Default constructor, which creates an invalid instance.

Definition at line 6109 of file kaevent.cpp.

KAlarmCal::KAAlarm::KAAlarm ( const KAAlarm &  other)

Copy constructor.

Definition at line 6122 of file kaevent.cpp.

KAlarmCal::KAAlarm::~KAAlarm ( )

Destructor.

Definition at line 6127 of file kaevent.cpp.

Member Function Documentation

KAAlarm::Action KAlarmCal::KAAlarm::action ( ) const

Return the action type for the alarm.

Definition at line 6139 of file kaevent.cpp.

QDate KAlarmCal::KAAlarm::date ( ) const

Return the trigger date for the alarm.

Sub-repetitions are ignored: if a sub-repetition is due next, the last main recurrence will be returned instead.

Definition at line 6161 of file kaevent.cpp.

DateTime KAlarmCal::KAAlarm::dateTime ( bool  withRepeats = false) const

Return the trigger time for the alarm.

Sub-repetitions can optionally be ignored; in this case, if a sub-repetition is due next, the last main recurrence will be returned instead.

Parameters
withRepeatsif true, returns the next sub-repetition time where appropriate; if false, ignores sub-repetitions.

Definition at line 6154 of file kaevent.cpp.

const char * KAlarmCal::KAAlarm::debugType ( Type  type)
static

Return an alarm type as a string.

Returns
alarm type string, or the empty string if debug output is disabled.

Definition at line 6204 of file kaevent.cpp.

bool KAlarmCal::KAAlarm::deferred ( ) const

Return whether this is a deferred alarm.

Definition at line 6181 of file kaevent.cpp.

bool KAlarmCal::KAAlarm::isReminder ( ) const

Return whether this is a reminder alarm.

Definition at line 6176 of file kaevent.cpp.

bool KAlarmCal::KAAlarm::isValid ( ) const

Return whether the alarm is valid, i.e.

whether it contains any alarm data.

Definition at line 6144 of file kaevent.cpp.

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

Assignment operator.

Definition at line 6132 of file kaevent.cpp.

bool KAlarmCal::KAAlarm::repeatAtLogin ( ) const

Return whether this is a repeat-at-login alarm.

Definition at line 6171 of file kaevent.cpp.

void KAlarmCal::KAAlarm::setTime ( const DateTime &  dt)

Set the alarm's trigger time.

Definition at line 6191 of file kaevent.cpp.

void KAlarmCal::KAAlarm::setTime ( const KDateTime &  dt)

Set the alarm's trigger time.

Definition at line 6196 of file kaevent.cpp.

QTime KAlarmCal::KAAlarm::time ( ) const

Return the trigger time-of-day for the alarm.

Sub-repetitions are ignored: if a sub-repetition is due next, the last main recurrence will be returned instead.

Returns
trigger time-of-day. If the alarm is date-only, this will be the user-defined start-of-day time.

Definition at line 6166 of file kaevent.cpp.

bool KAlarmCal::KAAlarm::timedDeferral ( ) const

Return whether in the case of a deferred alarm, it is timed (as opposed to date-only).

Returns
true if a timed deferral alarm, false if date-only or not a deferred alarm.

Definition at line 6186 of file kaevent.cpp.

KAAlarm::Type KAlarmCal::KAAlarm::type ( ) const

Return the alarm's type (main, reminder, etc.).

Definition at line 6149 of file kaevent.cpp.


The documentation for this class was generated from the following files:
  • kaevent.h
  • kaevent.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