first commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
/************************************************************************************************
|
||||
** File created by QxEntityEditor 1.1.9 (2016/05/04 10:05) : please, do NOT modify this file ! **
|
||||
************************************************************************************************/
|
||||
|
||||
#ifndef _QXBLOG_AUTHOR_MODEL_VIEW_H_
|
||||
#define _QXBLOG_AUTHOR_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/author.h"
|
||||
|
||||
namespace model_view {
|
||||
|
||||
typedef qx::QxModel<author> author_model_base_class;
|
||||
|
||||
class QX_BLOG_DLL_EXPORT author_model : public author_model_base_class
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
author_model(QObject * parent = 0);
|
||||
author_model(qx::IxModel * other, QObject * parent);
|
||||
virtual ~author_model();
|
||||
|
||||
Q_INVOKABLE QObject * list_of_blog(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
|
||||
|
||||
/* List of properties exposed by the model (5) :
|
||||
- author_id
|
||||
- firstname
|
||||
- lastname
|
||||
- birthdate
|
||||
- sex
|
||||
*/
|
||||
|
||||
protected:
|
||||
|
||||
virtual void syncNestedModel(int row, const QStringList & relation);
|
||||
virtual void syncAllNestedModel(const QStringList & relation);
|
||||
|
||||
};
|
||||
|
||||
} // namespace model_view
|
||||
|
||||
#endif // _QXBLOG_AUTHOR_MODEL_VIEW_H_
|
||||
@@ -0,0 +1,50 @@
|
||||
/************************************************************************************************
|
||||
** File created by QxEntityEditor 1.1.9 (2016/05/04 10:05) : please, do NOT modify this file ! **
|
||||
************************************************************************************************/
|
||||
|
||||
#ifndef _QXBLOG_BLOG_MODEL_VIEW_H_
|
||||
#define _QXBLOG_BLOG_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/blog.h"
|
||||
|
||||
namespace model_view {
|
||||
|
||||
typedef qx::QxModel<blog> blog_model_base_class;
|
||||
|
||||
class QX_BLOG_DLL_EXPORT blog_model : public blog_model_base_class
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
blog_model(QObject * parent = 0);
|
||||
blog_model(qx::IxModel * other, QObject * parent);
|
||||
virtual ~blog_model();
|
||||
|
||||
Q_INVOKABLE QObject * author_id(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
|
||||
Q_INVOKABLE QObject * list_of_comment(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
|
||||
Q_INVOKABLE QObject * list_of_category(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
|
||||
|
||||
/* List of properties exposed by the model (3) :
|
||||
- blog_id
|
||||
- title
|
||||
- text
|
||||
*/
|
||||
|
||||
protected:
|
||||
|
||||
virtual void syncNestedModel(int row, const QStringList & relation);
|
||||
virtual void syncAllNestedModel(const QStringList & relation);
|
||||
|
||||
};
|
||||
|
||||
} // namespace model_view
|
||||
|
||||
#endif // _QXBLOG_BLOG_MODEL_VIEW_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/************************************************************************************************
|
||||
** File created by QxEntityEditor 1.1.9 (2016/05/04 10:05) : please, do NOT modify this file ! **
|
||||
************************************************************************************************/
|
||||
|
||||
#ifndef _QXBLOG_CATEGORY_MODEL_VIEW_H_
|
||||
#define _QXBLOG_CATEGORY_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/category.h"
|
||||
|
||||
namespace model_view {
|
||||
|
||||
typedef qx::QxModel<category> category_model_base_class;
|
||||
|
||||
class QX_BLOG_DLL_EXPORT category_model : public category_model_base_class
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
category_model(QObject * parent = 0);
|
||||
category_model(qx::IxModel * other, QObject * parent);
|
||||
virtual ~category_model();
|
||||
|
||||
Q_INVOKABLE QObject * list_of_blog(int row, bool bLoadFromDatabase = false, const QString & sAppendRelations = QString());
|
||||
|
||||
/* List of properties exposed by the model (3) :
|
||||
- category_id
|
||||
- name
|
||||
- description
|
||||
*/
|
||||
|
||||
protected:
|
||||
|
||||
virtual void syncNestedModel(int row, const QStringList & relation);
|
||||
virtual void syncAllNestedModel(const QStringList & relation);
|
||||
|
||||
};
|
||||
|
||||
} // namespace model_view
|
||||
|
||||
#endif // _QXBLOG_CATEGORY_MODEL_VIEW_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/************************************************************************************************
|
||||
** 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_
|
||||
Reference in New Issue
Block a user