2015-11-17 22:24:00 +01:00
|
|
|
#ifndef IFORM_H
|
|
|
|
|
#define IFORM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2016-02-13 21:41:05 +01:00
|
|
|
#include <QString>
|
2015-11-17 22:24:00 +01:00
|
|
|
|
2015-11-19 14:47:40 +01:00
|
|
|
#include "core_global.h"
|
|
|
|
|
|
|
|
|
|
class CORESHARED_EXPORT IForm : public QWidget
|
2015-11-17 22:24:00 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit IForm(QWidget *parent = 0);
|
|
|
|
|
virtual ~IForm();
|
|
|
|
|
|
2016-02-13 21:41:05 +01:00
|
|
|
QString pluginId() const;
|
|
|
|
|
void setPluginId(const QString &pluginId);
|
|
|
|
|
|
2015-11-17 22:24:00 +01:00
|
|
|
signals:
|
|
|
|
|
void recordAdded();
|
|
|
|
|
void recordUpdated();
|
2016-01-20 21:18:47 +01:00
|
|
|
void validationError(const QString &errMessage);
|
2016-02-13 21:41:05 +01:00
|
|
|
void refreshEntity();
|
2015-11-17 22:24:00 +01:00
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
virtual bool saveRecord() = 0;
|
2016-02-13 21:41:05 +01:00
|
|
|
void refresh();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString m_pluginId;
|
2016-02-18 19:51:57 +01:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
bool m_newRec;
|
2015-11-17 22:24:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // IFORM_H
|