IncidenceEditorNG::IncidenceDefaults

Search for usage in LXR

IncidenceEditorNG::IncidenceDefaults Class Reference

#include <incidencedefaults.h>

Public Member Functions

 IncidenceDefaults (bool cleanupAttachmentTEmporaryFiles=false)
 
 IncidenceDefaults (const IncidenceDefaults &other)
 
IncidenceDefaultsoperator= (const IncidenceDefaults &other)
 
void setAttachments (const QStringList &attachments, const QStringList &attachmentMimetypes=QStringList(), const QStringList &attachmentLabels=QStringList(), bool inlineAttachment=false)
 
void setAttendees (const QStringList &attendees)
 
void setDefaults (const KCalendarCore::Incidence::Ptr &incidence) const
 
void setEndDateTime (const QDateTime &endDT)
 
void setFullEmails (const QStringList &fullEmails)
 
void setGroupWareDomain (const QString &domain)
 
void setRelatedIncidence (const KCalendarCore::Incidence::Ptr &incidence)
 
void setStartDateTime (const QDateTime &startDT)
 

Static Public Member Functions

static QString invalidEmailAddress ()
 
static IncidenceDefaults minimalIncidenceDefaults (bool cleanupAttachmentTempFiles=false)
 

Detailed Description

The IncidenceDefaults class.

Definition at line 22 of file incidencedefaults.h.

Constructor & Destructor Documentation

◆ IncidenceDefaults() [1/2]

IncidenceDefaults::IncidenceDefaults ( bool cleanupAttachmentTEmporaryFiles = false)
explicit

IncidenceDefaults.

Definition at line 232 of file incidencedefaults.cpp.

◆ IncidenceDefaults() [2/2]

IncidenceDefaults::IncidenceDefaults ( const IncidenceDefaults & other)

Definition at line 238 of file incidencedefaults.cpp.

Member Function Documentation

◆ invalidEmailAddress()

QString IncidenceDefaults::invalidEmailAddress ( )
static

static

Definition at line 434 of file incidencedefaults.cpp.

◆ minimalIncidenceDefaults()

IncidenceDefaults IncidenceDefaults::minimalIncidenceDefaults ( bool cleanupAttachmentTempFiles = false)
static

Returns minimal incidence defaults: e-mails and groupware domain.

static

TODO: See if this is always called when using IncidenceDefaults. If yes, this should be done inside ctor.

Definition at line 414 of file incidencedefaults.cpp.

◆ operator=()

IncidenceDefaults & IncidenceDefaults::operator= ( const IncidenceDefaults & other)

Definition at line 246 of file incidencedefaults.cpp.

◆ setAttachments()

void IncidenceDefaults::setAttachments ( const QStringList & attachments,
const QStringList & attachmentMimetypes = QStringList(),
const QStringList & attachmentLabels = QStringList(),
bool inlineAttachment = false )

Sets the attachments that are added by default to incidences.

Definition at line 254 of file incidencedefaults.cpp.

◆ setAttendees()

void IncidenceDefaults::setAttendees ( const QStringList & attendees)

Sets the attendees that are added by default to incidences.

Parameters
attendeesExpected to be of the form "name name <email>"

Definition at line 313 of file incidencedefaults.cpp.

◆ setDefaults()

void IncidenceDefaults::setDefaults ( const KCalendarCore::Incidence::Ptr & incidence) const

Sets the default values for.

Parameters
incidence.This method is merely meant for new incidences. However, it will clear out all fields and set them to default values.
incidenceThe incidence that will get default values for all of its field.

Definition at line 356 of file incidencedefaults.cpp.

◆ setEndDateTime()

void IncidenceDefaults::setEndDateTime ( const QDateTime & endDT)

Set the end date/time to use for passed incidences.

This defaults to the current start date/time. The main purpose of this method is supporting defaults for new incidences that where created with a given time slot.

Parameters
endDTThe start date time to set on the incidence.

Definition at line 350 of file incidencedefaults.cpp.

◆ setFullEmails()

void IncidenceDefaults::setFullEmails ( const QStringList & fullEmails)

Sets the list of identities to be used for the user.

The items in the list are expected to be of the form: "name [name] <email>".

If the list is empty, it is assumed that no valid identities are configured.

Parameters
fullEmailsThe list of name email pairs that the user has configured as identities.

Definition at line 326 of file incidencedefaults.cpp.

◆ setGroupWareDomain()

void IncidenceDefaults::setGroupWareDomain ( const QString & domain)

This is used to do a smarter guess about which identity to use for the organizer.

If the groupware server is not set, the first available identity will be used.

Parameters
domainThe gropuware server domain name without any protocol prefixes (e.g. demo.kolab.org).

Definition at line 332 of file incidencedefaults.cpp.

◆ setRelatedIncidence()

void IncidenceDefaults::setRelatedIncidence ( const KCalendarCore::Incidence::Ptr & incidence)

Sets the incidence related to the incidence for which to set the defaults.

For example the parent todo of a new sub todo.

Definition at line 338 of file incidencedefaults.cpp.

◆ setStartDateTime()

void IncidenceDefaults::setStartDateTime ( const QDateTime & startDT)

Set the start date/time to use for passed incidences.

This defaults to the current start date/time. The main purpose of this method is supporting defaults for new incidences that where created with a given time slot.

Parameters
startDTThe start date time to set on the incidence.

Definition at line 344 of file incidencedefaults.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.