diff options
Diffstat (limited to 'Swiften/Avatars/OfflineAvatarManager.h')
-rw-r--r-- | Swiften/Avatars/OfflineAvatarManager.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Swiften/Avatars/OfflineAvatarManager.h b/Swiften/Avatars/OfflineAvatarManager.h new file mode 100644 index 0000000..2098990 --- /dev/null +++ b/Swiften/Avatars/OfflineAvatarManager.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <Swiften/Avatars/AvatarProvider.h> + +namespace Swift { + class AvatarStorage; + + class OfflineAvatarManager : public AvatarProvider { + public: + OfflineAvatarManager(AvatarStorage*); + ~OfflineAvatarManager(); + + virtual std::string getAvatarHash(const JID&) const; + void setAvatar(const JID&, const std::string& hash); + + private: + AvatarStorage* avatarStorage; + }; +} |