/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://floralicense.org/license/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System.Collections.Generic;
namespace LibTVRefCommonPortable.Utils
{
///
/// An interface for package manager subsystem.
///
public interface IPackageManager
{
///
/// A method provides installed package list.
///
/// A package list
Dictionary GetPackageList();
///
/// A method provides a detail information (TBD)
///
/// A package ID
/// A package label
string GetPackageLabel(string pkgID);
///
/// Gets the package ID by the app ID
///
/// The app ID to get
/// The package ID that contains given app ID
string GetPackageIDByAppID(string appID);
///
/// A method removes the package.
///
/// A package ID
/// A status of uninstall
bool UninstallPackage(string pkgID);
///
/// A method remove the package by using an app ID.
///
/// an app ID
/// A status of uninstall
bool UninstallPackageByAppID(string appID);
///
/// Gets applications list by the package ID
///
/// The package ID to get applications
/// The list of applications
List GetApplicationsByPkgID(string pkgID);
}
}