From 00071401d7c16e700becf5447bebdc70441736ea Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 21 Nov 2013 23:40:25 +0100 Subject: Round out Avatar Public API --- lib/public/iavatarmanager.php | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'lib/public/iavatarmanager.php') 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); } -- cgit v1.2.3