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.

kctimefactory.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_ctime_factory_h__
  16. #define __k_ctime_factory_h__
  17. #include <tdesycocafactory.h>
  18. #include <tqdict.h>
  19. /**
  20. * Service group factory for building tdesycoca
  21. * @internal
  22. */
  23. class KCTimeInfo : public KSycocaFactory
  24. {
  25. K_SYCOCAFACTORY( KST_CTimeInfo )
  26. public:
  27. /**
  28. * Create factory
  29. */
  30. KCTimeInfo();
  31. virtual ~KCTimeInfo();
  32. /**
  33. * Write out header information
  34. */
  35. virtual void saveHeader(TQDataStream &str);
  36. /**
  37. * Write out data
  38. */
  39. virtual void save(TQDataStream &str);
  40. KSycocaEntry * createEntry(const TQString &, const char *) { return 0; }
  41. KSycocaEntry * createEntry(int) { return 0; }
  42. void addCTime(const TQString &path, TQ_UINT32 ctime);
  43. TQ_UINT32 ctime(const TQString &path);
  44. void fillCTimeDict(TQDict<TQ_UINT32> &dict);
  45. protected:
  46. TQDict<TQ_UINT32> ctimeDict;
  47. int m_dictOffset;
  48. };
  49. #endif