• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
pluginloader_p.h
1 /* -*- c++ -*-
2  Copyright (c) 2008 Tobias Koenig <tokoe@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_PLUGINLOADER_P_H
21 #define AKONADI_PLUGINLOADER_P_H
22 
23 #include "akonadiprivate_export.h"
24 
25 #include <QtCore/QHash>
26 #include <QtCore/QString>
27 
28 class QPluginLoader;
29 
30 namespace Akonadi {
31 
32 class AKONADI_TESTS_EXPORT PluginMetaData
33 {
34  public:
35  PluginMetaData();
36  PluginMetaData( const QString & lib, const QString & name, const QString & comment, const QString & cname );
37 
38  QString library;
39  QString nameLabel;
40  QString descriptionLabel;
41  QString className;
42  bool loaded;
43 };
44 
45 class AKONADI_TESTS_EXPORT PluginLoader
46 {
47  public:
48  ~PluginLoader();
49 
50  static PluginLoader* self();
51 
52  QStringList names() const;
53 
54  QObject* createForName( const QString & name );
55 
56  PluginMetaData infoForName( const QString & name ) const;
57 
58  void scan();
59 
60  private:
61  PluginLoader();
62 
63  static PluginLoader *mSelf;
64  QHash<QString, QPluginLoader*> mPluginLoaders;
65  QHash<QString, PluginMetaData> mPluginInfos;
66 };
67 
68 }
69 
70 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:40 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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