Loading...
Searching...
No Matches
lomiridbusvirtualobject.h
/*
* Copyright (C) 2014 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOMIRIDBUSVIRTUALOBJECT_H
#define LOMIRIDBUSVIRTUALOBJECT_H
#include <QDBusConnection>
#include <QDBusVirtualObject>
#include <QObject>
class Q_DECL_EXPORT LomiriDBusVirtualObject : public QDBusVirtualObject
{
Q_OBJECT
public:
explicit LomiriDBusVirtualObject(const QString &path, const QString &service = QString(), bool async = true, QObject *parent = 0);
~LomiriDBusVirtualObject();
QDBusConnection connection() const;
QString path() const;
protected:
void notifyPropertyChanged(const QString& interface, const QString& node, const QString& propertyName, const QVariant &value);
private Q_SLOTS:
void registerObject();
private:
QDBusConnection m_connection;
QString m_path;
QString m_service;
};
#endif // LOMIRIDBUSVIRTUALOBJECT_H