| 1 |
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 4 |
|
| 5 |
#include "ControlCenterAdaptor.h" |
| 6 |
#include <QtCore/QMetaObject> |
| 7 |
#include <QtCore/QByteArray> |
| 8 |
#include <QtCore/QList> |
| 9 |
#include <QtCore/QMap> |
| 10 |
#include <QtCore/QString> |
| 11 |
#include <QtCore/QStringList> |
| 12 |
#include <QtCore/QVariant> |
| 13 |
|
| 14 |
/* |
| 15 |
* Implementation of adaptor class ControlCenterAdaptor |
| 16 |
*/ |
| 17 |
|
| 18 |
ControlCenterAdaptor::ControlCenterAdaptor(QObject *parent) |
| 19 |
: QDBusAbstractAdaptor(parent) |
| 20 |
{ |
| 21 |
// constructor |
| 22 |
setAutoRelaySignals(true); |
| 23 |
} |
| 24 |
|
| 25 |
ControlCenterAdaptor::~ControlCenterAdaptor() |
| 26 |
{ |
| 27 |
// destructor |
| 28 |
} |
| 29 |
|
| 30 |
void ControlCenterAdaptor::ShowPage(const QString &url) |
| 31 |
{ |
| 32 |
// handle method call org.deepin.dde.ControlCenter1.ShowPage |
| 33 |
QMetaObject::invokeMethod(parent(), "ShowPage", Q_ARG(QString, url)); |
| 34 |
} |
| 35 |
|