acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_check_handler.h
1
// Created by camilo on 2024-06-10 21:55 <3ThomasBorregaardSorensen!! ThomasLikesNumber5!!
2
#pragma once
3
4
5
#include "acme/prototype/data/check_property.h"
6
#include "acme/prototype/prototype/signal.h"
7
8
9
namespace
data
10
{
11
12
13
14
class
CLASS_DECL_ACME check_handler :
15
public
::data::check_property
16
{
17
public
:
18
19
20
::data::property_will_change m_propertywillchange;
21
::data::property_changed m_propertychanged;
22
::signal < ::data::check_will_change > m_checkwillchangesignal;
23
::signal < ::data::check_changed > m_checkchangedsignal;
24
25
26
void
unhook_callbacks();
27
void
hook_callbacks();
28
29
30
public
:
31
32
33
check_handler(
::data::property_container
* ppropertycontainer =
nullptr
, const ::atom & atom = {});
34
~check_handler();
35
36
37
void
set_check_property(const ::data::check_property & checkproperty);
38
39
//check_property & check() { return m_checkproperty; }
40
41
/*
42
//virtual bool on_property_will_change(property_container * pcontainer, const ::atom_array & atoma, const ::payload & payload, const ::action_context & actioncontext);
43
//virtual void on_property_changed(property_container * pcontainer, const ::atom_array & atoma, const ::payload & payload, const ::action_context & actioncontext);
44
*/
45
46
bool
on_check_will_change(
check_change
& checkchange);
47
void
on_check_changed(
check_change
& checkchange);
48
49
add_signal_function_to_holder < check_will_change > check_will_change(
::matter
* pmatterFunctionHolder);
50
add_signal_function_to_holder < check_changed > check_changed(
::matter
* pmatterFunctionHolder);
51
52
53
bool
operator == (
const
check_property & checkproperty)
const
;
54
bool
operator == (
const
check_change
& change)
const
;
55
56
57
};
58
59
60
}
// namespace data
61
62
63
data::check_property
Definition
check_property.h:38
data::property_container
Definition
property_container.h:17
matter
Definition
matter.h:17
data::check_change
Definition
check_property.h:19
prototype
data
aaa_check_handler.h
Generated by
1.17.0