-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync and port with file msg -> obj refactor
- Loading branch information
Showing
10 changed files
with
69 additions
and
27 deletions.
There are no files selected for viewing
Submodule solanaceae_message3
updated
5 files
Submodule solanaceae_ngc_ft1
updated
10 files
Submodule solanaceae_object_store
updated
6 files
Submodule solanaceae_tox
updated
13 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
#pragma once | ||
|
||
#include <solanaceae/object_store/object_store.hpp> | ||
#include <solanaceae/message3/registry_message_model.hpp> | ||
|
||
#include <vector> | ||
|
||
// fwd | ||
struct ConfigModelI; | ||
|
||
class TransferAutoAccept : public RegistryMessageModelEventI { | ||
class TransferAutoAccept : public RegistryMessageModelEventI, public ObjectStoreEventI { | ||
ObjectStore2& _os; | ||
RegistryMessageModel& _rmm; | ||
//ContactModelI& _cm; | ||
ConfigModelI& _conf; | ||
|
||
std::vector<Message3Handle> _accept_queue; | ||
std::vector<ObjectHandle> _accept_queue; | ||
|
||
public: | ||
TransferAutoAccept(RegistryMessageModel& rmm, ConfigModelI& conf); | ||
TransferAutoAccept(ObjectStore2& os, RegistryMessageModel& rmm, ConfigModelI& conf); | ||
|
||
// TODO: iterate | ||
void iterate(void); | ||
|
||
protected: | ||
void checkObj(ObjectHandle h); | ||
void checkMsg(Message3Handle h); | ||
|
||
protected: // mm | ||
bool onEvent(const Message::Events::MessageConstruct& e) override; | ||
bool onEvent(const Message::Events::MessageUpdated& e) override; | ||
|
||
protected: // os | ||
bool onEvent(const ObjectStore::Events::ObjectUpdate& e) override; | ||
}; | ||
|