|
Electroneum
|
#include <message_store.h>
Public Member Functions | |
| message_store () | |
| void | init (const multisig_wallet_state &state, const std::string &own_label, const std::string &own_transport_address, uint32_t num_authorized_signers, uint32_t num_required_signers) |
| void | set_active (bool active) |
| void | set_auto_send (bool auto_send) |
| void | set_options (const boost::program_options::variables_map &vm) |
| void | set_options (const std::string &bitmessage_address, const epee::wipeable_string &bitmessage_login) |
| bool | get_active () const |
| bool | get_auto_send () const |
| uint32_t | get_num_required_signers () const |
| uint32_t | get_num_authorized_signers () const |
| void | set_signer (const multisig_wallet_state &state, uint32_t index, const boost::optional< std::string > &label, const boost::optional< std::string > &transport_address, const boost::optional< cryptonote::account_public_address > etn_address) |
| const authorized_signer & | get_signer (uint32_t index) const |
| bool | get_signer_index_by_etn_address (const cryptonote::account_public_address &etn_address, uint32_t &index) const |
| bool | get_signer_index_by_label (const std::string label, uint32_t &index) const |
| const std::vector< authorized_signer > & | get_all_signers () const |
| bool | signer_config_complete () const |
| bool | signer_labels_complete () const |
| void | get_signer_config (std::string &signer_config) |
| void | unpack_signer_config (const multisig_wallet_state &state, const std::string &signer_config, std::vector< authorized_signer > &signers) |
| void | process_signer_config (const multisig_wallet_state &state, const std::string &signer_config) |
| void | start_auto_config (const multisig_wallet_state &state) |
| bool | check_auto_config_token (const std::string &raw_token, std::string &adjusted_token) const |
| size_t | add_auto_config_data_message (const multisig_wallet_state &state, const std::string &auto_config_token) |
| void | process_auto_config_data_message (uint32_t id) |
| void | stop_auto_config () |
| void | process_wallet_created_data (const multisig_wallet_state &state, message_type type, const std::string &content) |
| bool | get_processable_messages (const multisig_wallet_state &state, bool force_sync, std::vector< processing_data > &data_list, std::string &wait_reason) |
| void | set_messages_processed (const processing_data &data) |
| size_t | add_message (const multisig_wallet_state &state, uint32_t signer_index, message_type type, message_direction direction, const std::string &content) |
| const std::vector< message > & | get_all_messages () const |
| bool | get_message_by_id (uint32_t id, message &m) const |
| message | get_message_by_id (uint32_t id) const |
| void | set_message_processed_or_sent (uint32_t id) |
| void | delete_message (uint32_t id) |
| void | delete_all_messages () |
| void | get_sanitized_message_text (const message &m, std::string &sanitized_text) const |
| void | send_message (const multisig_wallet_state &state, uint32_t id) |
| bool | check_for_messages (const multisig_wallet_state &state, std::vector< message > &messages) |
| void | stop () |
| void | write_to_file (const multisig_wallet_state &state, const std::string &filename) |
| void | read_from_file (const multisig_wallet_state &state, const std::string &filename) |
| template<class t_archive > | |
| void | serialize (t_archive &a, const unsigned int ver) |
| std::string | signer_to_string (const authorized_signer &signer, uint32_t max_width) |
Static Public Member Functions | |
| static const char * | message_type_to_string (message_type type) |
| static const char * | message_direction_to_string (message_direction direction) |
| static const char * | message_state_to_string (message_state state) |
| static const char * | tr (const char *str) |
| static void | init_options (boost::program_options::options_description &desc_params) |
Definition at line 202 of file message_store.h.
| mms::message_store::message_store | ( | ) |
Definition at line 51 of file message_store.cpp.
| size_t mms::message_store::add_auto_config_data_message | ( | const multisig_wallet_state & | state, |
| const std::string & | auto_config_token | ||
| ) |
Definition at line 345 of file message_store.cpp.

| size_t mms::message_store::add_message | ( | const multisig_wallet_state & | state, |
| uint32_t | signer_index, | ||
| message_type | type, | ||
| message_direction | direction, | ||
| const std::string & | content | ||
| ) |
Definition at line 514 of file message_store.cpp.


| bool mms::message_store::check_auto_config_token | ( | const std::string & | raw_token, |
| std::string & | adjusted_token | ||
| ) | const |
Definition at line 276 of file message_store.cpp.
| bool mms::message_store::check_for_messages | ( | const multisig_wallet_state & | state, |
| std::vector< message > & | messages | ||
| ) |
Definition at line 1244 of file message_store.cpp.

| void mms::message_store::delete_all_messages | ( | ) |
Definition at line 663 of file message_store.cpp.
| void mms::message_store::delete_message | ( | uint32_t | id | ) |
Definition at line 656 of file message_store.cpp.
|
inline |
Definition at line 215 of file message_store.h.
|
inline |
Definition at line 270 of file message_store.h.
|
inline |
Definition at line 229 of file message_store.h.
|
inline |
Definition at line 216 of file message_store.h.
Definition at line 600 of file message_store.cpp.

