Added lots of missing RCPP_OBJECT declarations.

This commit is contained in:
Relintai 2022-01-08 10:04:12 +01:00
parent f2458084e6
commit 3704c031f2
15 changed files with 30 additions and 0 deletions

View File

@ -10,6 +10,8 @@ class QueryResult;
//methods that start with an e escape their params. //methods that start with an e escape their params.
class QueryBuilder : public Reference { class QueryBuilder : public Reference {
RCPP_OBJECT(QueryBuilder, Reference);
public: public:
virtual QueryBuilder *select(); virtual QueryBuilder *select();
virtual QueryBuilder *update(); virtual QueryBuilder *update();

View File

@ -6,6 +6,8 @@
#include "core/reference.h" #include "core/reference.h"
class QueryResult : public Reference { class QueryResult : public Reference {
RCPP_OBJECT(QueryResult, Reference);
public: public:
virtual bool next_row(); virtual bool next_row();
virtual const char *get_cell(const int index); virtual const char *get_cell(const int index);

View File

@ -8,6 +8,8 @@
class QueryResult; class QueryResult;
class TableBuilder : public Reference { class TableBuilder : public Reference {
RCPP_OBJECT(TableBuilder, Reference);
public: public:
virtual TableBuilder *create_table(const String &name); virtual TableBuilder *create_table(const String &name);

View File

@ -9,6 +9,8 @@
#include <mutex> #include <mutex>
class HTTPSession : public Object { class HTTPSession : public Object {
RCPP_OBJECT(HTTPSession, Object);
public: public:
void add_object(const String &key, Object *obj); void add_object(const String &key, Object *obj);
void remove_object(const String &key); void remove_object(const String &key);

View File

@ -13,6 +13,8 @@ class HTTPSession;
class Request; class Request;
class SessionManager : public Object { class SessionManager : public Object {
RCPP_OBJECT(SessionManager, Object);
public: public:
void add_session(HTTPSession *session); void add_session(HTTPSession *session);
void remove_session(HTTPSession *session); void remove_session(HTTPSession *session);

View File

@ -14,6 +14,8 @@ class QueryBuilder;
#endif #endif
class WebNode : public Node { class WebNode : public Node {
RCPP_OBJECT(WebNode, Node);
public: public:
Settings *get_settings(); Settings *get_settings();
void set_settings(Settings *settings); void set_settings(Settings *settings);

View File

@ -7,6 +7,8 @@
class NodeTree; class NodeTree;
class Node : public Object { class Node : public Object {
RCPP_OBJECT(Node, Object);
public: public:
enum { enum {
NOTIFICATION_ENTER_TREE = 0, NOTIFICATION_ENTER_TREE = 0,

View File

@ -6,6 +6,8 @@
class Node; class Node;
class NodeTree : public Object { class NodeTree : public Object {
RCPP_OBJECT(NodeTree, Object);
public: public:
Node *get_root(); Node *get_root();
virtual void set_root(Node *root); virtual void set_root(Node *root);

View File

@ -10,6 +10,8 @@ class MysqlDatabase;
class MysqlQueryResult; class MysqlQueryResult;
class MysqlQueryBuilder : public QueryBuilder { class MysqlQueryBuilder : public QueryBuilder {
RCPP_OBJECT(MysqlQueryBuilder, QueryBuilder);
public: public:
QueryBuilder *select(); QueryBuilder *select();
QueryBuilder *where(); QueryBuilder *where();

View File

@ -6,6 +6,8 @@
#include <mysql.h> #include <mysql.h>
class MysqlQueryResult : public QueryResult { class MysqlQueryResult : public QueryResult {
RCPP_OBJECT(MysqlQueryResult, QueryResult);
public: public:
bool next_row(); bool next_row();
const char* get_cell(const int index); const char* get_cell(const int index);

View File

@ -6,6 +6,8 @@
#include "core/database/table_builder.h" #include "core/database/table_builder.h"
class MysqlTableBuilder : public TableBuilder { class MysqlTableBuilder : public TableBuilder {
RCPP_OBJECT(MysqlTableBuilder, TableBuilder);
public: public:
TableBuilder *create_table(const String &name); TableBuilder *create_table(const String &name);
TableBuilder *integer(const String &name); TableBuilder *integer(const String &name);

View File

@ -9,6 +9,8 @@
class SQLite3Database; class SQLite3Database;
class SQLite3QueryBuilder : public QueryBuilder { class SQLite3QueryBuilder : public QueryBuilder {
RCPP_OBJECT(SQLite3QueryBuilder, QueryBuilder);
public: public:
QueryBuilder *select(); QueryBuilder *select();
QueryBuilder *update(); QueryBuilder *update();

View File

@ -9,6 +9,8 @@
#include "./sqlite/sqlite3.h" #include "./sqlite/sqlite3.h"
class Sqlite3QueryResult : public QueryResult { class Sqlite3QueryResult : public QueryResult {
RCPP_OBJECT(Sqlite3QueryResult, QueryResult);
public: public:
bool next_row(); bool next_row();
const char* get_cell(const int index); const char* get_cell(const int index);

View File

@ -8,6 +8,8 @@
class SQLite3Database; class SQLite3Database;
class SQLite3TableBuilder : public TableBuilder { class SQLite3TableBuilder : public TableBuilder {
RCPP_OBJECT(SQLite3TableBuilder, TableBuilder);
public: public:
TableBuilder *create_table(const String &name); TableBuilder *create_table(const String &name);

View File

@ -9,6 +9,8 @@
#include "modules/paged_article/paged_article.h" #include "modules/paged_article/paged_article.h"
class PagedList : public Object { class PagedList : public Object {
RCPP_OBJECT(PagedList, Object);
public: public:
void index(Request *request); void index(Request *request);