GnuCash c935c2f+
Loading...
Searching...
No Matches
Data Structures | Functions
fake-qofquery.cpp File Reference
#include <config.h>
#include <qofbook.h>
#include <list>
#include "fake-qofquery.h"

Go to the source code of this file.

Data Structures

class  QofFakeQueryPool
 

Functions

QofQueryqof_query_create_for (QofIdTypeConst obj_type)
 
void qof_query_destroy (QofQuery *query)
 Frees the resources associate with a Query object.
 
void qof_query_set_book (QofQuery *query, QofBook *book)
 Set the book to be searched.
 
void xaccQueryAddDateMatchTT (QofQuery *query, gboolean use_start, time64 stt, gboolean use_end, time64 ett, QofQueryOp op)
 
void xaccQueryAddSingleAccountMatch (QofQuery *query, Account *acc, QofQueryOp op)
 
GList * qof_query_run (QofQuery *query)
 Perform the query, return the results.
 

Function Documentation

◆ xaccQueryAddDateMatchTT()

void xaccQueryAddDateMatchTT ( QofQuery query,
gboolean  use_start,
time64  stt,
gboolean  use_end,
time64  ett,
QofQueryOp  op 
)

Definition at line 128 of file fake-qofquery.cpp.

135{
136 ASSERT_TRUE(queryPool.query_used(query));
137 ((QofFakeQuery*)query)->add_date_match_tt(use_start, stt, use_end, ett, op);
138}
Fake object providing functionality similar to QofQuery.

◆ xaccQueryAddSingleAccountMatch()

void xaccQueryAddSingleAccountMatch ( QofQuery query,
Account acc,
QofQueryOp  op 
)

Definition at line 141 of file fake-qofquery.cpp.

142{
143 ASSERT_TRUE(queryPool.query_used(query));
144 ((QofFakeQuery*)query)->add_single_account_match(acc, op);
145}