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

kontact

  • sources
  • kde-4.12
  • kdepim
  • kontact
  • plugins
  • kmail
kmail_plugin.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003-2013 Kontact Developer <kde-pim@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef KMAIL_PLUGIN_H
26 #define KMAIL_PLUGIN_H
27 
28 #include <KontactInterface/Plugin>
29 #include <KontactInterface/UniqueAppHandler>
30 
31 #include <KUrl>
32 
33 class OrgKdeKmailKmailInterface;
34 
35 namespace KontactInterface {
36 class UniqueAppWatcher;
37 }
38 
39 class KMailUniqueAppHandler : public KontactInterface::UniqueAppHandler
40 {
41 public:
42  explicit KMailUniqueAppHandler( KontactInterface::Plugin *plugin )
43  : KontactInterface::UniqueAppHandler( plugin ) {}
44  virtual void loadCommandLineOptions();
45  virtual int newInstance();
46 };
47 
48 class KMailPlugin : public KontactInterface::Plugin
49 {
50  Q_OBJECT
51 
52 public:
53  KMailPlugin( KontactInterface::Core *core, const QVariantList & );
54  ~KMailPlugin();
55 
56  bool isRunningStandalone() const;
57  bool createDBUSInterface( const QString &serviceType );
58  virtual KontactInterface::Summary *createSummaryWidget( QWidget *parent );
59  QString tipFile() const;
60  int weight() const { return 200; }
61 
62  QStringList invisibleToolbarActions() const;
63  virtual bool queryClose() const;
64 
65 protected:
66  virtual KParts::ReadOnlyPart *createPart();
67  void openComposer( const KUrl &attach = KUrl() );
68  void openComposer( const QString &to );
69  bool canDecodeMimeData( const QMimeData * ) const;
70  void processDropEvent( QDropEvent * );
71 
72 protected slots:
73  void slotNewMail();
74  void slotSyncFolders();
75 
76 private:
77  OrgKdeKmailKmailInterface *m_instance;
78  KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
79 };
80 
81 #endif
KMailPlugin::queryClose
virtual bool queryClose() const
Definition: kmail_plugin.cpp:234
KMailUniqueAppHandler
Definition: kmail_plugin.h:39
KMailPlugin::createPart
virtual KParts::ReadOnlyPart * createPart()
Definition: kmail_plugin.cpp:182
KMailPlugin::openComposer
void openComposer(const KUrl &attach=KUrl())
Definition: kmail_plugin.cpp:123
KMailUniqueAppHandler::loadCommandLineOptions
virtual void loadCommandLineOptions()
Definition: kmail_plugin.cpp:213
KMailUniqueAppHandler::KMailUniqueAppHandler
KMailUniqueAppHandler(KontactInterface::Plugin *plugin)
Definition: kmail_plugin.h:42
QWidget
KMailPlugin::slotSyncFolders
void slotSyncFolders()
Definition: kmail_plugin.cpp:151
KMailPlugin::isRunningStandalone
bool isRunningStandalone() const
Definition: kmail_plugin.cpp:200
KMailPlugin::weight
int weight() const
Definition: kmail_plugin.h:60
KMailPlugin::processDropEvent
void processDropEvent(QDropEvent *)
Definition: kmail_plugin.cpp:95
KMailUniqueAppHandler::newInstance
virtual int newInstance()
Definition: kmail_plugin.cpp:218
to
QString to() const
QMimeData
KMailPlugin::tipFile
QString tipFile() const
Definition: kmail_plugin.cpp:176
KMailPlugin::invisibleToolbarActions
QStringList invisibleToolbarActions() const
Definition: kmail_plugin.cpp:195
KMailPlugin::~KMailPlugin
~KMailPlugin()
Definition: kmail_plugin.cpp:160
KMailPlugin::createDBUSInterface
bool createDBUSInterface(const QString &serviceType)
Definition: kmail_plugin.cpp:166
KMailPlugin::KMailPlugin
KMailPlugin(KontactInterface::Core *core, const QVariantList &)
Definition: kmail_plugin.cpp:52
KMailPlugin::slotNewMail
void slotNewMail()
Definition: kmail_plugin.cpp:146
KMailPlugin::canDecodeMimeData
bool canDecodeMimeData(const QMimeData *) const
Definition: kmail_plugin.cpp:87
KMailPlugin::createSummaryWidget
virtual KontactInterface::Summary * createSummaryWidget(QWidget *parent)
Definition: kmail_plugin.cpp:205
KMailPlugin
Definition: kmail_plugin.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • 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

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