CalendarSupport
incidenceviewer.cpp
45 || uri.startsWith(QStringLiteral("urn:x-ical").section(QLatin1Char(':'), 0, 0)) || uri.startsWith(QLatin1StringView("news:"))
65 parent->connect(mBrowser, &TextBrowser::attachmentUrlClicked, parent, [this](const QString &str) {
75 text = KCalUtils::IncidenceFormatter::extensiveDisplayStr(Akonadi::CalendarUtils::displayName(mETM, mParentCollection),
230 disconnect(d->mParentCollectionFetchJob, SIGNAL(result(KJob *)), this, SLOT(slotParentCollectionFetched(KJob *)));
234 d->mParentCollectionFetchJob = new Akonadi::CollectionFetchJob(d->mCurrentItem.parentCollection(), Akonadi::CollectionFetchJob::Base, this);
236 connect(d->mParentCollectionFetchJob, SIGNAL(result(KJob *)), this, SLOT(slotParentCollectionFetched(KJob *)));
This file is part of the API for handling calendar data and provides static functions for dealing wit...
Akonadi::EntityTreeModel * entityTreeModel() const
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
void fetchFullPayload(bool fetch=true)
Item item() const
ItemFetchScope & fetchScope()
bool hasPayload() const
bool isValid() const
Provides methods to handle incidence attachments.
Definition attachmenthandler.h:39
bool view(const KCalendarCore::Attachment &attachment)
Launches a viewer on the specified attachment.
Definition attachmenthandler.cpp:161
A viewer component for incidences in Akonadi.
Definition incidenceviewer.h:54
Akonadi::Item incidence() const
Returns the incidence that is currently displayed.
Definition incidenceviewer.cpp:175
QDate activeDate() const
Returns the active date used for the currently displayed incidence.
Definition incidenceviewer.cpp:180
void setCalendar(Akonadi::ETMCalendar *calendar)
Sets the Calendar for this viewer.
Definition incidenceviewer.cpp:165
void setIncidence(const Akonadi::Item &incidence, QDate activeDate=QDate())
Sets the incidence that shall be displayed in the viewer.
Definition incidenceviewer.cpp:208
IncidenceViewer(Akonadi::ETMCalendar *calendar, QWidget *parent=nullptr)
Creates a new incidence viewer.
Definition incidenceviewer.cpp:123
void setHeaderText(const QString &text)
Sets an additional text that is shown above the incidence.
Definition incidenceviewer.cpp:203
void setModel(Akonadi::EntityTreeModel *etm)
Sets the model for this viewer.
Definition incidenceviewer.cpp:170
~IncidenceViewer() override
Destroys the incidence viewer.
void setDefaultMessage(const QString &message)
Sets the default message that shall be shown if no incidence is set.
Definition incidenceviewer.cpp:198
void setDelayedClear(bool delayed)
Sets whether the view shall be cleared as soon as an empty incidence is set (default) or delayed when...
Definition incidenceviewer.cpp:193
QAbstractItemModel * attachmentModel() const
Returns the attachment model for the currently displayed incidence.
Definition incidenceviewer.cpp:185
int error() const
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence(const Akonadi::Item &item)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
KCALUTILS_EXPORT QString extensiveDisplayStr(const KCalendarCore::Calendar::Ptr &calendar, const KCalendarCore::IncidenceBase::Ptr &incidence, QDate date=QDate())
QString name(StandardAction id)
QByteArray fromBase64(const QByteArray &base64, Base64Options options)
NoFrame
void addWidget(QWidget *w)
void setContentsMargins(const QMargins &margins)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QString fromUtf8(QByteArrayView str)
QString mid(qsizetype position, qsizetype n) const const
QString & prepend(QChar ch)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QByteArray toUtf8() const const
ResourceType
QLayout * layout() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.