mUPnP for C++
mUPnP::Action Class Reference

#include <Action.h>

Public Member Functions

ServicegetService ()
 
mupnp_shared_ptr< uXML::NodegetActionNode ()
 
 Action (mupnp_shared_ptr< uXML::Node > serviceNode, mupnp_shared_ptr< uXML::Node > actionNode)
 
 Action (Action *action)
 
 ~Action ()
 
void lock ()
 
void unlock ()
 
void setName (const std::string &value)
 
const char * getName ()
 
ArgumentListgetArgumentList ()
 
ArgumentListgetInputArgumentList ()
 
ArgumentListgetOutputArgumentList ()
 
ArgumentgetArgument (const std::string &name)
 
void setArgumentValues (ArgumentList *argList)
 
void setArgumentValue (const std::string &name, const std::string &value)
 
void setArgumentValue (const std::string &name, int value)
 
const char * getArgumentValue (const std::string &name)
 
int getArgumentIntegerValue (const std::string &name)
 
ActionDatagetActionData ()
 
ActionListenergetActionListener ()
 
void setActionListener (ActionListener *listener)
 
bool performActionListener (ActionRequest *actionReq)
 
ControlResponsegetControlResponse ()
 
void setControlResponse (ControlResponse *res)
 
UPnPStatusgetControlStatus ()
 
bool postControlAction ()
 
void setStatus (int code, const std::string &descr)
 
void setStatus (int code)
 
UPnPStatusgetStatus ()
 

Static Public Member Functions

static bool isActionNode (mupnp_shared_ptr< uXML::Node > node)
 

Static Public Attributes

static const char * ELEM_NAME
 
static const char * NAME
 

Private Member Functions

mupnp_shared_ptr< uXML::NodegetServiceNode ()
 
void initArgumentList ()
 
void clearOutputAgumentValues ()
 

Private Attributes

mupnp_shared_ptr< uXML::NodeserviceNode
 
mupnp_shared_ptr< uXML::NodeactionNode
 
ArgumentListargumentList
 
ArgumentListargumentInList
 
ArgumentListargumentOutList
 
UPnPStatus upnpStatus
 
uHTTP::Mutex mutex
 

Constructor & Destructor Documentation

◆ Action() [1/2]

mUPnP::Action::Action ( mupnp_shared_ptr< uXML::Node > serviceNode,
mupnp_shared_ptr< uXML::Node > actionNode )

◆ Action() [2/2]

mUPnP::Action::Action ( Action * action)

◆ ~Action()

mUPnP::Action::~Action ( )

Member Function Documentation

◆ clearOutputAgumentValues()

void mUPnP::Action::clearOutputAgumentValues ( )
private

◆ getActionData()

ActionData * mUPnP::Action::getActionData ( )
inline

◆ getActionListener()

ActionListener * mUPnP::Action::getActionListener ( )
inline

◆ getActionNode()

mupnp_shared_ptr< uXML::Node > mUPnP::Action::getActionNode ( )
inline

◆ getArgument()

Argument * mUPnP::Action::getArgument ( const std::string & name)

◆ getArgumentIntegerValue()

int mUPnP::Action::getArgumentIntegerValue ( const std::string & name)
inline

◆ getArgumentList()

ArgumentList * mUPnP::Action::getArgumentList ( )
inline

◆ getArgumentValue()

const char * mUPnP::Action::getArgumentValue ( const std::string & name)
inline

◆ getControlResponse()

ControlResponse * mUPnP::Action::getControlResponse ( )
inline

◆ getControlStatus()

UPnPStatus * mUPnP::Action::getControlStatus ( )
inline

◆ getInputArgumentList()

ArgumentList * mUPnP::Action::getInputArgumentList ( )
inline

◆ getName()

const char * mUPnP::Action::getName ( )
inline

◆ getOutputArgumentList()

ArgumentList * mUPnP::Action::getOutputArgumentList ( )
inline

◆ getService()

Service * mUPnP::Action::getService ( )

◆ getServiceNode()

mupnp_shared_ptr< uXML::Node > mUPnP::Action::getServiceNode ( )
inlineprivate

◆ getStatus()

UPnPStatus * mUPnP::Action::getStatus ( )
inline

◆ initArgumentList()

void mUPnP::Action::initArgumentList ( )
private

◆ isActionNode()

static bool mUPnP::Action::isActionNode ( mupnp_shared_ptr< uXML::Node > node)
inlinestatic

◆ lock()

void mUPnP::Action::lock ( )
inline

◆ performActionListener()

bool mUPnP::Action::performActionListener ( ActionRequest * actionReq)

◆ postControlAction()

bool mUPnP::Action::postControlAction ( )

◆ setActionListener()

void mUPnP::Action::setActionListener ( ActionListener * listener)
inline

◆ setArgumentValue() [1/2]

void mUPnP::Action::setArgumentValue ( const std::string & name,
const std::string & value )
inline

◆ setArgumentValue() [2/2]

void mUPnP::Action::setArgumentValue ( const std::string & name,
int value )
inline

◆ setArgumentValues()

void mUPnP::Action::setArgumentValues ( ArgumentList * argList)
inline

◆ setControlResponse()

void mUPnP::Action::setControlResponse ( ControlResponse * res)
inline

◆ setName()

void mUPnP::Action::setName ( const std::string & value)
inline

◆ setStatus() [1/2]

void mUPnP::Action::setStatus ( int code)
inline

◆ setStatus() [2/2]

void mUPnP::Action::setStatus ( int code,
const std::string & descr )
inline

◆ unlock()

void mUPnP::Action::unlock ( )
inline

Field Documentation

◆ actionNode

mupnp_shared_ptr<uXML::Node> mUPnP::Action::actionNode
private

◆ argumentInList

ArgumentList* mUPnP::Action::argumentInList
private

◆ argumentList

ArgumentList* mUPnP::Action::argumentList
private

◆ argumentOutList

ArgumentList* mUPnP::Action::argumentOutList
private

◆ ELEM_NAME

const char* mUPnP::Action::ELEM_NAME
static

◆ mutex

uHTTP::Mutex mUPnP::Action::mutex
private

◆ NAME

const char* mUPnP::Action::NAME
static

◆ serviceNode

mupnp_shared_ptr<uXML::Node> mUPnP::Action::serviceNode
private

◆ upnpStatus

UPnPStatus mUPnP::Action::upnpStatus
private

The documentation for this class was generated from the following file: