summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-22 18:53:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-22 19:14:55 (GMT)
commit0bebf1a69870f75432517cfcb6d115996cf5be4f (patch)
tree0cc3ced0707990f02dc725fb01c1a4966455df89 /Swift/Controllers/MainController.h
parentfcba2d245a3dde4c584f4ed04081512441eb383f (diff)
downloadswift-0bebf1a69870f75432517cfcb6d115996cf5be4f.zip
swift-0bebf1a69870f75432517cfcb6d115996cf5be4f.tar.bz2
Send avatar vCard-updates in presence.
Diffstat (limited to 'Swift/Controllers/MainController.h')
-rw-r--r--Swift/Controllers/MainController.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.h b/Swift/Controllers/MainController.h
index 650afd1..2b7c8b0 100644
--- a/Swift/Controllers/MainController.h
+++ b/Swift/Controllers/MainController.h
@@ -8,6 +8,7 @@
#include "Swiften/Base/String.h"
#include "Swiften/Client/ClientError.h"
#include "Swiften/JID/JID.h"
+#include "Swiften/Elements/VCard.h"
#include "Swiften/Elements/DiscoInfo.h"
#include "Swiften/Elements/Error.h"
#include "Swiften/Elements/Presence.h"
@@ -58,7 +59,9 @@ namespace Swift {
void handleError(const ClientError& error);
void handleServerDiscoInfoResponse(boost::shared_ptr<DiscoInfo>, const boost::optional<Error>&);
void handleEventQueueLengthChange(int count);
+ void handleOwnVCardReceived(boost::shared_ptr<VCard> vCard, const boost::optional<Error>& error);
ChatController* getChatController(const JID &contact);
+ void sendPresence(boost::shared_ptr<Presence> presence);
void logout();
virtual bool isMUC(const JID& muc) const;
@@ -84,9 +87,12 @@ namespace Swift {
std::map<JID, MUCController*> mucControllers_;
std::map<JID, ChatController*> chatControllers_;
boost::shared_ptr<DiscoInfo> serverDiscoInfo_;
+ JID jid_;
PresenceOracle* presenceOracle_;
SystemTrayController* systemTrayController_;
AvatarManager* avatarManager_;
+ boost::shared_ptr<Presence> lastSentPresence_;
+ String vCardPhotoHash_;
};
}
#endif