diff --git a/include/transport/adhoccommand.h b/include/transport/adhoccommand.h index e9c1adfe9825d1c02c8fb42bfc18ee7cd32b3a6a..03bc21b832ae5180ffe88134fff1cd55794eac1d 100644 --- a/include/transport/adhoccommand.h +++ b/include/transport/adhoccommand.h @@ -41,6 +41,8 @@ class AdHocCommand { virtual boost::shared_ptr handleRequest(boost::shared_ptr payload) = 0; + void addFormField(Swift::FormField::ref field); + const std::string &getId() { return m_id; } @@ -57,9 +59,10 @@ class AdHocCommand { Component *m_component; Swift::JID m_initiator; Swift::JID m_to; + std::vector m_fields; + std::string m_id; private: - std::string m_id; // This is used to remove AdHocCommand after long inactivity to prevent memory leaks // caused by users which disconnect before they finish the command. // AdHocManager uses this to garbage collect old AdHocCommands.