You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
759 B
C++
41 lines
759 B
C++
#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();
|
|
|
|
void setPluginId(const QString &pluginId);
|
|
|
|
signals:
|
|
void dbError(QString errMsg);
|
|
void dbErrorRead(QString errMsg);
|
|
void dbErrorInsert(QString errMsg);
|
|
void dbErrorUpdate(QString errMsg);
|
|
void dbErrorDelete(QString errMsg);
|
|
void dataChanged();
|
|
void updateDenied();
|
|
void readDenied();
|
|
void permissionDenied(QString permission);
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
QString m_pluginId;
|
|
};
|
|
|
|
#ifdef _MSC_VER
|
|
QX_REGISTER_HPP_CORE(IService, QObject, 0)
|
|
#endif
|
|
|
|
#endif // ISERVICE_H
|