Debian Codegraph @

liblomiri-app-launch/app-store-click.h

raw
1 /*
2 * Copyright © 2017 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published
6 * by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranties of
10 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Ted Gould <[email protected]>
18 */
19
20 #pragma once
21
22 #include "app-store-base.h"
23
24 namespace lomiri
25 {
26 namespace app_launch
27 {
28 namespace app_store
29 {
30
31 class Click : public Base
32 {
33 public:
34 Click(const std::shared_ptr<Registry::Impl>& registry);
35 virtual ~Click();
36
37 /* Discover tools */
38 virtual bool verifyPackage(const AppID::Package& package) override;
39 virtual bool verifyAppname(const AppID::Package& package,
40 const AppID::AppName& appname) override;
41 virtual AppID::AppName findAppname(const AppID::Package& package,
42 AppID::ApplicationWildcard card) override;
43 virtual AppID::Version findVersion(const AppID::Package& package,
44 const AppID::AppName& appname) override;
45 virtual bool hasAppId(const AppID& appid) override;
46
47 /* Possible apps */
48 virtual std::list<std::shared_ptr<Application>> list() override;
49
50 /* Application Creation */
51 virtual std::shared_ptr<app_impls::Base> create(const AppID& appid) override;
52 };
53
54 } // namespace app_store
55 } // namespace app_launch
56 } // namespace lomiri