00001 /* 00002 * Copyright (c) 2010 Remko Tronçon 00003 * Licensed under the GNU General Public License v3. 00004 * See Documentation/Licenses/GPLv3.txt for more information. 00005 */ 00006 00007 #pragma once 00008 00009 #include <Swiften/Avatars/AvatarProvider.h> 00010 00011 namespace Swift { 00012 class AvatarStorage; 00013 00014 class OfflineAvatarManager : public AvatarProvider { 00015 public: 00016 OfflineAvatarManager(AvatarStorage*); 00017 ~OfflineAvatarManager(); 00018 00019 virtual std::string getAvatarHash(const JID&) const; 00020 void setAvatar(const JID&, const std::string& hash); 00021 00022 private: 00023 AvatarStorage* avatarStorage; 00024 }; 00025 }