Public Member Functions

Swift::AvatarStorage Class Reference

Inheritance diagram for Swift::AvatarStorage:

List of all members.

Public Member Functions

virtual ~AvatarStorage ()
virtual bool hasAvatar (const std::string &hash) const =0
virtual void addAvatar (const std::string &hash, const ByteArray &avatar)=0
virtual ByteArray getAvatar (const std::string &hash) const =0
virtual boost::filesystem::path getAvatarPath (const std::string &hash) const =0
virtual void setAvatarForJID (const JID &jid, const std::string &hash)=0
virtual std::string getAvatarForJID (const JID &jid) const =0

Detailed Description

Definition at line 18 of file AvatarStorage.h.


Constructor & Destructor Documentation

virtual Swift::AvatarStorage::~AvatarStorage (  )  [virtual]

Member Function Documentation

virtual void Swift::AvatarStorage::addAvatar ( const std::string &  hash,
const ByteArray &  avatar 
) [pure virtual]
virtual ByteArray Swift::AvatarStorage::getAvatar ( const std::string &  hash  )  const [pure virtual]

Implemented in Swift::AvatarMemoryStorage.

virtual std::string Swift::AvatarStorage::getAvatarForJID ( const JID jid  )  const [pure virtual]

Implemented in Swift::AvatarMemoryStorage.

virtual boost::filesystem::path Swift::AvatarStorage::getAvatarPath ( const std::string &  hash  )  const [pure virtual]

Implemented in Swift::AvatarMemoryStorage.

virtual bool Swift::AvatarStorage::hasAvatar ( const std::string &  hash  )  const [pure virtual]

Implemented in Swift::AvatarMemoryStorage.

virtual void Swift::AvatarStorage::setAvatarForJID ( const JID jid,
const std::string &  hash 
) [pure virtual]

Implemented in Swift::AvatarMemoryStorage.