Debian Codegraph @

liblomiri-app-launch/app-store-base.cpp

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 #include "app-store-base.h"
21 #include "app-store-click.h"
22 #include "app-store-legacy.h"
23 #ifdef HAVE_LIBERTINE
24 #include "app-store-libertine.h"
25 #endif
26 #include "app-store-snap.h"
27
28 namespace lomiri
29 {
30 namespace app_launch
31 {
32 namespace app_store
33 {
34
35 Base::Base(const std::shared_ptr<Registry::Impl>& registry)
36 : info_watcher::Base(registry)
37 {
38 }
39
40 Base::~Base()
41 {
42 }
43
44 std::list<std::shared_ptr<Base>> Base::allAppStores(const std::shared_ptr<Registry::Impl>& registry)
45 {
46 return {
47 std::make_shared<Click>(registry) /* Click */
48 ,
49 std::make_shared<Legacy>(registry) /* Legacy */
50 ,
51 #ifdef HAVE_LIBERTINE
52 std::make_shared<Libertine>(registry) /* Libertine */
53 ,
54 #endif
55 std::make_shared<Snap>(registry) /* Snappy */
56 };
57 }
58
59 } // namespace app_store
60 } // namespace app_launch
61 } // namespace lomiri