|
inline |
Definition at line 218 of file message_store.h.
|
inline |
Definition at line 217 of file message_store.h.
| bool mms::message_store::get_processable_messages | ( | const multisig_wallet_state & | state, |
| bool | force_sync, | ||
| std::vector< processing_data > & | data_list, | ||
| std::string & | wait_reason | ||
| ) |
Definition at line 790 of file message_store.cpp.

| void mms::message_store::get_sanitized_message_text | ( | const message & | m, |
| std::string & | sanitized_text | ||
| ) | const |
Definition at line 674 of file message_store.cpp.
| const authorized_signer & mms::message_store::get_signer | ( | uint32_t | index | ) | const |
Definition at line 147 of file message_store.cpp.

| void mms::message_store::get_signer_config | ( | std::string & | signer_config | ) |
Definition at line 181 of file message_store.cpp.
| bool mms::message_store::get_signer_index_by_etn_address | ( | const cryptonote::account_public_address & | etn_address, |
| uint32_t & | index | ||
| ) | const |
Definition at line 442 of file message_store.cpp.

| bool mms::message_store::get_signer_index_by_label | ( | const std::string | label, |
| uint32_t & | index | ||
| ) | const |
Definition at line 457 of file message_store.cpp.
| void mms::message_store::init | ( | const multisig_wallet_state & | state, |
| const std::string & | own_label, | ||
| const std::string & | own_transport_address, | ||
| uint32_t | num_authorized_signers, | ||
| uint32_t | num_required_signers | ||
| ) |
Definition at line 81 of file message_store.cpp.

|
static |
Definition at line 74 of file message_store.cpp.


|
static |
Definition at line 1379 of file message_store.cpp.


|
static |
Definition at line 1392 of file message_store.cpp.

|
static |
Definition at line 1354 of file message_store.cpp.


| void mms::message_store::process_auto_config_data_message | ( | uint32_t | id | ) |
Definition at line 366 of file message_store.cpp.
| void mms::message_store::process_signer_config | ( | const multisig_wallet_state & | state, |
| const std::string & | signer_config | ||
| ) |
Definition at line 207 of file message_store.cpp.

| void mms::message_store::process_wallet_created_data | ( | const multisig_wallet_state & | state, |
| message_type | type, | ||
| const std::string & | content | ||
| ) |
Definition at line 472 of file message_store.cpp.

| void mms::message_store::read_from_file | ( | const multisig_wallet_state & | state, |
| const std::string & | filename | ||
| ) |
Definition at line 727 of file message_store.cpp.

| void mms::message_store::send_message | ( | const multisig_wallet_state & | state, |
| uint32_t | id | ||
| ) |
Definition at line 1202 of file message_store.cpp.

|
inline |
Definition at line 286 of file message_store.h.
|
inline |
|
inline |
Definition at line 212 of file message_store.h.
| void mms::message_store::set_message_processed_or_sent | ( | uint32_t | id | ) |
Definition at line 1155 of file message_store.cpp.

| void mms::message_store::set_messages_processed | ( | const processing_data & | data | ) |
Definition at line 1147 of file message_store.cpp.

| void mms::message_store::set_options | ( | const boost::program_options::variables_map & | vm | ) |
Definition at line 109 of file message_store.cpp.

| void mms::message_store::set_options | ( | const std::string & | bitmessage_address, |
| const epee::wipeable_string & | bitmessage_login | ||
| ) |
Definition at line 117 of file message_store.cpp.

| void mms::message_store::set_signer | ( | const multisig_wallet_state & | state, |
| uint32_t | index, | ||
| const boost::optional< std::string > & | label, | ||
| const boost::optional< std::string > & | transport_address, | ||
| const boost::optional< cryptonote::account_public_address > | etn_address | ||
| ) |
Definition at line 122 of file message_store.cpp.


| bool mms::message_store::signer_config_complete | ( | ) | const |
| bool mms::message_store::signer_labels_complete | ( | ) | const |
Definition at line 168 of file message_store.cpp.
| std::string mms::message_store::signer_to_string | ( | const authorized_signer & | signer, |
| uint32_t | max_width | ||
| ) |
Definition at line 1413 of file message_store.cpp.
| void mms::message_store::start_auto_config | ( | const multisig_wallet_state & | state | ) |
Definition at line 259 of file message_store.cpp.
|
inline |
| void mms::message_store::stop_auto_config | ( | ) |
Definition at line 395 of file message_store.cpp.

|
inlinestatic |
Definition at line 303 of file message_store.h.


| void mms::message_store::unpack_signer_config | ( | const multisig_wallet_state & | state, |
| const std::string & | signer_config, | ||
| std::vector< authorized_signer > & | signers | ||
| ) |
Definition at line 189 of file message_store.cpp.


| void mms::message_store::write_to_file | ( | const multisig_wallet_state & | state, |
| const std::string & | filename | ||
| ) |
Definition at line 700 of file message_store.cpp.