00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KABC_FORMATFACTORY_H
00022 #define KABC_FORMATFACTORY_H
00023
00024 #include <QtCore/QHash>
00025 #include <QtCore/QString>
00026
00027 #include <kconfig.h>
00028
00029 #include "format.h"
00030
00031 namespace KABC {
00032
00038 struct FormatInfo
00039 {
00045 bool isNull() const { return library.isEmpty(); }
00046
00055 QString library;
00056
00065 QString nameLabel;
00066
00075 QString descriptionLabel;
00076 };
00077
00094 class KABC_EXPORT_DEPRECATED FormatFactory
00095 {
00096 public:
00100 ~FormatFactory();
00101
00105 static FormatFactory *self();
00106
00115 Format *format( const QString &type );
00116
00120 QStringList formats();
00121
00129 FormatInfo info( const QString &type ) const;
00130
00131 protected:
00132 FormatFactory();
00133
00134 private:
00135 class Private;
00136 Private *const d;
00137 };
00138
00139 }
00140 #endif