mirror of
https://github.com/QuasarApp/DoctorPill.git
synced 2025-05-15 02:49:46 +00:00
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//#
|
|
//# Copyright (C) 2021-2022 QuasarApp.
|
|
//# Distributed under the GPLv3 software license, see the accompanying
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
//# of this license document, but changing it is not allowed.
|
|
//#
|
|
|
|
|
|
#include "DoctorPillCore/doctor.h"
|
|
#include "DoctorPillCore/ipill.h"
|
|
#include "DoctorPillCore/doctortest.h"
|
|
|
|
#include "DoctorPillGui/doctormodel.h"
|
|
|
|
inline void initDoctorPillResources() {
|
|
Q_INIT_RESOURCE(DoctorPill);
|
|
}
|
|
|
|
class QQmlApplicationEngine;
|
|
class DoctorModel;
|
|
|
|
/**
|
|
* @brief DP This is base name space of the DoctorPill(DP) library. Please if you use the gui application and gui models then invoke the DP::init method before use this library.
|
|
*/
|
|
namespace DP {
|
|
|
|
/**
|
|
* @brief init This function initialize the qml gui classes of the DoctorPill library.
|
|
* @note if you do not use GUI then this function do nothing.
|
|
* @param engine This is qml engine pointer if this pointer is invalid then finction return false.
|
|
* @param customModel This is a custom c++ nodel of qml view. IF this option sets to nullptr then doctorpill will use default model.
|
|
* @return return true if the library initialized successful else false.
|
|
*
|
|
* @see DoctorModel
|
|
*/
|
|
bool DOCTOR_PILL_EXPORT init(QQmlApplicationEngine *engine);
|
|
|
|
}
|