aboutsummaryrefslogtreecommitdiff
path: root/examples/example_9_vCard/example_9_vCard.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-10-21 17:01:03 +0200
committerLNJ <lnj@kaidan.im>2019-10-23 12:13:18 +0200
commitdfec49b06fc305cc55631e5473b9ba19c729cd03 (patch)
tree268083483bec5f41ce9b4dab1f0a9ece3f5258ed /examples/example_9_vCard/example_9_vCard.h
parent91157d28b88ef3bab80100cd816c643809944a27 (diff)
downloadqxmpp-dfec49b06fc305cc55631e5473b9ba19c729cd03.tar.gz
Port away from deprecated client extension getters of the QXmppClient
This replaces the deprecated getters in the examples and in the documentation.
Diffstat (limited to 'examples/example_9_vCard/example_9_vCard.h')
-rw-r--r--examples/example_9_vCard/example_9_vCard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/example_9_vCard/example_9_vCard.h b/examples/example_9_vCard/example_9_vCard.h
index 24fc4b6c..09de39c8 100644
--- a/examples/example_9_vCard/example_9_vCard.h
+++ b/examples/example_9_vCard/example_9_vCard.h
@@ -27,7 +27,9 @@
#include "QXmppClient.h"
+class QXmppRosterManager;
class QXmppVCardIq;
+class QXmppVCardManager;
class xmppClient : public QXmppClient
{
@@ -41,6 +43,10 @@ public slots:
void clientConnected();
void rosterReceived();
void vCardReceived(const QXmppVCardIq&);
+
+private:
+ QXmppRosterManager *m_rosterManager;
+ QXmppVCardManager *m_vCardManager;
};
#endif // XMPPCLIENT_H