CalendarSupport
attachmenthandler.cpp
Go to the documentation of this file.
74Attachment AttachmentHandler::find(const QString &attachmentName, const Incidence::Ptr &incidence)
96 KMessageBox::error(d->mParent, i18n("No attachment named \"%1\" found in the incidence.", attachmentName));
107 i18n("The attachment \"%1\" is a web link that is inaccessible from this computer. ", QUrl::fromPercentEncoding(a.uri().toLatin1())));
114Attachment AttachmentHandler::find(const QString &attachmentName, const ScheduleMessage::Ptr &message)
140 s_tempFile = new QTemporaryFile(QDir::tempPath() + "/attachementview_XXXXXX"_L1 + patterns.first().remove(QLatin1Char('*')));
213 const QString saveAsFile = QFileDialog::getSaveFileName(d->mParent, i18nc("@title:window", "Save Attachment"), attachment.label());
260bool AttachmentHandler::saveAs(const QString &attachmentName, const ScheduleMessage::Ptr &message)
This file is part of the API for handling calendar data and provides static functions for dealing wit...
void setGid(const QString &gid)
bool saveAs(const KCalendarCore::Attachment &attachment)
Saves the specified attachment to a file of the user's choice.
Definition attachmenthandler.cpp:210
KCalendarCore::Attachment find(const QString &attachmentName, const KCalendarCore::Incidence::Ptr &incidence)
Finds the attachment in the user's calendar, by attachmentName and incidence.
Definition attachmenthandler.cpp:74
AttachmentHandler(QWidget *parent)
Constructs an AttachmentHandler.
Definition attachmenthandler.cpp:66
bool view(const KCalendarCore::Attachment &attachment)
Launches a viewer on the specified attachment.
Definition attachmenthandler.cpp:161
bool isEmpty() const
QString uri() const
QString mimeType() const
bool isUri() const
QByteArray data() const
uint size() const
QString label() const
bool exec()
virtual QString errorString() const
int error() const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Incidence::Ptr incidence(const Akonadi::Item &item)
KIOCORE_EXPORT StatJob * stat(const QUrl &url, JobFlags flags=DefaultFlags)
KIOCORE_EXPORT FileCopyJob * file_copy(const QUrl &src, const QUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
StatBasic
void setWindow(QObject *job, QWidget *widget)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QByteArray fromBase64(const QByteArray &base64, Base64Options options)
bool openUrl(const QUrl &url)
QString tempPath()
virtual bool setPermissions(Permissions permissions) override
ReadUser
virtual void close() override
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
qint64 write(const QByteArray &data)
ConstIterator
const_iterator constBegin() const const
const_iterator constEnd() const const
bool empty() const const
T & first()
bool isEmpty() const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
globPatterns
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
bool isEmpty() const const
QByteArray toLatin1() const const
virtual QString fileName() const const override
bool open()
void setAutoRemove(bool b)
QUrl fromLocalFile(const QString &localFile)
QString fromPercentEncoding(const QByteArray &input)
bool isValid() const const
void setPath(const QString &path, ParsingMode mode)
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.