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.

kresourcelist.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* This file is part of the KDE libraries
  2. * Copyright (C) 1999 David Faure <faure@kde.org>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License version 2 as published by the Free Software Foundation;
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Library General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Library General Public License
  14. * along with this library; see the file COPYING.LIB. If not, write to
  15. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. * Boston, MA 02110-1301, USA.
  17. **/
  18. #ifndef __kresourcelist_h__
  19. #define __kresourcelist_h__
  20. #include <tqvaluelist.h>
  21. #include <tqstring.h>
  22. #include <tqregexp.h>
  23. class TQDataStream;
  24. class KSycocaEntry;
  25. struct KSycocaResource
  26. {
  27. TQString resource;
  28. TQString extension;
  29. };
  30. class KSycocaResourceList : public TQValueList<KSycocaResource>
  31. {
  32. public:
  33. KSycocaResourceList() { };
  34. void add(const TQString &resource, const TQString &filter)
  35. {
  36. KSycocaResource res;
  37. res.resource = resource;
  38. res.extension = filter.mid(1);
  39. append(res);
  40. }
  41. };
  42. #endif