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::IncidenceDefaults ( bool  cleanupAttachmentTEmporaryFiles = false)
explicit

IncidenceDefaults.

Definition at line 206 of file incidencedefaults.cpp.

Member Function Documentation

QString IncidenceDefaults::invalidEmailAddress ( )
static

static

Definition at line 408 of file incidencedefaults.cpp.

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 388 of file incidencedefaults.cpp.

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 228 of file incidencedefaults.cpp.

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 287 of file incidencedefaults.cpp.

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 330 of file incidencedefaults.cpp.

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 324 of file incidencedefaults.cpp.

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 300 of file incidencedefaults.cpp.

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 306 of file incidencedefaults.cpp.

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 312 of file incidencedefaults.cpp.

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 318 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-2022 The KDE developers.
Generated on Sat Jan 15 2022 23:04:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.