Added avatar manager which will help when transfering and caching avatars. Using boost::filesystem. MD5 sum is used to identify avatars, different types of files are possible. Avatar cache (and the avatars provided) use for example <md5sum>.png as file names, so that no additional storage for the md5sum is required.

A cache directory with write permissions is required, however, as avatars are not cached in RAM.
This commit is contained in:
lotodore
2007-09-08 16:26:10 +00:00
parent 2f1e371e4f
commit db208190be
5 changed files with 197 additions and 2 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ struct MD5Buf
std::string ToString() const;
bool FromString(const std::string &text);
bool operator==(const MD5Buf &other);
bool operator==(const MD5Buf &other) const;
bool operator<(const MD5Buf &other) const;
unsigned char data[MD5_DATA_SIZE];
};