File indexing completed on 2024-09-15 09:20:23
0001 /* 0002 This file is part of the KDE libraries 0003 0004 SPDX-FileCopyrightText: 1998 Sven Radej <sven@lisa.exp.univie.ac.at> 0005 0006 SPDX-License-Identifier: LGPL-2.0-only 0007 */ 0008 0009 #ifndef _KDIRWATCHTEST_H_ 0010 #define _KDIRWATCHTEST_H_ 0011 0012 #include <QObject> 0013 #include <stdio.h> 0014 #include <stdlib.h> 0015 0016 #include "kdirwatch.h" 0017 0018 class myTest : public QObject 0019 { 0020 Q_OBJECT 0021 public: 0022 myTest() 0023 { 0024 } 0025 public Q_SLOTS: 0026 void dirty(const QString &a) 0027 { 0028 printf("Dirty: %s\n", a.toLocal8Bit().constData()); 0029 } 0030 void created(const QString &f) 0031 { 0032 printf("Created: %s\n", f.toLocal8Bit().constData()); 0033 } 0034 void deleted(const QString &f) 0035 { 0036 printf("Deleted: %s\n", f.toLocal8Bit().constData()); 0037 } 0038 }; 0039 0040 #endif