~townsend/ubuntu-app-launch/remove-xmir-helpers

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/app-store-libertine.h

  • Committer: Chris Townsend
  • Date: 2017-03-24 13:06:32 UTC
  • mfrom: (269.1.38 ubuntu-app-launch)
  • Revision ID: christopher.townsend@canonical.com-20170324130632-n52ashmczuy0vy4y
Merge lp:ubuntu-app-launch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <ted.gould@canonical.com>
 
18
 */
 
19
 
 
20
#pragma once
 
21
 
 
22
#include "app-store-base.h"
 
23
 
 
24
namespace ubuntu
 
25
{
 
26
namespace app_launch
 
27
{
 
28
namespace app_store
 
29
{
 
30
 
 
31
class Libertine : public Base
 
32
{
 
33
public:
 
34
    Libertine();
 
35
    virtual ~Libertine();
 
36
 
 
37
    /* Discover tools */
 
38
    virtual bool verifyPackage(const AppID::Package& package, const std::shared_ptr<Registry>& registry) override;
 
39
    virtual bool verifyAppname(const AppID::Package& package,
 
40
                               const AppID::AppName& appname,
 
41
                               const std::shared_ptr<Registry>& registry) override;
 
42
    virtual AppID::AppName findAppname(const AppID::Package& package,
 
43
                                       AppID::ApplicationWildcard card,
 
44
                                       const std::shared_ptr<Registry>& registry) override;
 
45
    virtual AppID::Version findVersion(const AppID::Package& package,
 
46
                                       const AppID::AppName& appname,
 
47
                                       const std::shared_ptr<Registry>& registry) override;
 
48
    virtual bool hasAppId(const AppID& appid, const std::shared_ptr<Registry>& registry) override;
 
49
 
 
50
    /* Possible apps */
 
51
    virtual std::list<std::shared_ptr<Application>> list(const std::shared_ptr<Registry>& registry) override;
 
52
 
 
53
    /* Application Creation */
 
54
    virtual std::shared_ptr<app_impls::Base> create(const AppID& appid,
 
55
                                                    const std::shared_ptr<Registry>& registry) override;
 
56
};
 
57
 
 
58
}  // namespace app_store
 
59
}  // namespace app_launch
 
60
}  // namespace ubuntu