Ad-Hoc Command (XEP-0050).
More...
List of all members.
Classes |
struct | Note |
Public Types |
enum | Status { Executing,
Completed,
Canceled,
NoStatus
} |
enum | Action {
Cancel,
Execute,
Complete,
Prev,
Next,
NoAction
} |
typedef boost::shared_ptr
< Command > | ref |
Public Member Functions |
| Command (const std::string &node, const std::string &sessionID, Status status) |
| Command (const std::string &node="", const std::string &sessionID="", Action action=Execute) |
const std::string & | getNode () const |
void | setNode (const std::string &node) |
const std::string & | getSessionID () const |
void | setSessionID (const std::string &id) |
Action | getAction () const |
void | setAction (Action action) |
void | setExecuteAction (Action action) |
Action | getExecuteAction () const |
Status | getStatus () const |
void | setStatus (Status status) |
void | addAvailableAction (Action action) |
const std::vector< Action > & | getAvailableActions () const |
void | addNote (const Note ¬e) |
const std::vector< Note > & | getNotes () const |
Form::ref | getForm () const |
void | setForm (Form::ref payload) |
Detailed Description
Ad-Hoc Command (XEP-0050).
Definition at line 19 of file Command.h.
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
Cancel |
|
Execute |
|
Complete |
|
Prev |
|
Next |
|
NoAction |
|
Definition at line 24 of file Command.h.
- Enumerator:
Executing |
|
Completed |
|
Canceled |
|
NoStatus |
|
Definition at line 23 of file Command.h.
Constructor & Destructor Documentation
Swift::Command::Command |
( |
const std::string & |
node, |
|
|
const std::string & |
sessionID, |
|
|
Status |
status | |
|
) |
| | [inline] |
Swift::Command::Command |
( |
const std::string & |
node = "" , |
|
|
const std::string & |
sessionID = "" , |
|
|
Action |
action = Execute | |
|
) |
| | [inline] |
Member Function Documentation
void Swift::Command::addAvailableAction |
( |
Action |
action |
) |
[inline] |
void Swift::Command::addNote |
( |
const Note & |
note |
) |
[inline] |
Action Swift::Command::getAction |
( |
|
) |
const [inline] |
const std::vector<Action>& Swift::Command::getAvailableActions |
( |
|
) |
const [inline] |
Action Swift::Command::getExecuteAction |
( |
|
) |
const [inline] |
Form::ref Swift::Command::getForm |
( |
|
) |
const [inline] |
const std::string& Swift::Command::getNode |
( |
|
) |
const [inline] |
const std::vector<Note>& Swift::Command::getNotes |
( |
|
) |
const [inline] |
const std::string& Swift::Command::getSessionID |
( |
|
) |
const [inline] |
Status Swift::Command::getStatus |
( |
|
) |
const [inline] |
void Swift::Command::setAction |
( |
Action |
action |
) |
[inline] |
void Swift::Command::setExecuteAction |
( |
Action |
action |
) |
[inline] |
void Swift::Command::setForm |
( |
Form::ref |
payload |
) |
[inline] |
void Swift::Command::setNode |
( |
const std::string & |
node |
) |
[inline] |
void Swift::Command::setSessionID |
( |
const std::string & |
id |
) |
[inline] |
void Swift::Command::setStatus |
( |
Status |
status |
) |
[inline] |