48 #include <io/config-kdirwatch.h>
54 #include <QtCore/QDir>
55 #include <QtCore/QFile>
56 #include <QtCore/QSocketNotifier>
57 #include <QtCore/QTimer>
58 #include <QtCore/QCoreApplication>
71 #include <sys/ioctl.h>
74 #include <sys/utsname.h>
89 if (method == QLatin1String(
"Fam")) {
91 }
else if (method == QLatin1String(
"Stat")) {
93 }
else if (method == QLatin1String(
"QFSWatch")) {
158 delayRemove( false ),
162 timer.setObjectName(QLatin1String(
"KDirWatchPrivate::timer"));
177 availableMethods <<
"Stat";
180 rescan_timer.setObjectName(QString::fromLatin1(
"KDirWatchPrivate::rescan_timer"));
186 if (FAMOpen(&fc) ==0) {
187 availableMethods <<
"FAM";
189 sn =
new QSocketNotifier( FAMCONNECTION_GETFD(&fc),
190 QSocketNotifier::Read,
this);
191 connect( sn, SIGNAL(activated(
int)),
195 kDebug(7001) <<
"Can't use FAM (fam daemon not running?)";
200 #ifdef HAVE_SYS_INOTIFY_H
201 supports_inotify =
true;
203 m_inotify_fd = inotify_init();
205 if ( m_inotify_fd <= 0 ) {
206 kDebug(7001) <<
"Can't use Inotify, kernel doesn't support it";
207 supports_inotify =
false;
212 int major, minor, patch;
213 if (uname(&uts) < 0) {
214 supports_inotify =
false;
215 kDebug(7001) <<
"Unable to get uname";
216 }
else if (sscanf(uts.release,
"%d.%d", &major, &minor) != 2) {
217 supports_inotify =
false;
218 kDebug(7001) <<
"The version is malformed: " << uts.release;
219 }
else if(major == 2 && minor == 6) {
220 if (sscanf(uts.release,
"%d.%d.%d", &major, &minor, &patch) != 3) {
221 supports_inotify =
false;
222 kDebug() <<
"Detected 2.6 kernel but can't know more: " << uts.release;
223 }
else if (major * 1000000 + minor * 1000 + patch < 2006014 ){
224 supports_inotify =
false;
225 kDebug(7001) <<
"Can't use INotify, Linux kernel too old " << uts.release;
230 kDebug(7001) <<
"INotify available: " << supports_inotify;
231 if ( supports_inotify ) {
232 availableMethods <<
"INotify";
233 (void)fcntl(m_inotify_fd, F_SETFD, FD_CLOEXEC);
235 mSn =
new QSocketNotifier( m_inotify_fd, QSocketNotifier::Read,
this );
236 connect( mSn, SIGNAL(activated(
int)),
240 #ifdef HAVE_QFILESYSTEMWATCHER
241 availableMethods <<
"QFileSystemWatcher";
262 #ifdef HAVE_SYS_INOTIFY_H
263 if ( supports_inotify )
264 ::close( m_inotify_fd );
266 #ifdef HAVE_QFILESYSTEMWATCHER
274 #ifdef HAVE_SYS_INOTIFY_H
275 if ( !supports_inotify )
279 int offsetStartRead = 0;
281 assert( m_inotify_fd > -1 );
282 ioctl( m_inotify_fd, FIONREAD, &pending );
284 while ( pending > 0 ) {
286 const int bytesToRead = qMin( pending, (
int)
sizeof( buf ) - offsetStartRead );
288 int bytesAvailable = read( m_inotify_fd, &buf[offsetStartRead], bytesToRead );
289 pending -= bytesAvailable;
290 bytesAvailable += offsetStartRead;
293 int offsetCurrent = 0;
294 while ( bytesAvailable >= (
int)
sizeof(
struct inotify_event ) ) {
295 const struct inotify_event *
const event = (
struct inotify_event *) &buf[offsetCurrent];
296 const int eventSize =
sizeof(
struct inotify_event ) + event->len;
297 if ( bytesAvailable < eventSize ) {
301 bytesAvailable -= eventSize;
302 offsetCurrent += eventSize;
305 QByteArray cpath(event->name, event->len);
307 path = QFile::decodeName ( cpath );
319 if ( e->wd == event->wd ) {
320 const bool wasDirty = e->
dirty;
327 if( event->mask & IN_DELETE_SELF) {
328 if (s_verboseDebug) {
329 kDebug(7001) <<
"-->got deleteself signal for" << e->
path;
338 parentEntry->
dirty =
true;
342 if ( event->mask & IN_IGNORED ) {
346 if ( event->mask & (IN_CREATE|IN_MOVED_TO) ) {
347 const QString tpath = e->
path + QLatin1Char(
'/') + path;
350 if (s_verboseDebug) {
351 kDebug(7001) <<
"-->got CREATE signal for" << (tpath) <<
"sub_entry=" << sub_entry;
358 sub_entry->
dirty =
true;
363 Q_FOREACH(
Client *client, clients) {
371 if (!clients.isEmpty()) {
373 kDebug(7001).nospace() << clients.count() <<
" instance(s) monitoring the new "
374 << (isDir ?
"dir " :
"file ") << tpath;
376 e->m_pendingFileChanges.append(e->
path);
381 if (event->mask & (IN_DELETE|IN_MOVED_FROM)) {
382 const QString tpath = e->
path + QLatin1Char(
'/') + path;
383 if (s_verboseDebug) {
384 kDebug(7001) <<
"-->got DELETE signal for" << tpath;
392 KDE_struct_stat stat_buf;
397 bool isDir = S_ISDIR(stat_buf.st_mode);
411 if (event->mask & (IN_MODIFY|IN_ATTRIB)) {
413 const QString tpath = e->
path + QLatin1Char(
'/') + path;
414 if (s_verboseDebug) {
415 kDebug(7001) <<
"-->got MODIFY signal for" << (tpath);
432 e->m_pendingFileChanges.append(tpath);
434 e->
dirty = (wasDirty || (path.isEmpty() && (
event->mask & IN_ATTRIB)));
445 if (bytesAvailable > 0) {
447 memmove(buf, &buf[offsetCurrent], bytesAvailable);
448 offsetStartRead = bytesAvailable;
462 if (!sub_entry->
dirty)
464 sub_entry->
dirty =
true;
475 KDirWatch::WatchModes watchModes)
480 foreach(
Client* client, m_clients) {
495 m_clients.append(client);
502 for ( ; it != end ; ++it ) {
506 if (client->
count == 0) {
519 foreach(
Client* client, m_clients)
520 clients += client->
count;
527 return QDir::cleanPath(path + QLatin1String(
"/.."));
533 KDE_struct_stat stat_buf;
535 *isDir = S_ISDIR(stat_buf.st_mode);
536 const KDirWatch::WatchModes flag =
538 Q_FOREACH(
Client *client, this->m_clients) {
554 debug.nospace() <<
"[ Entry for " << entry.
path <<
", " << (entry.
isDir ?
"dir" :
"file");
556 debug <<
", non-existent";
562 #ifdef HAVE_SYS_INOTIFY_H
564 debug <<
" inotify_wd=" << entry.wd;
566 debug <<
", has " << entry.
m_clients.count() <<
" clients";
569 debug <<
", nonexistent subentries:";
571 debug << subEntry << subEntry->
path;
580 if (_path.isEmpty() || QDir::isRelativePath(_path)) {
586 if ( path.length() > 1 && path.endsWith( QLatin1Char(
'/' ) ) )
587 path.truncate( path.length() - 1 );
605 kDebug(7001) <<
"Global Poll Freq is now" <<
freq <<
"msec";
610 #if defined(HAVE_FAM)
612 bool KDirWatchPrivate::useFAM(Entry* e)
614 if (!use_fam)
return false;
626 addEntry(0, e->parentDirectory(), e,
true);
629 int res =FAMMonitorDirectory(&fc, QFile::encodeName(e->path),
637 kDebug(7001).nospace() <<
" Setup FAM (Req " << FAMREQUEST_GETREQNUM(&(e->fr))
638 <<
") for " << e->path;
644 addEntry(0, QFileInfo(e->path).absolutePath(), e,
true);
647 int res = FAMMonitorFile(&fc, QFile::encodeName(e->path),
656 kDebug(7001).nospace() <<
" Setup FAM (Req " << FAMREQUEST_GETREQNUM(&(e->fr))
657 <<
") for " << e->path;
669 #ifdef HAVE_SYS_INOTIFY_H
671 bool KDirWatchPrivate::useINotify( Entry* e )
678 if (!supports_inotify)
return false;
683 addEntry(0, e->parentDirectory(), e,
true);
688 int mask = IN_DELETE|IN_DELETE_SELF|IN_CREATE|IN_MOVE|IN_MOVE_SELF|IN_DONT_FOLLOW|IN_MOVED_FROM|IN_MODIFY|IN_ATTRIB;
690 if ( ( e->wd = inotify_add_watch( m_inotify_fd,
691 QFile::encodeName( e->path ), mask) ) >= 0)
693 if (s_verboseDebug) {
694 kDebug(7001) <<
"inotify successfully used for monitoring" << e->path <<
"wd=" << e->wd;
699 kDebug(7001) <<
"inotify failed for monitoring" << e->path <<
":" << strerror(errno);
703 #ifdef HAVE_QFILESYSTEMWATCHER
714 kDebug(7001) <<
"fsWatcher->addPath" << e->
path;
739 kDebug(7001) <<
" Started Polling Timer, freq " <<
freq;
743 kDebug(7001) <<
" Setup Stat (freq " << e->
freq <<
") for " << e->
path;
755 Entry* sub_entry,
bool isDir, KDirWatch::WatchModes watchModes)
760 || path == QLatin1String(
"/dev")
761 || (path.startsWith(QLatin1String(
"/dev/")) && !path.startsWith(QLatin1String(
"/dev/.")))
766 if ( path.length() > 1 && path.endsWith( QLatin1Char(
'/' ) ) )
767 path.truncate( path.length() - 1 );
773 (*it).m_entries.append(sub_entry);
774 if (s_verboseDebug) {
775 kDebug(7001) <<
"Added already watched Entry" << path
776 <<
"(for" << sub_entry->
path <<
")";
778 #ifdef HAVE_SYS_INOTIFY_H
781 int mask = IN_DELETE|IN_DELETE_SELF|IN_CREATE|IN_MOVE|IN_MOVE_SELF|IN_DONT_FOLLOW;
783 mask |= IN_MODIFY|IN_ATTRIB;
787 inotify_rm_watch (m_inotify_fd, e->wd);
788 e->wd = inotify_add_watch( m_inotify_fd, QFile::encodeName( e->
path ),
795 (*it).addClient(instance, watchModes);
796 if (s_verboseDebug) {
797 kDebug(7001) <<
"Added already watched Entry" << path
798 <<
"(now" << (*it).clientCount() <<
"clients)"
799 << QString::fromLatin1(
"[%1]").arg(instance->objectName());
807 KDE_struct_stat stat_buf;
808 bool exists = (
KDE::stat(path, &stat_buf) == 0);
812 Entry* e = &(*newIt);
815 e->
isDir = S_ISDIR(stat_buf.st_mode);
817 if (e->
isDir && !isDir) {
819 if (S_ISLNK(stat_buf.st_mode))
823 qWarning() <<
"KDirWatch:" << path <<
"is a directory. Use addDir!";
825 }
else if (!e->
isDir && isDir)
826 qWarning(
"KDirWatch: %s is a file. Use addFile!", qPrintable(path));
829 qWarning() <<
"KDirWatch:" << path <<
"is a file. You can't use recursive or "
830 "watchFiles options";
836 e->
m_ctime = stat_buf.st_mtime;
838 e->
m_ctime = stat_buf.st_ctime;
841 e->
m_nlink = stat_buf.st_nlink;
842 e->
m_ino = stat_buf.st_ino;
858 kDebug(7001).nospace() <<
"Added " << (e->
isDir ?
"Dir " :
"File ") << path
860 <<
" for " << (sub_entry ? sub_entry->
path :
QString())
861 <<
" [" << (instance ? instance->objectName() :
QString()) <<
"]";
871 QFlags<QDir::Filter> filters = QDir::NoDotAndDotDot;
875 filters |= (QDir::Dirs|QDir::Files);
876 }
else if (watchModes & KDirWatch::WatchSubDirs) {
877 filters |= QDir::Dirs;
879 filters |= QDir::Files;
882 #if defined(HAVE_SYS_INOTIFY_H)
889 filters &= ~QDir::Files;
893 QDir basedir (e->
path);
894 const QFileInfoList contents = basedir.entryInfoList(filters);
895 for (QFileInfoList::const_iterator iter = contents.constBegin();
896 iter != contents.constEnd(); ++iter)
898 const QFileInfo &fileInfo = *iter;
900 bool isDir = fileInfo.isDir() && !fileInfo.isSymLink();
902 addEntry (instance, fileInfo.absoluteFilePath(), 0, isDir,
928 bool entryAdded =
false;
929 switch (preferredMethod) {
930 #if defined(HAVE_FAM)
933 #if defined(HAVE_SYS_INOTIFY_H)
936 #if defined(HAVE_QFILESYSTEMWATCHER)
945 #if defined(HAVE_SYS_INOTIFY_H)
946 if (useINotify(e))
return;
948 #if defined(HAVE_FAM)
949 if (useFAM(e))
return;
951 #if defined(HAVE_QFILESYSTEMWATCHER)
962 FAMCancelMonitor(&fc, &(e->fr) );
963 kDebug(7001).nospace() <<
"Cancelled FAM (Req " << FAMREQUEST_GETREQNUM(&(e->fr))
964 <<
") for " << e->
path;
967 #ifdef HAVE_SYS_INOTIFY_H
969 (void) inotify_rm_watch( m_inotify_fd, e->wd );
970 if (s_verboseDebug) {
971 kDebug(7001).nospace() <<
"Cancelled INotify (fd " << m_inotify_fd <<
", "
972 << e->wd <<
") for " << e->
path;
976 #ifdef HAVE_QFILESYSTEMWATCHER
979 kDebug(7001) <<
"fsWatcher->removePath" << e->
path;
989 if (s_verboseDebug) {
990 kDebug(7001) <<
"path=" << _path <<
"sub_entry:" << sub_entry;
994 kWarning(7001) <<
"doesn't know" << _path;
1035 kDebug(7001) <<
" Stopped Polling Timer";
1039 if (s_verboseDebug) {
1040 kDebug(7001).nospace() <<
"Removed " << (e->
isDir ?
"Dir ":
"File ") << e->
path
1041 <<
" for " << (sub_entry ? sub_entry->
path :
QString())
1042 <<
" [" << (instance ? instance->objectName() :
QString()) <<
"]";
1053 int minfreq = 3600000;
1060 foreach(
Client* client, (*it).m_clients) {
1061 if (client->
instance == instance) {
1068 pathList.append((*it).path);
1070 else if ( (*it).m_mode ==
StatMode && (*it).freq < minfreq )
1071 minfreq = (*it).freq;
1074 foreach(
const QString &path, pathList)
1077 if (minfreq >
freq) {
1081 kDebug(7001) <<
"Poll Freq now" <<
freq <<
"msec";
1088 int stillWatching = 0;
1090 if (!instance || instance == client->
instance)
1093 stillWatching += client->
count;
1096 kDebug(7001) << (instance ? instance->objectName() : QString::fromLatin1(
"all"))
1097 <<
"stopped scanning" << e->
path <<
"(now"
1098 << stillWatching <<
"watchers)";
1100 if (stillWatching == 0) {
1115 int wasWatching = 0, newWatching = 0;
1118 wasWatching += client->
count;
1119 else if (!instance || instance == client->
instance) {
1121 newWatching += client->
count;
1124 if (newWatching == 0)
1127 kDebug(7001) << (instance ? instance->objectName() : QString::fromLatin1(
"all"))
1128 <<
"restarted scanning" << e->
path
1129 <<
"(now" << wasWatching+newWatching <<
"watchers)";
1134 if (wasWatching == 0) {
1136 KDE_struct_stat stat_buf;
1141 e->
m_ctime = stat_buf.st_mtime;
1143 e->
m_ctime = stat_buf.st_ctime;
1146 if (s_verboseDebug) {
1147 kDebug(7001) <<
"Setting status to Normal for" << e << e->
path;
1149 e->
m_nlink = stat_buf.st_nlink;
1150 e->
m_ino = stat_buf.st_ino;
1159 if (s_verboseDebug) {
1160 kDebug(7001) <<
"Setting status to NonExistent for" << e << e->
path;
1182 bool notify,
bool skippedToo )
1201 foreach(
Client* client, (*it).m_clients) {
1231 KDE_struct_stat stat_buf;
1238 e->
m_ctime = qMax(stat_buf.st_ctime, stat_buf.st_mtime);
1240 e->
m_ino = stat_buf.st_ino;
1241 if (s_verboseDebug) {
1242 kDebug(7001) <<
"Setting status to Normal for just created" << e << e->
path;
1250 #if 1 // for debugging the if() below
1251 if (s_verboseDebug) {
1252 struct tm* tmp = localtime(&e->
m_ctime);
1254 strftime(outstr,
sizeof(outstr),
"%T", tmp);
1256 <<
"stat_buf.st_ctime=" << stat_buf.st_ctime
1257 <<
"e->m_nlink=" << e->
m_nlink
1258 <<
"stat_buf.st_nlink=" << stat_buf.st_nlink
1259 <<
"e->m_ino=" << e->
m_ino
1260 <<
"stat_buf.st_ino=" << stat_buf.st_ino;
1265 (qMax(stat_buf.st_ctime, stat_buf.st_mtime) != e->
m_ctime ||
1266 stat_buf.st_ino != e->
m_ino ||
1267 stat_buf.st_nlink != nlink_t(e->
m_nlink)))
1273 e->
m_ctime = qMax(stat_buf.st_ctime, stat_buf.st_mtime);
1274 e->
m_nlink = stat_buf.st_nlink;
1275 if (e->
m_ino != stat_buf.st_ino) {
1280 e->
m_ino = stat_buf.st_ino;
1308 if (!fileName.isEmpty()) {
1309 if (!QDir::isRelativePath(fileName))
1313 path += QLatin1Char(
'/') + fileName;
1314 #elif defined(Q_WS_WIN)
1316 path += QDir::currentPath().left(2) + QLatin1Char(
'/') + fileName;
1321 if (s_verboseDebug) {
1346 QMetaObject::invokeMethod(c->
instance,
"setDeleted", Qt::QueuedConnection, Q_ARG(
QString, path));
1352 QMetaObject::invokeMethod(c->
instance,
"setCreated", Qt::QueuedConnection, Q_ARG(
QString, path));
1357 QMetaObject::invokeMethod(c->
instance,
"setDirty", Qt::QueuedConnection, Q_ARG(
QString, path));
1383 EntryMap::Iterator it;
1389 bool timerRunning =
timer.isActive();
1412 (*it).propagate_dirty();
1415 #ifdef HAVE_SYS_INOTIFY_H
1423 if (!entry->
isValid())
continue;
1427 kDebug(7001) <<
"scanEntry for" << entry->
path <<
"says" << ev;
1430 #ifdef HAVE_SYS_INOTIFY_H
1434 kDebug(7001) <<
"scanEntry says" << entry->
path <<
"was deleted";
1438 kDebug(7001) <<
"scanEntry says" << entry->
path <<
"was created. wd=" << entry->wd;
1439 if (entry->wd < 0) {
1440 cList.append(entry);
1457 #ifdef HAVE_SYS_INOTIFY_H
1463 QStringList pendingFileChanges = entry->m_pendingFileChanges;
1464 pendingFileChanges.removeDuplicates();
1465 Q_FOREACH(
const QString &changedFilename, pendingFileChanges) {
1466 if (s_verboseDebug) {
1467 kDebug(7001) <<
"processing pending file change for" << changedFilename;
1471 entry->m_pendingFileChanges.clear();
1483 #ifdef HAVE_SYS_INOTIFY_H
1485 Q_FOREACH(
Entry* e, cList)
1495 if ( *filename ==
'.') {
1496 if (strncmp(filename,
".X.err", 6) == 0)
return true;
1497 if (strncmp(filename,
".xsession-errors", 16) == 0)
return true;
1500 if (strncmp(filename,
".fonts.cache", 12) == 0)
return true;
1515 while(use_fam && FAMPending(&fc)) {
1516 if (FAMNextEvent(&fc, &fe) == -1) {
1517 kWarning(7001) <<
"FAM connection problem, switching to polling.";
1524 if ((*it).m_mode ==
FAMMode && (*it).m_clients.count()>0) {
1536 void KDirWatchPrivate::checkFAMEvent(FAMEvent* fe)
1541 if ((fe->code == FAMExists) ||
1542 (fe->code == FAMEndExist) ||
1543 (fe->code == FAMAcknowledge))
return;
1551 if (FAMREQUEST_GETREQNUM(&( (*it).fr )) ==
1552 FAMREQUEST_GETREQNUM(&(fe->fr)) ) {
1559 if (s_verboseDebug) {
1560 kDebug(7001) <<
"Processing FAM event ("
1561 << ((fe->code == FAMChanged) ?
"FAMChanged" :
1562 (fe->code == FAMDeleted) ?
"FAMDeleted" :
1563 (fe->code == FAMStartExecuting) ?
"FAMStartExecuting" :
1564 (fe->code == FAMStopExecuting) ?
"FAMStopExecuting" :
1565 (fe->code == FAMCreated) ?
"FAMCreated" :
1566 (fe->code == FAMMoved) ?
"FAMMoved" :
1567 (fe->code == FAMAcknowledge) ?
"FAMAcknowledge" :
1568 (fe->code == FAMExists) ?
"FAMExists" :
1569 (fe->code == FAMEndExist) ?
"FAMEndExist" :
"Unknown Code")
1570 <<
", " << fe->filename
1571 <<
", Req " << FAMREQUEST_GETREQNUM(&(fe->fr)) <<
") e=" << e;
1581 kDebug(7001) <<
"FAM event for nonExistent entry " << e->path;
1594 if (!QDir::isRelativePath(QFile::decodeName(fe->filename))) {
1595 FAMCancelMonitor(&fc, &(e->fr) );
1596 kDebug(7001) <<
"Cancelled FAMReq"
1597 << FAMREQUEST_GETREQNUM(&(e->fr))
1598 <<
"for" << e->path;
1603 Entry* parentEntry =
entry(e->parentDirectory());
1605 parentEntry->
dirty =
true;
1607 addEntry(0, e->parentDirectory(), e,
true );
1618 QString tpath(e->path + QLatin1Char(
'/') + QFile::decodeName(fe->filename));
1621 Entry* sub_entry = e->findSubEntry(tpath);
1625 sub_entry->dirty =
true;
1627 }
else if (e->isDir && !e->m_clients.empty()) {
1629 const QList<Client *> clients = e->clientsForFileOrDir(tpath, &isDir);
1630 Q_FOREACH(Client *client, clients) {
1631 addEntry (client->instance, tpath, 0, isDir,
1635 if (!clients.isEmpty()) {
1638 kDebug(7001).nospace() << clients.count() <<
" instance(s) monitoring the new "
1639 << (isDir ?
"dir " :
"file ") << tpath;
1651 kWarning (7001) <<
"Fam event received but FAM is not supported";
1658 EntryMap::Iterator it;
1660 kDebug(7001) <<
"Entries watched:";
1662 kDebug(7001) <<
" None.";
1668 kDebug(7001) <<
" " << *e;
1676 if (!pending.isEmpty()) pending =
" (pending: " + pending +
')';
1677 pending =
", stopped" + pending;
1680 <<
" (" << c->
count <<
" times)" << pending;
1683 kDebug(7001) <<
" dependent entries:";
1686 if (s_verboseDebug) {
1695 #ifdef HAVE_QFILESYSTEMWATCHER
1707 kDebug(7001) <<
"scanEntry for" << e->
path <<
"says" << ev;
1714 addEntry(0, QFileInfo(e->
path).absolutePath(), e,
true);
1718 }
else if (e->
isDir) {
1730 kWarning (7001) <<
"QFileSystemWatcher event received but QFileSystemWatcher is not supported";
1732 #endif // HAVE_QFILESYSTEMWATCHER
1741 return s_pKDirWatchSelf;
1747 return s_pKDirWatchSelf.exists();
1752 s_pKDirWatchSelf->deleteQFSWatcher();
1758 static int nameCounter = 0;
1761 setObjectName(QString::fromLatin1(
"KDirWatch-%1").arg(nameCounter) );
1767 static bool cleanupRegistered =
false;
1768 if (!cleanupRegistered) {
1769 cleanupRegistered =
true;
1788 if (d) d->
addEntry(
this, _path, 0,
true, watchModes);
1796 d->
addEntry(
this, _path, 0,
false);
1884 kDebug(7001) <<
"KDirWatch not used";
1893 kDebug(7001) << objectName() <<
"emitting created" << _file;
1900 emit
dirty( _file );
1905 kDebug(7001) << objectName() <<
"emitting deleted" << _file;
1915 #include "kdirwatch.moc"
1916 #include "kdirwatch_p.moc"