25 #ifndef AKREGATOR_BACKEND_STORAGEFACTORYREGISTRY_H
26 #define AKREGATOR_BACKEND_STORAGEFACTORYREGISTRY_H
28 #include "akregator_export.h"
38 class AKREGATOR_EXPORT StorageFactoryRegistry
41 static StorageFactoryRegistry* self();
43 ~StorageFactoryRegistry();
45 bool registerFactory(StorageFactory* factory, const TQString& typestr);
46 void unregisterFactory( const TQString& typestr);
47 StorageFactory* getFactory( const TQString& typestr);
48 bool containsFactory( const TQString& typestr) const;
49 TQStringList list() const;
53 static StorageFactoryRegistry* m_instance;
55 StorageFactoryRegistry();
56 StorageFactoryRegistry( const StorageFactoryRegistry&);
57 StorageFactoryRegistry& operator=( const StorageFactoryRegistry&);
59 class StorageFactoryRegistryPrivate;
60 StorageFactoryRegistryPrivate* d;
|