summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-13 21:57:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-13 21:57:48 (GMT)
commit27d7cb1c99a55bfb45658b4f20f901926e526cae (patch)
treeb650af0f9aa85fa2ec61637e0ac36b8a01d64e99 /Swiften/AdHoc/OutgoingAdHocCommandSession.h
parent7a4a9e1ed5733a6517124edf3c4bd55e87188dde (diff)
downloadswift-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.h7
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_;