Add credits for Marek
[trojita.git] / src / Gui / MessageSourceWidget.h
blobb1639c49dd59499038206f68faf30b3077f7fa89
1 /* Copyright (C) 2013 Ahmed Ibrahim Khalil <ahmedibrahimkhali@gmail.com>
2 Copyright (C) 2006 - 2016 Jan Kundrát <jkt@kde.org>
4 This file is part of the Trojita Qt IMAP e-mail client,
5 http://trojita.flaska.net/
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of
10 the License or (at your option) version 3 or any later version
11 accepted by the membership of KDE e.V. (or its successor approved
12 by the membership of KDE e.V.), which shall act as a proxy
13 defined in Section 14 of version 3 of the license.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef MESSAGESOURCEWIDGET_H
25 #define MESSAGESOURCEWIDGET_H
27 #include <QWidget>
28 #include "Gui/FindBarMixin.h"
30 class QModelIndex;
31 class QWebView;
33 namespace Imap
35 namespace Mailbox
37 class FullMessageCombiner;
41 namespace Gui
44 class Spinner;
46 class MessageSourceWidget : public QWidget, private FindBarMixin
48 Q_OBJECT
49 public:
50 MessageSourceWidget(QWidget *parent, const QModelIndex& messageIndex);
52 private slots:
53 void slotCompleted();
54 void slotError(const QString &message);
56 private:
57 Imap::Mailbox::FullMessageCombiner *m_combiner;
58 Spinner *m_loadingSpinner;
59 QWebView *m_widget;
64 #endif // MESSAGESOURCEWIDGET_H