TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kbuildprotocolinfofactory.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* This file is part of the KDE project
  2. Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License version 2as published by the Free Software Foundation.
  6. This library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9. Library General Public License for more details.
  10. You should have received a copy of the GNU Library General Public License
  11. along with this library; see the file COPYING.LIB. If not, write to
  12. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  13. Boston, MA 02110-1301, USA.
  14. */
  15. #ifndef __k_build_protocol_info_factory_h__
  16. #define __k_build_protocol_info_factory_h__
  17. #include <kprotocolinfofactory.h>
  18. #include <assert.h>
  19. #include <tqstringlist.h>
  20. /**
  21. * Protocol Info factory for building tdesycoca
  22. * @internal
  23. */
  24. class KBuildProtocolInfoFactory : public KProtocolInfoFactory
  25. {
  26. public:
  27. /**
  28. * Create factory
  29. */
  30. KBuildProtocolInfoFactory();
  31. virtual ~KBuildProtocolInfoFactory();
  32. /**
  33. * Create new entry.
  34. */
  35. virtual KProtocolInfo* createEntry(const TQString &, const char *);
  36. virtual KProtocolInfo* createEntry(int) { assert(0); return 0L; }
  37. /**
  38. * Add a new entry
  39. */
  40. virtual void addEntry( KSycocaEntry *newEntry, const char *resource );
  41. /**
  42. * Returns all resource types for this service factory
  43. */
  44. static TQStringList resourceTypes();
  45. };
  46. #endif