calendarsupport
Classes | |
class | ArchiveDialog |
class | AttachmentHandler |
class | CalendarUtils |
class | CategoryConfig |
class | CategoryHierarchyReader |
class | CategoryHierarchyReaderQComboBox |
class | CategoryHierarchyReaderQTreeWidget |
class | CollectionGeneralPage |
class | CollectionSelection |
class | EventArchiver |
class | IdentityManager |
class | IncidenceAttachmentModel |
class | IncidenceFetchJob |
class | IncidenceSearchJob |
class | IncidenceViewer |
class | KCalModel |
class | KCalPrefs |
class | KCalPrefsBase |
class | MessageWidget |
class | Plugin |
class | PluginFactory |
class | TextBrowser |
Functions | |
CALENDARSUPPORT_EXPORT Akonadi::Item::List | applyCalFilter (const Akonadi::Item::List &items, const KCalCore::CalFilter *filter) |
CALENDARSUPPORT_EXPORT Akonadi::ETMCalendar::Ptr | calendarSingleton () |
CALENDARSUPPORT_EXPORT bool | canDecode (const QMimeData *mimeData) |
CALENDARSUPPORT_EXPORT QStringList | categories (const KCalCore::Incidence::List &incidences) |
CALENDARSUPPORT_EXPORT Akonadi::Collection | collectionFromIndex (const QModelIndex &index) |
CALENDARSUPPORT_EXPORT Akonadi::Collection::Id | collectionIdFromIndex (const QModelIndex &index) |
CALENDARSUPPORT_EXPORT Akonadi::Collection::List | collectionsFromIndexes (const QModelIndexList &indexes) |
CALENDARSUPPORT_EXPORT Akonadi::Collection::List | collectionsFromModel (const QAbstractItemModel *model, const QModelIndex &parentIndex=QModelIndex(), int start=0, int end=-1) |
CALENDARSUPPORT_EXPORT QDrag * | createDrag (const Akonadi::Item &item, const KDateTime::Spec &timeSpec, QWidget *parent) |
CALENDARSUPPORT_EXPORT QDrag * | createDrag (const Akonadi::Item::List &items, const KDateTime::Spec &timeSpec, QWidget *parent) |
CALENDARSUPPORT_EXPORT QMimeData * | createMimeData (const Akonadi::Item &item, const KDateTime::Spec &timeSpec) |
CALENDARSUPPORT_EXPORT QMimeData * | createMimeData (const Akonadi::Item::List &items, const KDateTime::Spec &timeSpec) |
CALENDARSUPPORT_EXPORT QString | displayName (Akonadi::ETMCalendar *calendar, const Akonadi::Collection &coll) |
CALENDARSUPPORT_EXPORT KCalCore::Event::Ptr | event (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT KCalCore::Event::List | eventsFromItems (const Akonadi::Item::List &items) |
CALENDARSUPPORT_EXPORT bool | hasChangeRights (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | hasDeleteRights (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | hasEvent (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | hasIncidence (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | hasJournal (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | hasTodo (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT QStringList | holiday (const QDate &date) |
KPIMIdentities::IdentityManager * | identityManager () |
CALENDARSUPPORT_EXPORT KCalCore::Incidence::Ptr | incidence (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT QList < KUrl > | incidenceItemUrls (const QMimeData *mimeData) |
CALENDARSUPPORT_EXPORT KCalCore::Incidence::List | incidences (const QMimeData *mimeData, const KDateTime::Spec &timeSpec) |
CALENDARSUPPORT_EXPORT KCalCore::Incidence::List | incidencesFromItems (const Akonadi::Item::List &items) |
CALENDARSUPPORT_EXPORT bool | isValidIncidenceItemUrl (const KUrl &url, const QStringList &supportedMimeTypes) |
CALENDARSUPPORT_EXPORT bool | isValidIncidenceItemUrl (const KUrl &url) |
CALENDARSUPPORT_EXPORT bool | isValidTodoItemUrl (const KUrl &url) |
CALENDARSUPPORT_EXPORT Akonadi::Item | itemFromIndex (const QModelIndex &index) |
CALENDARSUPPORT_EXPORT Akonadi::Item::List | itemsFromModel (const QAbstractItemModel *model, const QModelIndex &parentIndex=QModelIndex(), int start=0, int end=-1) |
CALENDARSUPPORT_EXPORT KCalCore::Journal::Ptr | journal (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT bool | mergeCalendar (const QString &srcFilename, const KCalCore::Calendar::Ptr &destCalendar) |
CALENDARSUPPORT_EXPORT bool | mimeDataHasIncidence (const QMimeData *mimeData) |
CALENDARSUPPORT_EXPORT bool | mimeDataHasTodo (const QMimeData *mimeData) |
CALENDARSUPPORT_EXPORT void | saveAttachments (const Akonadi::Item &item, QWidget *parentWidget=0) |
CALENDARSUPPORT_EXPORT Akonadi::Collection | selectCollection (QWidget *parent, int &dialogCode, const QStringList &mimeTypes, const Akonadi::Collection &defaultCollection=Akonadi::Collection()) |
CALENDARSUPPORT_EXPORT QString | subMimeTypeForIncidence (const KCalCore::Incidence::Ptr &incidence) |
static KUrl | tempFileForAttachment (const Attachment::Ptr &attachment) |
CALENDARSUPPORT_EXPORT KCalCore::Todo::Ptr | todo (const Akonadi::Item &item) |
CALENDARSUPPORT_EXPORT QList < KUrl > | todoItemUrls (const QMimeData *mimeData) |
CALENDARSUPPORT_EXPORT KCalCore::Todo::List | todos (const QMimeData *mimeData, const KDateTime::Spec &timeSpec) |
CALENDARSUPPORT_EXPORT QList < QDate > | workDays (const QDate &start, const QDate &end) |
Variables | |
static KTemporaryFile * | s_tempFile = 0 |
Function Documentation
Akonadi::Item::List CalendarSupport::applyCalFilter | ( | const Akonadi::Item::List & | items, |
const KCalCore::CalFilter * | filter | ||
) |
Applies a filter to a list of items containing incidences.
Items not containing incidences or not matching the filter are removed. Helper method anologous to KCalCore::CalFilter::apply()
- See also
- KCalCore::CalFilter::apply()
- Parameters
-
items the list of items to filter filter the filter to apply to the list of items
- Returns
- the filtered list of items
Akonadi::ETMCalendar::Ptr CalendarSupport::calendarSingleton | ( | ) |
ETMCalendar to be used by kontact plugins to avoid having 3 loaded calendars which occupy lots of memory.
Singleton is implemented with weak and strong refs because we can't rely on K_GLOBAL_STATIC.
KOrganizer itself can't use this one since it disables calendar selection filtering.
QWidgets and QAbstractItemModels can't be global because their dtor depends on other globals, and the order of global destruction is random.
Definition at line 34 of file calendarsingleton.cpp.
bool CalendarSupport::canDecode | ( | const QMimeData * | mimeData | ) |
QStringList CalendarSupport::categories | ( | const KCalCore::Incidence::List & | incidences | ) |
Akonadi::Collection CalendarSupport::collectionFromIndex | ( | const QModelIndex & | index | ) |
Akonadi::Collection::Id CalendarSupport::collectionIdFromIndex | ( | const QModelIndex & | index | ) |
Akonadi::Collection::List CalendarSupport::collectionsFromIndexes | ( | const QModelIndexList & | indexes | ) |
Akonadi::Collection::List CalendarSupport::collectionsFromModel | ( | const QAbstractItemModel * | model, |
const QModelIndex & | parentIndex = QModelIndex() , |
||
int | start = 0 , |
||
int | end = -1 |
||
) |
QDrag * CalendarSupport::createDrag | ( | const Akonadi::Item & | item, |
const KDateTime::Spec & | timeSpec, | ||
QWidget * | parent | ||
) |
QDrag * CalendarSupport::createDrag | ( | const Akonadi::Item::List & | items, |
const KDateTime::Spec & | timeSpec, | ||
QWidget * | parent | ||
) |
QMimeData * CalendarSupport::createMimeData | ( | const Akonadi::Item & | item, |
const KDateTime::Spec & | timeSpec | ||
) |
QMimeData * CalendarSupport::createMimeData | ( | const Akonadi::Item::List & | items, |
const KDateTime::Spec & | timeSpec | ||
) |
QString CalendarSupport::displayName | ( | Akonadi::ETMCalendar * | calendar, |
const Akonadi::Collection & | coll | ||
) |
KCalCore::Event::Ptr CalendarSupport::event | ( | const Akonadi::Item & | item | ) |
KCalCore::Event::List CalendarSupport::eventsFromItems | ( | const Akonadi::Item::List & | items | ) |
CALENDARSUPPORT_EXPORT bool CalendarSupport::hasChangeRights | ( | const Akonadi::Item & | item | ) |
returns whether this item can be changed
CALENDARSUPPORT_EXPORT bool CalendarSupport::hasDeleteRights | ( | const Akonadi::Item & | item | ) |
returns whether this item can be deleted
bool CalendarSupport::hasEvent | ( | const Akonadi::Item & | item | ) |
bool CalendarSupport::hasIncidence | ( | const Akonadi::Item & | item | ) |
bool CalendarSupport::hasJournal | ( | const Akonadi::Item & | item | ) |
bool CalendarSupport::hasTodo | ( | const Akonadi::Item & | item | ) |
QStringList CalendarSupport::holiday | ( | const QDate & | date | ) |
KPIMIdentities::IdentityManager * CalendarSupport::identityManager | ( | ) |
Definition at line 39 of file identitymanager.cpp.
KCalCore::Incidence::Ptr CalendarSupport::incidence | ( | const Akonadi::Item & | item | ) |
QList< KUrl > CalendarSupport::incidenceItemUrls | ( | const QMimeData * | mimeData | ) |
KCalCore::Incidence::List CalendarSupport::incidences | ( | const QMimeData * | mimeData, |
const KDateTime::Spec & | timeSpec | ||
) |
KCalCore::Incidence::List CalendarSupport::incidencesFromItems | ( | const Akonadi::Item::List & | items | ) |
bool CalendarSupport::isValidIncidenceItemUrl | ( | const KUrl & | url, |
const QStringList & | supportedMimeTypes | ||
) |
bool CalendarSupport::isValidIncidenceItemUrl | ( | const KUrl & | url | ) |
bool CalendarSupport::isValidTodoItemUrl | ( | const KUrl & | url | ) |
Akonadi::Item CalendarSupport::itemFromIndex | ( | const QModelIndex & | index | ) |
Akonadi::Item::List CalendarSupport::itemsFromModel | ( | const QAbstractItemModel * | model, |
const QModelIndex & | parentIndex = QModelIndex() , |
||
int | start = 0 , |
||
int | end = -1 |
||
) |
KCalCore::Journal::Ptr CalendarSupport::journal | ( | const Akonadi::Item & | item | ) |
bool CalendarSupport::mergeCalendar | ( | const QString & | srcFilename, |
const KCalCore::Calendar::Ptr & | destCalendar | ||
) |
bool CalendarSupport::mimeDataHasIncidence | ( | const QMimeData * | mimeData | ) |
bool CalendarSupport::mimeDataHasTodo | ( | const QMimeData * | mimeData | ) |
void CalendarSupport::saveAttachments | ( | const Akonadi::Item & | item, |
QWidget * | parentWidget = 0 |
||
) |
Akonadi::Collection CalendarSupport::selectCollection | ( | QWidget * | parent, |
int & | dialogCode, | ||
const QStringList & | mimeTypes, | ||
const Akonadi::Collection & | defaultCollection = Akonadi::Collection() |
||
) |
Shows a modal dialog that allows to select a collection.
- Parameters
-
will contain the dialogCode, QDialog::Accepted if the user pressed Ok, QDialog::Rejected otherwise parent The optional parent of the modal dialog.
- Returns
- The select collection or an invalid collection if there was no collection selected.
QString CalendarSupport::subMimeTypeForIncidence | ( | const KCalCore::Incidence::Ptr & | incidence | ) |
|
static |
Definition at line 138 of file attachmenthandler.cpp.
KCalCore::Todo::Ptr CalendarSupport::todo | ( | const Akonadi::Item & | item | ) |
QList< KUrl > CalendarSupport::todoItemUrls | ( | const QMimeData * | mimeData | ) |
KCalCore::Todo::List CalendarSupport::todos | ( | const QMimeData * | mimeData, |
const KDateTime::Spec & | timeSpec | ||
) |
QList< QDate > CalendarSupport::workDays | ( | const QDate & | start, |
const QDate & | end | ||
) |
Variable Documentation
|
static |
Definition at line 136 of file attachmenthandler.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.