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

KCalUtils Library

  • kcalutils
recurrenceactions.h
1/*
2 This file is part of the kcal library.
3
4 Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
5 Author: Kevin Krammer, krake@kdab.com
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22
23#ifndef RECURRENCEACTIONS_H
24#define RECURRENCEACTIONS_H
25
26#include "kcalutils_export.h"
27
28#include <kcalcore/incidence.h>
29
30class KDateTime;
31class KGuiItem;
32class QWidget;
33
34namespace KCalUtils {
35
46namespace RecurrenceActions {
52enum Scope {
56 NoOccurrence = 0,
57
61 SelectedOccurrence = 1,
62
66 PastOccurrences = 2,
67
71 FutureOccurrences = 4,
72
76 AllOccurrences = PastOccurrences | SelectedOccurrence | FutureOccurrences
77};
78
91KCALUTILS_EXPORT
92int availableOccurrences(const KCalCore::Incidence::Ptr &incidence,
93 const KDateTime &selectedOccurrence);
94
113KCALUTILS_EXPORT int questionMultipleChoice(const KDateTime &selectedOccurrence,
114 const QString &message, const QString &caption,
115 const KGuiItem &action, int availableChoices,
116 int preselectedChoices, QWidget *parent);
117
133KCALUTILS_EXPORT
134int questionSelectedAllCancel(const QString &message, const QString &caption,
135 const KGuiItem &actionSelected, const KGuiItem &actionAll,
136 QWidget *parent);
137
162KCALUTILS_EXPORT
163int questionSelectedFutureAllCancel(const QString &message, const QString &caption,
164 const KGuiItem &actionSelected,
165 const KGuiItem &actionFuture,
166 const KGuiItem &actionAll,
167 QWidget *parent);
168}
169
170}
171
172#endif
173
174// kate: space-indent on; indent-width 2; replace-tabs on;
KCalCore::Incidence::Ptr
QSharedPointer< Incidence > Ptr
incidence.h
KCalUtils::RecurrenceActions::availableOccurrences
KCALUTILS_EXPORT int availableOccurrences(const KCalCore::Incidence::Ptr &incidence, const KDateTime &selectedOccurrence)
Checks what scope an action could be applied on for a given incidence.
Definition: recurrenceactions.cpp:122
KCalUtils::RecurrenceActions::questionSelectedFutureAllCancel
KCALUTILS_EXPORT int questionSelectedFutureAllCancel(const QString &message, const QString &caption, const KGuiItem &actionSelected, const KGuiItem &actionFuture, const KGuiItem &actionAll, QWidget *parent)
Presents a message box with three action choices and cancel to the user.
Definition: recurrenceactions.cpp:208
KCalUtils::RecurrenceActions::questionMultipleChoice
KCALUTILS_EXPORT int questionMultipleChoice(const KDateTime &selectedOccurrence, const QString &message, const QString &caption, const KGuiItem &action, int availableChoices, int preselectedChoices, QWidget *parent)
Presents a multiple choice scope selection dialog to the user.
Definition: recurrenceactions.cpp:143
KCalUtils::RecurrenceActions::Scope
Scope
Flags for indicating on which occurrences to work on.
Definition: recurrenceactions.h:52
KCalUtils::RecurrenceActions::SelectedOccurrence
@ SelectedOccurrence
Scope does include the given/selected occurrence.
Definition: recurrenceactions.h:61
KCalUtils::RecurrenceActions::AllOccurrences
@ AllOccurrences
Scope does include all occurrences (past, present and future)
Definition: recurrenceactions.h:76
KCalUtils::RecurrenceActions::FutureOccurrences
@ FutureOccurrences
Scope does include occurrences after the given/selected occurrence.
Definition: recurrenceactions.h:71
KCalUtils::RecurrenceActions::PastOccurrences
@ PastOccurrences
Scope does include occurrences before the given/selected occurrence.
Definition: recurrenceactions.h:66
KCalUtils::RecurrenceActions::NoOccurrence
@ NoOccurrence
Scope does not apply to any occurrence.
Definition: recurrenceactions.h:56
KCalUtils::RecurrenceActions::questionSelectedAllCancel
KCALUTILS_EXPORT int questionSelectedAllCancel(const QString &message, const QString &caption, const KGuiItem &actionSelected, const KGuiItem &actionAll, QWidget *parent)
Presents a message box with two action choices and cancel to the user.
Definition: recurrenceactions.cpp:173
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalUtils Library

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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