kdirwatchtest_gui.h 856 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // krazy:excludeall=qclasses
  2. /*
  3. SPDX-FileCopyrightText: 2006 Dirk Stoecker <kde@dstoecker.de>
  4. SPDX-License-Identifier: LGPL-2.0-only
  5. */
  6. #ifndef KDIRWATCHTEST_GUI_H
  7. #define KDIRWATCHTEST_GUI_H
  8. #include <QDialog>
  9. class QTextBrowser;
  10. class KDirWatchTest_GUI : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. KDirWatchTest_GUI();
  15. protected Q_SLOTS:
  16. void slotNewClicked();
  17. void slotDeleteClicked();
  18. void slotDir1(const QString &path);
  19. void slotDir2(const QString &path);
  20. void slotDir3(const QString &path);
  21. void slotDirty(const QString &);
  22. void slotCreated(const QString &);
  23. void slotDeleted(const QString &);
  24. private:
  25. class QLineEdit *d;
  26. QString file, dir;
  27. class KDirWatch *w1;
  28. class KDirWatch *w2;
  29. class KDirWatch *w3;
  30. class QLineEdit *l1, *l2, *l3;
  31. QTextBrowser *m_eventBrowser;
  32. };
  33. #endif