You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dp4-uos/example/service/qtdbushook.h

28 lines
583 B

// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef QTDBUSHOOK_H
#define QTDBUSHOOK_H
#include "servicebase.h"
typedef QMap<QString, ServiceBase *> ServiceObjectMap;
class QTDbusHook
{
public:
explicit QTDbusHook();
bool getServiceObject(
QString name, QString path, ServiceBase **service, bool &isSubPath, QString &realPath);
bool setServiceObject(ServiceBase *obj);
static QTDbusHook *instance();
private:
ServiceObjectMap m_serviceMap;
};
#endif // QTDBUSHOOK_H