dde-dock/plugins/system-tray/dbus/sni/statusnotifierwatcheradapter.cpp
listenerri 68a4332ad1 feet(plugin): StatusNotifierItem system tray protocol support
Change-Id: I3b879b052e46f2eda758085dfb4701d23923d445
2018-10-13 13:30:42 +08:00

66 lines
2.0 KiB
C++

/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp watcher-inter.xml -a statusnotifierwatcheradapter -p statusnotifierwatcherproxy
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "statusnotifierwatcheradapter.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class StatusNotifierWatcherAdaptor
*/
StatusNotifierWatcherAdaptor::StatusNotifierWatcherAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
StatusNotifierWatcherAdaptor::~StatusNotifierWatcherAdaptor()
{
// destructor
}
bool StatusNotifierWatcherAdaptor::isStatusNotifierHostRegistered() const
{
// get the value of property IsStatusNotifierHostRegistered
return qvariant_cast< bool >(parent()->property("IsStatusNotifierHostRegistered"));
}
int StatusNotifierWatcherAdaptor::protocolVersion() const
{
// get the value of property ProtocolVersion
return qvariant_cast< int >(parent()->property("ProtocolVersion"));
}
QStringList StatusNotifierWatcherAdaptor::registeredStatusNotifierItems() const
{
// get the value of property RegisteredStatusNotifierItems
return qvariant_cast< QStringList >(parent()->property("RegisteredStatusNotifierItems"));
}
void StatusNotifierWatcherAdaptor::RegisterStatusNotifierHost(const QString &service)
{
// handle method call org.kde.StatusNotifierWatcher.RegisterStatusNotifierHost
QMetaObject::invokeMethod(parent(), "RegisterStatusNotifierHost", Q_ARG(QString, service));
}
void StatusNotifierWatcherAdaptor::RegisterStatusNotifierItem(const QString &service)
{
// handle method call org.kde.StatusNotifierWatcher.RegisterStatusNotifierItem
QMetaObject::invokeMethod(parent(), "RegisterStatusNotifierItem", Q_ARG(QString, service));
}