mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00

for compatibilty reasons automoc4 support is not removed but it shall be in the future. automoc4 has not been maintained for a while (last commit is from 2011) and the stable release is from 2009. CMake version >= 2.8.6 provides the functionality for mocking so I see no reason to not make use of it.
72 lines
2.2 KiB
C++
72 lines
2.2 KiB
C++
/*
|
|
* This file was generated by dbusxml2cpp version 0.6
|
|
* Command line was: dbusxml2cpp -m -p kdirnotify -- org.kde.KDirNotify.xml
|
|
*
|
|
* dbusxml2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
|
|
*
|
|
* This is an auto-generated file.
|
|
* This file may have been hand-edited. Look for HAND-EDIT comments
|
|
* before re-generating it.
|
|
*/
|
|
|
|
#include "kdirnotify.h"
|
|
#include <kdbusconnectionpool.h> // HAND-EDIT
|
|
|
|
/*
|
|
* Implementation of interface class OrgKdeKDirNotifyInterface
|
|
*/
|
|
|
|
OrgKdeKDirNotifyInterface::OrgKdeKDirNotifyInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
|
|
: QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
|
|
{
|
|
}
|
|
|
|
OrgKdeKDirNotifyInterface::~OrgKdeKDirNotifyInterface()
|
|
{
|
|
}
|
|
|
|
static void emitSignal(const QString &signalName, const QVariantList &args)
|
|
{
|
|
QDBusMessage message =
|
|
QDBusMessage::createSignal("/", QLatin1String(org::kde::KDirNotify::staticInterfaceName()), signalName);
|
|
message.setArguments(args);
|
|
// HAND-EDIT
|
|
KDBusConnectionPool::threadConnection().send(message);
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitFileRenamed(const QString &src, const QString &dst)
|
|
{
|
|
emitSignal(QLatin1String("FileRenamed"), QVariantList() << src << dst);
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitFileMoved(const QString &src, const QString &dst)
|
|
{
|
|
emitSignal(QLatin1String("FileMoved"), QVariantList() << src << dst);
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitFilesAdded(const QString &directory)
|
|
{
|
|
emitSignal(QLatin1String("FilesAdded"), QVariantList() << directory);
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitFilesChanged(const QStringList &fileList)
|
|
{
|
|
emitSignal(QLatin1String("FilesChanged"), QVariantList() << QVariant(fileList));
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitFilesRemoved(const QStringList &fileList)
|
|
{
|
|
emitSignal(QLatin1String("FilesRemoved"), QVariantList() << QVariant(fileList));
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitEnteredDirectory(const QString &url)
|
|
{
|
|
emitSignal(QLatin1String("enteredDirectory"), QVariantList() << url);
|
|
}
|
|
|
|
void OrgKdeKDirNotifyInterface::emitLeftDirectory(const QString &url)
|
|
{
|
|
emitSignal(QLatin1String("leftDirectory"), QVariantList() << url);
|
|
}
|
|
|
|
#include "moc_kdirnotify.cpp"
|