• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

pluginloader.h

00001 /*  -*- c++ -*-
00002     Copyright (c) 2008 Tobias Koenig <tokoe@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef AKONADI_PLUGINLOADER_H
00021 #define AKONADI_PLUGINLOADER_H
00022 
00023 #include "akonadiprivate_export.h"
00024 
00025 #include <QtCore/QHash>
00026 #include <QtCore/QString>
00027 
00028 class QPluginLoader;
00029 
00030 namespace Akonadi {
00031 
00032 class AKONADI_TESTS_EXPORT PluginMetaData
00033 {
00034   public:
00035     PluginMetaData();
00036     PluginMetaData( const QString & lib, const QString & name, const QString & comment );
00037 
00038     QString library;
00039     QString nameLabel;
00040     QString descriptionLabel;
00041     bool loaded;
00042 };
00043 
00044 class AKONADI_TESTS_EXPORT PluginLoader
00045 {
00046   public:
00047     ~PluginLoader();
00048 
00049     static PluginLoader* self();
00050 
00051     QStringList types() const;
00052 
00053     QObject* createForName( const QString &type );
00054 
00055     PluginMetaData infoForName( const QString & type ) const;
00056 
00057     void scan();
00058 
00059   private:
00060     PluginLoader();
00061 
00062     static PluginLoader *mSelf;
00063     QHash<QString, QPluginLoader*> mPluginLoaders;
00064     QHash<QString, PluginMetaData> mPluginInfos;
00065 };
00066 
00067 }
00068 
00069 #endif

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal