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
View File
@@ -45,6 +45,7 @@ HEADERS += \
src/config/configfile.h \
src/core/thread.h \
src/core/crypthelper.h \
src/core/avatarmanager.h \
src/engine/boardinterface.h \
src/engine/enginefactory.h \
src/engine/handinterface.h \
@@ -106,6 +107,7 @@ SOURCES += \
src/gui/guiinterface.cpp \
src/core/common/thread.cpp \
src/core/common/crypthelper.cpp \
src/core/avatarmanager.cpp \
src/core/tinyxml/tinystr.cpp \
src/core/tinyxml/tinyxml.cpp \
src/core/tinyxml/tinyxmlerror.cpp \