summaryrefslogtreecommitdiff
path: root/src/include/cchecker/logic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/cchecker/logic.h')
-rw-r--r--src/include/cchecker/logic.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/cchecker/logic.h b/src/include/cchecker/logic.h
index aa50388..b5f1c22 100644
--- a/src/include/cchecker/logic.h
+++ b/src/include/cchecker/logic.h
@@ -97,10 +97,15 @@ class Logic {
void *logic_ptr)
);
+ void push_event(event_t event);
+
void process_all(void);
void process_queue(void);
- void process_event(const event_t &event);
+ virtual void process_event(const event_t &event);
+
+ bool process_app(app_t& app);
void process_buffer(void);
+ virtual void app_processed() {}; // for tests
bool get_online(void) const;
void set_online(bool online);
@@ -108,7 +113,7 @@ class Logic {
bool get_should_exit(void) const;
void set_should_exit(void);
- void call_ui(const app_t &app);
+ bool call_ui(const app_t &app);
Queue m_queue;
Certs m_certs;
@@ -117,6 +122,8 @@ class Logic {
bool m_was_setup_called;
bool m_is_online;
+ // TODO: use m_queue for online events
+ bool m_is_online_enabled;
std::condition_variable m_to_process;
std::mutex m_mutex_cv;
std::thread m_thread;