From 3704c031f230146d571fa5c070411bcd8f36ef3b Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 8 Jan 2022 10:04:12 +0100 Subject: [PATCH] Added lots of missing RCPP_OBJECT declarations. --- core/database/query_builder.h | 2 ++ core/database/query_result.h | 2 ++ core/database/table_builder.h | 2 ++ core/http/http_session.h | 2 ++ core/http/session_manager.h | 2 ++ core/http/web_node.h | 2 ++ core/nodes/node.h | 2 ++ core/nodes/node_tree.h | 2 ++ database/mysql/mysql_query_builder.h | 2 ++ database/mysql/mysql_query_result.h | 2 ++ database/mysql/mysql_table_builder.h | 2 ++ database/sqlite/sqlite3_query_builder.h | 2 ++ database/sqlite/sqlite3_query_result.h | 2 ++ database/sqlite/sqlite3_table_builder.h | 2 ++ modules/paged_list/paged_list.h | 2 ++ 15 files changed, 30 insertions(+) diff --git a/core/database/query_builder.h b/core/database/query_builder.h index 8894b6f..d499e7e 100644 --- a/core/database/query_builder.h +++ b/core/database/query_builder.h @@ -10,6 +10,8 @@ class QueryResult; //methods that start with an e escape their params. class QueryBuilder : public Reference { + RCPP_OBJECT(QueryBuilder, Reference); + public: virtual QueryBuilder *select(); virtual QueryBuilder *update(); diff --git a/core/database/query_result.h b/core/database/query_result.h index 8992fdb..a14424c 100644 --- a/core/database/query_result.h +++ b/core/database/query_result.h @@ -6,6 +6,8 @@ #include "core/reference.h" class QueryResult : public Reference { + RCPP_OBJECT(QueryResult, Reference); + public: virtual bool next_row(); virtual const char *get_cell(const int index); diff --git a/core/database/table_builder.h b/core/database/table_builder.h index 18e458e..45407f7 100644 --- a/core/database/table_builder.h +++ b/core/database/table_builder.h @@ -8,6 +8,8 @@ class QueryResult; class TableBuilder : public Reference { + RCPP_OBJECT(TableBuilder, Reference); + public: virtual TableBuilder *create_table(const String &name); diff --git a/core/http/http_session.h b/core/http/http_session.h index e93975d..c74d234 100644 --- a/core/http/http_session.h +++ b/core/http/http_session.h @@ -9,6 +9,8 @@ #include class HTTPSession : public Object { + RCPP_OBJECT(HTTPSession, Object); + public: void add_object(const String &key, Object *obj); void remove_object(const String &key); diff --git a/core/http/session_manager.h b/core/http/session_manager.h index a102a2c..16c89ce 100644 --- a/core/http/session_manager.h +++ b/core/http/session_manager.h @@ -13,6 +13,8 @@ class HTTPSession; class Request; class SessionManager : public Object { + RCPP_OBJECT(SessionManager, Object); + public: void add_session(HTTPSession *session); void remove_session(HTTPSession *session); diff --git a/core/http/web_node.h b/core/http/web_node.h index b99e814..34f52bf 100644 --- a/core/http/web_node.h +++ b/core/http/web_node.h @@ -14,6 +14,8 @@ class QueryBuilder; #endif class WebNode : public Node { + RCPP_OBJECT(WebNode, Node); + public: Settings *get_settings(); void set_settings(Settings *settings); diff --git a/core/nodes/node.h b/core/nodes/node.h index b4dd774..affc7e2 100644 --- a/core/nodes/node.h +++ b/core/nodes/node.h @@ -7,6 +7,8 @@ class NodeTree; class Node : public Object { + RCPP_OBJECT(Node, Object); + public: enum { NOTIFICATION_ENTER_TREE = 0, diff --git a/core/nodes/node_tree.h b/core/nodes/node_tree.h index 8d0a06f..dc85f1d 100644 --- a/core/nodes/node_tree.h +++ b/core/nodes/node_tree.h @@ -6,6 +6,8 @@ class Node; class NodeTree : public Object { + RCPP_OBJECT(NodeTree, Object); + public: Node *get_root(); virtual void set_root(Node *root); diff --git a/database/mysql/mysql_query_builder.h b/database/mysql/mysql_query_builder.h index 722da92..38807fc 100644 --- a/database/mysql/mysql_query_builder.h +++ b/database/mysql/mysql_query_builder.h @@ -10,6 +10,8 @@ class MysqlDatabase; class MysqlQueryResult; class MysqlQueryBuilder : public QueryBuilder { + RCPP_OBJECT(MysqlQueryBuilder, QueryBuilder); + public: QueryBuilder *select(); QueryBuilder *where(); diff --git a/database/mysql/mysql_query_result.h b/database/mysql/mysql_query_result.h index 97ec04e..41b5249 100644 --- a/database/mysql/mysql_query_result.h +++ b/database/mysql/mysql_query_result.h @@ -6,6 +6,8 @@ #include class MysqlQueryResult : public QueryResult { + RCPP_OBJECT(MysqlQueryResult, QueryResult); + public: bool next_row(); const char* get_cell(const int index); diff --git a/database/mysql/mysql_table_builder.h b/database/mysql/mysql_table_builder.h index 7826ef4..4055e36 100644 --- a/database/mysql/mysql_table_builder.h +++ b/database/mysql/mysql_table_builder.h @@ -6,6 +6,8 @@ #include "core/database/table_builder.h" class MysqlTableBuilder : public TableBuilder { + RCPP_OBJECT(MysqlTableBuilder, TableBuilder); + public: TableBuilder *create_table(const String &name); TableBuilder *integer(const String &name); diff --git a/database/sqlite/sqlite3_query_builder.h b/database/sqlite/sqlite3_query_builder.h index c4bb5bd..2c997d5 100644 --- a/database/sqlite/sqlite3_query_builder.h +++ b/database/sqlite/sqlite3_query_builder.h @@ -9,6 +9,8 @@ class SQLite3Database; class SQLite3QueryBuilder : public QueryBuilder { + RCPP_OBJECT(SQLite3QueryBuilder, QueryBuilder); + public: QueryBuilder *select(); QueryBuilder *update(); diff --git a/database/sqlite/sqlite3_query_result.h b/database/sqlite/sqlite3_query_result.h index 8ee2087..7ae3138 100644 --- a/database/sqlite/sqlite3_query_result.h +++ b/database/sqlite/sqlite3_query_result.h @@ -9,6 +9,8 @@ #include "./sqlite/sqlite3.h" class Sqlite3QueryResult : public QueryResult { + RCPP_OBJECT(Sqlite3QueryResult, QueryResult); + public: bool next_row(); const char* get_cell(const int index); diff --git a/database/sqlite/sqlite3_table_builder.h b/database/sqlite/sqlite3_table_builder.h index aca976a..0c2dfaa 100644 --- a/database/sqlite/sqlite3_table_builder.h +++ b/database/sqlite/sqlite3_table_builder.h @@ -8,6 +8,8 @@ class SQLite3Database; class SQLite3TableBuilder : public TableBuilder { + RCPP_OBJECT(SQLite3TableBuilder, TableBuilder); + public: TableBuilder *create_table(const String &name); diff --git a/modules/paged_list/paged_list.h b/modules/paged_list/paged_list.h index 0b2f760..9bed53b 100644 --- a/modules/paged_list/paged_list.h +++ b/modules/paged_list/paged_list.h @@ -9,6 +9,8 @@ #include "modules/paged_article/paged_article.h" class PagedList : public Object { + RCPP_OBJECT(PagedList, Object); + public: void index(Request *request);