Files
XdlOrm/test/qxBlogModelView/include/model_view_from_qxee/comment.model_view.gen.h
2026-04-03 11:32:07 +08:00

49 lines
1.3 KiB
C++

/************************************************************************************************
** File created by QxEntityEditor 1.1.9 (2016/05/04 10:05) : please, do NOT modify this file ! **
************************************************************************************************/
#ifndef _QXBLOG_COMMENT_MODEL_VIEW_H_
#define _QXBLOG_COMMENT_MODEL_VIEW_H_
#ifdef _QX_NO_PRECOMPILED_HEADER
#ifndef Q_MOC_RUN
#include "../../include/precompiled.h" // Need to include precompiled header for the generated moc file
#endif // Q_MOC_RUN
#endif // _QX_NO_PRECOMPILED_HEADER
#include "../../include/comment.h"
namespace model_view {
typedef qx::QxModel<comment> comment_model_base_class;
class QX_BLOG_DLL_EXPORT comment_model : public comment_model_base_class
{
Q_OBJECT
public:
comment_model(QObject * parent = 0);
comment_model(qx::IxModel * other, QObject * parent);
virtual ~comment_model();
Q_INVOKABLE QObject * blog_id(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
/* List of properties exposed by the model (3) :
- comment_id
- title
- text
*/
protected:
virtual void syncNestedModel(int row, const QStringList & relation);
virtual void syncAllNestedModel(const QStringList & relation);
};
} // namespace model_view
#endif // _QXBLOG_COMMENT_MODEL_VIEW_H_