DECENT
Functions
Subscription

Functions

void graphene::app::database_api::set_subscribe_callback (std::function< void(const variant &)> cb, bool clear_filter)
 
void graphene::app::database_api::set_pending_transaction_callback (std::function< void(const variant &)> cb)
 
void graphene::app::database_api::set_block_applied_callback (std::function< void(const variant &block_id)> cb)
 
void graphene::app::database_api::set_content_update_callback (std::function< void()>cb, const string &URI)
 
void graphene::app::database_api::cancel_all_subscriptions ()
 Stop receiving any notifications. More...
 

Detailed Description

Function Documentation

void graphene::app::database_api::cancel_all_subscriptions ( )

Stop receiving any notifications.

Note
This unsubscribes from all subscribed objects.

Definition at line 363 of file database_api.cpp.

void graphene::app::database_api::set_block_applied_callback ( std::function< void(const variant &block_id)>  cb)
Parameters
cb

Definition at line 353 of file database_api.cpp.

void graphene::app::database_api::set_content_update_callback ( std::function< void()>  cb,
const string &  URI 
)
Parameters
URIcontent we are monitoring
cbcallback

Definition at line 333 of file database_api.cpp.

void graphene::app::database_api::set_pending_transaction_callback ( std::function< void(const variant &)>  cb)
Parameters
cb

Definition at line 343 of file database_api.cpp.

void graphene::app::database_api::set_subscribe_callback ( std::function< void(const variant &)>  cb,
bool  clear_filter 
)
Parameters
cb
clear_filter

Definition at line 312 of file database_api.cpp.