--- a/docs/todo.mdwn Mon Aug 20 18:59:40 2012 +0300
+++ b/docs/todo.mdwn Sun Sep 23 15:38:29 2012 +0300
@@ -5,11 +5,21 @@
* extract common code into one place
* add avatar
* pep_avatar, avatar_cache, avatar, aavatar (separate)
- * hook_avatar_metadata_in @ pep_avatar
- | hook_avatar_need_data_in (or symbol-resolved request) @ avatar_cache
- V hook_avatar_data_in @ pep_avatar
- hook_avatar_in @ avatar_cache
- * (!!!) how to handle outgoing event? what and where should do what?
+ * in
+ * !avatar-metadata-in @ pep_avatar
+ * symbol-resolved request @ avatar_cache
+ * !avatar-data-in @ pep_avatar
+ * !avatar-in (file) @ avatar_cache
+ * print, printaa @ avatar, aavatar
+ * out
+ * avatar_cache calculates hash and saves hash to cache(, links jid to hash?)
+ * avatar_cache !avatar-data-out
+ * pep_avatar sends data
+ * pep_avatar reports error/notify of success (does static handler have node info?)
+ * avatar_cache gets file from cache, calculates metadata, !avatar-metadata-out
+ * pep_avatar sends metadata
+ * pep_avatar reports error/(notify of success?)
+ * avatar_cache (links jid to hash?)
* handle url avatars (curl)
* report absence of avatar