kdirwatchtest.h 732 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. This file is part of the KDE libraries
  3. SPDX-FileCopyrightText: 1998 Sven Radej <sven@lisa.exp.univie.ac.at>
  4. SPDX-License-Identifier: LGPL-2.0-only
  5. */
  6. #ifndef _KDIRWATCHTEST_H_
  7. #define _KDIRWATCHTEST_H_
  8. #include <QObject>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include "kdirwatch.h"
  12. class myTest : public QObject
  13. {
  14. Q_OBJECT
  15. public:
  16. myTest()
  17. {
  18. }
  19. public Q_SLOTS:
  20. void dirty(const QString &a)
  21. {
  22. printf("Dirty: %s\n", a.toLocal8Bit().constData());
  23. }
  24. void created(const QString &f)
  25. {
  26. printf("Created: %s\n", f.toLocal8Bit().constData());
  27. }
  28. void deleted(const QString &f)
  29. {
  30. printf("Deleted: %s\n", f.toLocal8Bit().constData());
  31. }
  32. };
  33. #endif