summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-16 20:26:00 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-16 20:29:02 +0100
commitd796c43841f5f22e39af76e2c11d60335e985738 (patch)
treee3ea078843b5e20230f546d782ef61e67b331e3f /lib/public
parent1d932e4c98d7a08d9e34e85112b77dc76ca65482 (diff)
downloadnextcloud-server-d796c43841f5f22e39af76e2c11d60335e985738.tar.gz
nextcloud-server-d796c43841f5f22e39af76e2c11d60335e985738.zip
[Avatars] Add function to get the Node of the avatar
Since we usually just get the avatar and stream the content to the users there is no need to first create an image in memory.
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iavatar.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/iavatar.php b/lib/public/iavatar.php
index fc29212a599..3d92d00b83d 100644
--- a/lib/public/iavatar.php
+++ b/lib/public/iavatar.php
@@ -24,6 +24,8 @@
*/
namespace OCP;
+use OCP\Files\File;
+use OCP\Files\NotFoundException;
/**
* This class provides avatar functionality
@@ -64,4 +66,13 @@ interface IAvatar {
* @since 6.0.0
*/
public function remove();
+
+ /**
+ * Get the file of the avatar
+ * @param int $size
+ * @return File
+ * @throws NotFoundException
+ * @since 9.0.0
+ */
+ public function getFile($size);
}