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.
class QueryBuilder : public Reference {
RCPP_OBJECT(QueryBuilder, Reference);
public:
virtual QueryBuilder *select();
virtual QueryBuilder *update();

View File

@ -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);

View File

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

View File

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

View File

@ -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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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);

View File

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

View File

@ -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);

View File

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

View File

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