2016-02-09 16:05:02 +01:00
|
|
|
#ifndef ISERVICE_H
|
|
|
|
|
#define ISERVICE_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
#include "core_global.h"
|
|
|
|
|
|
|
|
|
|
class CORESHARED_EXPORT IService : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit IService(QObject *parent = 0);
|
|
|
|
|
virtual ~IService();
|
|
|
|
|
|
2016-03-11 14:13:40 +01:00
|
|
|
void setPluginId(const QString &pluginId);
|
|
|
|
|
|
2016-02-09 16:05:02 +01:00
|
|
|
signals:
|
|
|
|
|
void dbError(QString errMsg);
|
2016-02-13 21:41:05 +01:00
|
|
|
void dbErrorRead(QString errMsg);
|
|
|
|
|
void dbErrorInsert(QString errMsg);
|
|
|
|
|
void dbErrorUpdate(QString errMsg);
|
|
|
|
|
void dbErrorDelete(QString errMsg);
|
2016-02-09 16:05:02 +01:00
|
|
|
void dataChanged();
|
2016-02-13 21:41:05 +01:00
|
|
|
void updateDenied();
|
|
|
|
|
void readDenied();
|
2016-03-11 14:13:40 +01:00
|
|
|
void permissionDenied(QString permission);
|
2016-02-09 16:05:02 +01:00
|
|
|
|
|
|
|
|
public slots:
|
2016-03-11 14:13:40 +01:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
QString m_pluginId;
|
2016-02-09 16:05:02 +01:00
|
|
|
};
|
|
|
|
|
|
2023-05-29 16:27:10 +02:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
QX_REGISTER_HPP_CORE(IService, QObject, 0)
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-02-09 16:05:02 +01:00
|
|
|
#endif // ISERVICE_H
|