diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-13 21:57:48 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-05-13 21:57:48 (GMT) |
commit | 27d7cb1c99a55bfb45658b4f20f901926e526cae (patch) | |
tree | b650af0f9aa85fa2ec61637e0ac36b8a01d64e99 /Swiften/AdHoc/OutgoingAdHocCommandSession.h | |
parent | 7a4a9e1ed5733a6517124edf3c4bd55e87188dde (diff) | |
download | swift-contrib-27d7cb1c99a55bfb45658b4f20f901926e526cae.zip swift-contrib-27d7cb1c99a55bfb45658b4f20f901926e526cae.tar.bz2 |
Refactored OutgoingAdHocCommandSession a bit.
Diffstat (limited to 'Swiften/AdHoc/OutgoingAdHocCommandSession.h')
-rw-r--r-- | Swiften/AdHoc/OutgoingAdHocCommandSession.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Swiften/AdHoc/OutgoingAdHocCommandSession.h b/Swiften/AdHoc/OutgoingAdHocCommandSession.h index 1e0a42d..6b80300 100644 --- a/Swiften/AdHoc/OutgoingAdHocCommandSession.h +++ b/Swiften/AdHoc/OutgoingAdHocCommandSession.h @@ -56,7 +56,7 @@ namespace Swift { /** * Is the form multi-stage? */ - bool getIsMultiStage(); + bool getIsMultiStage() const; /** * Emitted when the form for the next stage is available. @@ -75,9 +75,12 @@ namespace Swift { * Use for Next, Prev, Cancel and Complete only. * If no actions are available, the command has completed. */ - ActionState getActionState(Command::Action action); + ActionState getActionState(Command::Action action) const; + private: void handleResponse(boost::shared_ptr<Command> payload, ErrorPayload::ref error); + void submitForm(Form::ref, Command::Action action); + private: DiscoItems::Item command_; IQRouter* iqRouter_; |