2 This file is part of KMail.
3 Copyright (c) 2002-2003 Don Sanders <sanders@kde.org>,
4 Copyright (c) 2003 Zack Rusin <zack@kde.org>,
5 Based on the work of Cornelius Schumacher <schumacher@kde.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program 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
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution.
28 #include <kparts/part.h>
29 #include <kparts/readonlypart.h>
30 #include <AkonadiCore/collection.h>
37 class KMailPart
: public KParts::ReadOnlyPart
40 Q_CLASSINFO("D-Bus Interface", "org.kde.kmail.kmailpart")
43 KMailPart(QWidget
*parentWidget
, QObject
*parent
, const QVariantList
&);
46 QWidget
*parentWidget() const;
49 Q_SCRIPTABLE
void save();
50 Q_SCRIPTABLE
void exit();
51 void updateQuickSearchText();
54 bool openFile() Q_DECL_OVERRIDE
;
55 void guiActivateEvent(KParts::GUIActivateEvent
*e
) Q_DECL_OVERRIDE
;
58 KMMainWidget
*mainWidget
;
59 QWidget
*mParentWidget
;