• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • job
attachmenteditjob.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef ATTACHMENTEDITJOB_H
19 #define ATTACHMENTEDITJOB_H
20 
21 #include <QObject>
22 #include <Akonadi/Item>
23 #include <QHash>
24 #include <kmime/kmime_message.h>
25 namespace KMime {
26 class Content;
27 }
28 namespace MessageViewer {
29 class EditorWatcher;
30 class AttachmentEditJob : public QObject
31 {
32  Q_OBJECT
33 public:
34  explicit AttachmentEditJob(QObject *parent=0);
35  ~AttachmentEditJob();
36 
37  void setMainWindow(QWidget *mainWindow);
38 
39  void setMessageItem(const Akonadi::Item &messageItem);
40 
41  bool addAttachment(KMime::Content *node, bool showWarning);
42 
43  void canDeleteJob();
44 
45  void setMessage(const KMime::Message::Ptr &message);
46 
47 Q_SIGNALS:
48  void refreshMessage(const Akonadi::Item &item);
49 private slots:
50  void slotAttachmentEditDone(MessageViewer::EditorWatcher *editorWatcher);
51  void slotItemModifiedResult(KJob *);
52 private:
53  void removeEditorWatcher(MessageViewer::EditorWatcher *editorWatcher, const QString &name);
54  QHash<EditorWatcher*, KMime::Content*> mEditorWatchers;
55  Akonadi::Item mMessageItem;
56  KMime::Message::Ptr mMessage;
57  bool mShowWarning;
58  QWidget *mMainWindow;
59 };
60 }
61 
62 #endif // ATTACHMENTEDITJOB_H
QWidget
MessageViewer::AttachmentEditJob::refreshMessage
void refreshMessage(const Akonadi::Item &item)
MessageViewer::AttachmentEditJob::canDeleteJob
void canDeleteJob()
Definition: attachmenteditjob.cpp:117
MessageViewer::EditorWatcher
Starts an editor for the given URL and emits an signal when editing has been finished.
Definition: editorwatcher.h:39
QObject::name
const char * name() const
QHash
QObject
MessageViewer::AttachmentEditJob::setMainWindow
void setMainWindow(QWidget *mainWindow)
Definition: attachmenteditjob.cpp:75
MessageViewer::AttachmentEditJob::~AttachmentEditJob
~AttachmentEditJob()
Definition: attachmenteditjob.cpp:38
QString
MessageViewer::AttachmentEditJob
Definition: attachmenteditjob.h:30
MessageViewer::AttachmentEditJob::setMessageItem
void setMessageItem(const Akonadi::Item &messageItem)
Definition: attachmenteditjob.cpp:102
MessageViewer::AttachmentEditJob::AttachmentEditJob
AttachmentEditJob(QObject *parent=0)
Definition: attachmenteditjob.cpp:30
MessageViewer::AttachmentEditJob::setMessage
void setMessage(const KMime::Message::Ptr &message)
Definition: attachmenteditjob.cpp:129
QObject::parent
QObject * parent() const
MessageViewer::AttachmentEditJob::addAttachment
bool addAttachment(KMime::Content *node, bool showWarning)
Definition: attachmenteditjob.cpp:43
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



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