summaryrefslogtreecommitdiffstats
path: root/lib/public/iavatarmanager.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-11-21 23:40:25 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-11-21 23:40:25 +0100
commit00071401d7c16e700becf5447bebdc70441736ea (patch)
treee6d4617ab0d4a382e352ef0788869d7eaf3baa95 /lib/public/iavatarmanager.php
parentbcd776b0c0480291c793c89ba36477163c9e4249 (diff)
downloadnextcloud-server-00071401d7c16e700becf5447bebdc70441736ea.tar.gz
nextcloud-server-00071401d7c16e700becf5447bebdc70441736ea.zip
Round out Avatar Public API
Diffstat (limited to 'lib/public/iavatarmanager.php')
-rw-r--r--lib/public/iavatarmanager.php25
1 files changed, 5 insertions, 20 deletions
diff --git a/lib/public/iavatarmanager.php b/lib/public/iavatarmanager.php
index 818dbb124af..9b185ae0467 100644
--- a/lib/public/iavatarmanager.php
+++ b/lib/public/iavatarmanager.php
@@ -14,25 +14,10 @@ namespace OCP;
interface IAvatarManager {
/**
- * @brief get the users avatar
- * @param $size integer size in px of the avatar, avatars are square, defaults to 64
- * @return boolean|\OC_Image containing the avatar or false if there's no image
+ * @brief return a user specific instance of \OCP\IAvatar
+ * @see \OCP\IAvatar
+ * @param $user string the ownCloud user id
+ * @return \OCP\IAvatar
*/
- function get($size = 64);
-
- /**
- * @brief sets the users avatar
- * @param $data mixed imagedata or path to set a new avatar
- * @throws Exception if the provided file is not a jpg or png image
- * @throws Exception if the provided image is not valid
- * @throws \OCP\NotSquareException if the image is not square
- * @return void
- */
- function set($data);
-
- /**
- * @brief remove the users avatar
- * @return void
- */
- function remove();
+ function getAvatar($user);
}