diff options
Diffstat (limited to 'lib/public/app/iappmanager.php')
-rw-r--r-- | lib/public/app/iappmanager.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/app/iappmanager.php b/lib/public/app/iappmanager.php index a2f1c9c6607..54c9a35270f 100644 --- a/lib/public/app/iappmanager.php +++ b/lib/public/app/iappmanager.php @@ -20,6 +20,8 @@ */ namespace OCP\App; +use OCP\IUser; + interface IAppManager { /** * Check if an app is enabled for user @@ -59,4 +61,19 @@ interface IAppManager { * @param string $appId */ public function disableApp($appId); + + /** + * List all apps enabled for a user + * + * @param \OCP\IUser $user + * @return string[] + */ + public function getEnabledAppsForUser(IUser $user); + + /** + * List all installed apps + * + * @return string[] + */ + public function getInstalledApps(); } |