kdirnotify.h
/* This file is part of the KDE project
Copyright (C) 2000 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kdirnotify_h__
#define __kdirnotify_h__
#include <dcopobject.h>
#include <kurl.h>
class KIO_EXPORT KDirNotify : public DCOPObject
{
K_DCOP
protected:
KDirNotify();
virtual ~KDirNotify() {}
public:
k_dcop:
virtual ASYNC FilesAdded( const KURL & directory ) = 0;
virtual ASYNC FilesRemoved( const KURL::List & fileList ) = 0;
virtual ASYNC FilesChanged( const KURL::List & fileList ) = 0;
virtual ASYNC FileRenamed( const KURL &src, const KURL &dst );
// WARNING: When adding new methods, make sure to update
// kdirnotify_stub.cpp and kdirnotify_stub.h manually.
// They are not automatically generated since they contain
// handcoded changes.
private:
// @internal
static int s_serial;
protected:
virtual void virtual_hook( int id, void* data );
};
#endif
KDirNotify
An abstract class that receives notifications of added and removed files in any directory, local or remote.
Definition: kdirnotify.h:32

KDE Home | KDE Accessibility Home | Description of Access Keys