Database error handling.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define IFORM_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QString>
|
||||
|
||||
#include "core_global.h"
|
||||
|
||||
@@ -13,13 +14,21 @@ public:
|
||||
explicit IForm(QWidget *parent = 0);
|
||||
virtual ~IForm();
|
||||
|
||||
QString pluginId() const;
|
||||
void setPluginId(const QString &pluginId);
|
||||
|
||||
signals:
|
||||
void recordAdded();
|
||||
void recordUpdated();
|
||||
void validationError(const QString &errMessage);
|
||||
void refreshEntity();
|
||||
|
||||
public slots:
|
||||
virtual bool saveRecord() = 0;
|
||||
void refresh();
|
||||
|
||||
private:
|
||||
QString m_pluginId;
|
||||
};
|
||||
|
||||
#endif // IFORM_H
|
||||
|
||||
Reference in New Issue
Block a user