summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Client/DummyStanzaChannel.h')
-rw-r--r--Swiften/Client/DummyStanzaChannel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Client/DummyStanzaChannel.h b/Swiften/Client/DummyStanzaChannel.h
index b8ae545..d9fb138 100644
--- a/Swiften/Client/DummyStanzaChannel.h
+++ b/Swiften/Client/DummyStanzaChannel.h
@@ -56,6 +56,10 @@ namespace Swift {
return iqStanza && iqStanza->getType() == type && iqStanza->getTo() == jid && iqStanza->getPayload<T>();
}
+ template<typename T> boost::shared_ptr<T> getStanzaAtIndex(size_t index) {
+ return boost::dynamic_pointer_cast<T>(sentStanzas[index]);
+ }
+
std::vector<boost::shared_ptr<Stanza> > sentStanzas;
bool available_;
};