iberbox  2.1.2
action.h File Reference
Include dependency graph for action.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  iberbox::ActionData
 The Action Data class. More...
 
class  iberbox::ActionListener
 The Action Listener class. More...
 
class  iberbox::BlockingActionListener
 The Blocking Action Listener class. More...
 

Namespaces

 iberbox
 The iberbox namespace.
 

Macros

#define MODIFY_ATTRIBUTES(NodeVarName)
 

Typedefs

typedef std::shared_ptr< ActionData > iberbox::Action
 
typedef std::vector< Action > iberbox::ActionDataList
 
typedef std::shared_ptr< ActionDataList > iberbox::ActionList
 
typedef ActionListener * iberbox::ActionListenerType
 

Detailed Description

Author
Javier Serrano (js@ib.nosp@m.erbo.nosp@m.x.com)
Date
2021-02-12

Macro Definition Documentation

◆ MODIFY_ATTRIBUTES

#define MODIFY_ATTRIBUTES (   NodeVarName)
Value:
mApiManager->mCloudCache->encryptNode(NodeVarName, [this, action, NodeVarName](EncryptedNode encryptedNode) \
{ \
action->setEncryptedAttributes(new std::vector<uint8_t>(*encryptedNode->getEncryptedAttributes())); \
action->setNode(NodeVarName); \
action->setIntValue(NodeVarName->getExtraNumber()); \
notifyProcessed(action); \
mApiManager->processApiRequest(std::make_shared<RenameNodeRequest>(action, mApiManager->getClientId()), this); \
}); \