• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIO

Signals | Public Member Functions | Static Public Member Functions

OrgKdeKDirNotifyInterface Class Reference

Proxy class for interface org.kde.KDirNotify. More...

#include <KDirNotify>

Inheritance diagram for OrgKdeKDirNotifyInterface:
Inheritance graph
[legend]

List of all members.

Signals

void enteredDirectory (const QString &url)
void FileMoved (const QString &src, const QString &dst)
void FileRenamed (const QString &src, const QString &dst)
void FilesAdded (const QString &directory)
void FilesChanged (const QStringList &fileList)
void FilesRemoved (const QStringList &fileList)
void leftDirectory (const QString &url)

Public Member Functions

 OrgKdeKDirNotifyInterface (const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
 ~OrgKdeKDirNotifyInterface ()

Static Public Member Functions

static void emitEnteredDirectory (const QString &url)
static void emitFileMoved (const QString &src, const QString &dst)
static void emitFileRenamed (const QString &src, const QString &dst)
static void emitFilesAdded (const QString &directory)
static void emitFilesChanged (const QStringList &fileList)
static void emitFilesRemoved (const QStringList &fileList)
static void emitLeftDirectory (const QString &url)
static const char * staticInterfaceName ()

Detailed Description

Proxy class for interface org.kde.KDirNotify.

KDirNotify can be used to inform KIO about changes in real or virtual file systems. Classes like KDirModel connect to the signals as in the following example to be able to keep caches up-to-date.

 kdirnotify = new org::kde::KDirNotify(QString(), QString(), QDBusConnection::sessionBus(), this);
 connect(kdirnotify, SIGNAL(FileRenamed(QString,QString)), SLOT(slotFileRenamed(QString,QString)));
 connect(kdirnotify, SIGNAL(FilesAdded(QString)), SLOT(slotFilesAdded(QString)));
 connect(kdirnotify, SIGNAL(FilesChanged(QStringList)), SLOT(slotFilesChanged(QStringList)));
 connect(kdirnotify, SIGNAL(FilesRemoved(QStringList)), SLOT(slotFilesRemoved(QStringList)));

Especially noteworthy are the empty strings for both service and path. That way the client will connect to signals emitted by any application.

The second usage is to actually emit the signals. For that emitFileRenamed() and friends are to be used.

Definition at line 47 of file kdirnotify.h.


Constructor & Destructor Documentation

OrgKdeKDirNotifyInterface::OrgKdeKDirNotifyInterface ( const QString &  service,
const QString &  path,
const QDBusConnection &  connection,
QObject *  parent = 0 
)

Create a new KDirNotify interface.

Parameters:
serviceThe service whose signals one wants to listed to. Use an empty string to connect to all services/applications.
pathThe path to the D-Bus object whose signals one wants to listed to. Use an empty string to connect to signals from all objects.
connectionTypically QDBusConnection::sessionBus().
parentThe parent QObject.

Definition at line 18 of file kdirnotify.cpp.

OrgKdeKDirNotifyInterface::~OrgKdeKDirNotifyInterface ( )

Destructor.

Definition at line 23 of file kdirnotify.cpp.


Member Function Documentation

void OrgKdeKDirNotifyInterface::emitEnteredDirectory ( const QString &  url) [static]

Definition at line 60 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitFileMoved ( const QString &  src,
const QString &  dst 
) [static]

Definition at line 40 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitFileRenamed ( const QString &  src,
const QString &  dst 
) [static]

Definition at line 35 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitFilesAdded ( const QString &  directory) [static]

Definition at line 45 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitFilesChanged ( const QStringList &  fileList) [static]

Definition at line 50 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitFilesRemoved ( const QStringList &  fileList) [static]

Definition at line 55 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::emitLeftDirectory ( const QString &  url) [static]

Definition at line 65 of file kdirnotify.cpp.

void OrgKdeKDirNotifyInterface::enteredDirectory ( const QString &  url) [signal]
void OrgKdeKDirNotifyInterface::FileMoved ( const QString &  src,
const QString &  dst 
) [signal]
void OrgKdeKDirNotifyInterface::FileRenamed ( const QString &  src,
const QString &  dst 
) [signal]
void OrgKdeKDirNotifyInterface::FilesAdded ( const QString &  directory) [signal]
void OrgKdeKDirNotifyInterface::FilesChanged ( const QStringList &  fileList) [signal]
void OrgKdeKDirNotifyInterface::FilesRemoved ( const QStringList &  fileList) [signal]
void OrgKdeKDirNotifyInterface::leftDirectory ( const QString &  url) [signal]
static const char* OrgKdeKDirNotifyInterface::staticInterfaceName ( ) [inline, static]

Definition at line 51 of file kdirnotify.h.


The documentation for this class was generated from the following files:
  • kdirnotify.h
  • kdirnotify.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal