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

KIO

Signals | Public Member Functions | Static Public Member Functions | List of all members
OrgKdeKDirNotifyInterface Class Reference

#include <KDirNotify>

Inheritance diagram for OrgKdeKDirNotifyInterface:
Inheritance graph
[legend]

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(), or KDBusConnectionPool::threadConnection() in multithreaded apps.
parentThe parent QObject.

Definition at line 19 of file kdirnotify.cpp.

OrgKdeKDirNotifyInterface::~OrgKdeKDirNotifyInterface ( )

Destructor.

Definition at line 24 of file kdirnotify.cpp.

Member Function Documentation

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

Definition at line 62 of file kdirnotify.cpp.

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

Definition at line 42 of file kdirnotify.cpp.

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

Definition at line 37 of file kdirnotify.cpp.

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

Definition at line 47 of file kdirnotify.cpp.

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

Definition at line 52 of file kdirnotify.cpp.

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

Definition at line 57 of file kdirnotify.cpp.

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

Definition at line 67 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 ( )
inlinestatic

Definition at line 51 of file kdirnotify.h.


The documentation for this class was generated from the following files:
  • kdirnotify.h
  • kdirnotify.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal