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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
kmail_part.h
Go to the documentation of this file.
1 /*
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>
6 
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.
11 
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.
16 
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.
20 
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.
24 */
25 #ifndef KMail_PART_H
26 #define KMail_PART_H
27 
28 #include <kparts/part.h>
29 #include <akonadi/collection.h>
30 
31 #include <QWidget>
32 #include <QPixmap>
33 
34 class KMMainWidget;
35 
36 class KMailPart: public KParts::ReadOnlyPart
37 {
38  Q_OBJECT
39  Q_CLASSINFO("D-Bus Interface", "org.kde.kmail.kmailpart")
40 
41 public:
42  KMailPart(QWidget *parentWidget, QObject *parent, const QVariantList &);
43  virtual ~KMailPart();
44 
45  QWidget* parentWidget() const;
46 
47 public Q_SLOTS:
48  Q_SCRIPTABLE void save() { /*TODO*/ }
49  Q_SCRIPTABLE void exit();
50  void updateEditMenu() {}
51 
52  void updateQuickSearchText();
53 
54 protected:
55  virtual bool openFile();
56  virtual void guiActivateEvent(KParts::GUIActivateEvent *e);
57 
58 private:
59  KMMainWidget *mainWidget;
60  QWidget *mParentWidget;
61 };
62 
63 #endif
QWidget
KMailPart::~KMailPart
virtual ~KMailPart()
Definition: kmail_part.cpp:108
KMailPart::updateEditMenu
void updateEditMenu()
Definition: kmail_part.h:50
KMailPart::exit
Q_SCRIPTABLE void exit()
Definition: kmail_part.cpp:144
KMailPart::save
Q_SCRIPTABLE void save()
Definition: kmail_part.h:48
KMailPart
Definition: kmail_part.h:36
KMailPart::updateQuickSearchText
void updateQuickSearchText()
Definition: kmail_part.cpp:118
QObject
KMailPart::openFile
virtual bool openFile()
Definition: kmail_part.cpp:123
KMailPart::guiActivateEvent
virtual void guiActivateEvent(KParts::GUIActivateEvent *e)
Definition: kmail_part.cpp:133
KMMainWidget
Definition: kmmainwidget.h:91
KMailPart::parentWidget
QWidget * parentWidget() const
Definition: kmail_part.cpp:149
KMailPart::KMailPart
KMailPart(QWidget *parentWidget, QObject *parent, const QVariantList &)
Definition: kmail_part.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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