/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* Author: Christian Hubinger , (C) 2001-2004 */ #ifndef KMFKMFPROTOCOLLIBRARY_H #define KMFKMFPROTOCOLLIBRARY_H #include #include #include #include #include namespace KMF { class KMFError; class KMFProtocol; class KMFProtocolCategory; /** @author Christian Hubinger */ class KMFProtocolLibrary : public TQObject { TQ_OBJECT /** Static Stuff **/ public: static KMFProtocolLibrary* instance(); private: static KMFProtocolLibrary* m_instance; /** End Static stuff **/ public: ~KMFProtocolLibrary(); public: // TQPtrList* protocolLibrary(); KMFError* saveProtocolLibrary(); void forceProtocolLibraryReload(); void loadProtocolDefinitionsFromURL( const KURL&, KMFError* err ); TQValueList& protocolCategories(); TQValueList& allProtocols(); KMFProtocolCategory* findCategory( const TQUuid& uuid ); KMFProtocol* findProtocolByName( const TQString& name ); KMFProtocol* findProtocolByUuid( const TQUuid& uuid ); KMFProtocol* findEquivalentProtocol( KMFProtocol* compare ); private: TQValueList< KMFProtocolCategory* > m_protocolCategories; TQValueList< KMFProtocol* > m_protocols; private: KMFProtocolLibrary( TQObject* parent, const char* name ); KMFProtocolLibrary(); bool m_libraryLoaded; }; } #endif