4
1
mirror of https://github.com/QuasarApp/DoctorPill.git synced 2025-05-10 00:19:46 +00:00

58 lines
1.6 KiB
C
Raw Normal View History

2022-01-14 19:55:51 +03:00
//#
//# 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.
//#
2022-01-18 16:21:05 +03:00
#ifndef DOCTOR_PILL_H
#define DOCTOR_PILL_H
2022-01-14 19:55:51 +03:00
#include "DoctorPillCore/doctor.h"
#include "DoctorPillCore/doctortest.h"
2022-01-17 18:49:39 +03:00
#ifdef DOCTOR_PILL_GUI
2022-01-16 19:51:07 +03:00
#include "DoctorPillGui/doctormodel.h"
2022-01-16 14:13:00 +03:00
inline void initDoctorPillResources() {
2022-01-17 18:49:39 +03:00
Q_INIT_RESOURCE(DoctorPillRes);
2022-01-16 14:13:00 +03:00
}
2022-01-14 19:55:51 +03:00
2022-01-16 14:13:00 +03:00
class QQmlApplicationEngine;
2022-01-17 18:49:39 +03:00
#endif
2022-01-14 19:55:51 +03:00
2022-01-16 14:13:00 +03:00
/**
* @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 {
2022-01-14 19:55:51 +03:00
2022-01-17 18:49:39 +03:00
#ifdef DOCTOR_PILL_GUI
2022-01-16 14:13:00 +03:00
/**
* @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.
* @return return true if the library initialized successful else false.
2022-01-16 19:51:07 +03:00
*
* @see DoctorModel
2022-01-16 14:13:00 +03:00
*/
bool DOCTOR_PILL_EXPORT init(QQmlApplicationEngine *engine);
2022-01-17 18:49:39 +03:00
#else
/**
* @brief init This function is empty wrapper for non gui build
* @return always return true.
*
* @see DoctorModel
*/
bool DOCTOR_PILL_EXPORT init();
#endif
2022-01-17 18:59:54 +03:00
/**
* @brief version This method return string value of lib version
* @return string value of lib version.
*/
QString version();
2022-01-16 14:13:00 +03:00
}
2022-01-18 16:21:05 +03:00
#endif // DOCTOR_PILL_H