Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
41 lines
732 B
C++
41 lines
732 B
C++
/*
|
|
This file is part of the KDE libraries
|
|
|
|
SPDX-FileCopyrightText: 1998 Sven Radej <sven@lisa.exp.univie.ac.at>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-only
|
|
*/
|
|
|
|
#ifndef _KDIRWATCHTEST_H_
|
|
#define _KDIRWATCHTEST_H_
|
|
|
|
#include <QObject>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "kdirwatch.h"
|
|
|
|
class myTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
myTest()
|
|
{
|
|
}
|
|
public Q_SLOTS:
|
|
void dirty(const QString &a)
|
|
{
|
|
printf("Dirty: %s\n", a.toLocal8Bit().constData());
|
|
}
|
|
void created(const QString &f)
|
|
{
|
|
printf("Created: %s\n", f.toLocal8Bit().constData());
|
|
}
|
|
void deleted(const QString &f)
|
|
{
|
|
printf("Deleted: %s\n", f.toLocal8Bit().constData());
|
|
}
|
|
};
|
|
|
|
#endif
|