| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
//#include "cscheduledbusstub.h" |
| 6 |
|
| 7 |
//#include "cscheduledbus.h" |
| 8 |
|
| 9 |
//#include <QObject> |
| 10 |
|
| 11 |
//qint64 CreateJob_stub(void *obj, const ScheduleDataInfo &info) |
| 12 |
//{ |
| 13 |
// Q_UNUSED(obj) |
| 14 |
// Q_UNUSED(info) |
| 15 |
// return 1; |
| 16 |
//} |
| 17 |
|
| 18 |
//bool UpdateJob_stub(void *obj, const ScheduleDataInfo &info) |
| 19 |
//{ |
| 20 |
// Q_UNUSED(obj) |
| 21 |
// Q_UNUSED(info) |
| 22 |
// return true; |
| 23 |
//} |
| 24 |
|
| 25 |
//bool DeleteJob_stub(void *obj, qint64 jobId) |
| 26 |
//{ |
| 27 |
// Q_UNUSED(obj) |
| 28 |
// Q_UNUSED(jobId) |
| 29 |
// return true; |
| 30 |
//} |
| 31 |
|
| 32 |
//bool GetJob_stub(void *obj, qint64 jobId, ScheduleDataInfo &out) |
| 33 |
//{ |
| 34 |
// Q_UNUSED(obj) |
| 35 |
// Q_UNUSED(jobId) |
| 36 |
// Q_UNUSED(out) |
| 37 |
// return true; |
| 38 |
//} |
| 39 |
|
| 40 |
//bool QueryJobs_stub(void *obj, QString key, QDateTime starttime, QDateTime endtime, QMap<QDate, QVector<ScheduleDataInfo>> &out) |
| 41 |
//{ |
| 42 |
// Q_UNUSED(obj) |
| 43 |
// Q_UNUSED(key) |
| 44 |
// Q_UNUSED(starttime) |
| 45 |
// Q_UNUSED(endtime) |
| 46 |
// Q_UNUSED(out) |
| 47 |
// return true; |
| 48 |
//} |
| 49 |
|
| 50 |
//void cscheduleDbusStub(Stub &stub) |
| 51 |
//{ |
| 52 |
// stub.set(ADDR(CScheduleDBus, CreateJob), CreateJob_stub); |
| 53 |
// stub.set(ADDR(CScheduleDBus, UpdateJob), UpdateJob_stub); |
| 54 |
// stub.set(ADDR(CScheduleDBus, DeleteJob), DeleteJob_stub); |
| 55 |
// stub.set(ADDR(CScheduleDBus, GetJob), GetJob_stub); |
| 56 |
// stub.set((bool (CScheduleDBus::*)(QString, QDateTime, QDateTime, QMap<QDate, QVector<ScheduleDataInfo>> &))ADDR(CScheduleDBus, QueryJobs), QueryJobs_stub); |
| 57 |
//} |