~ci-train-bot/ubuntu-app-launch/ubuntu-app-launch-ubuntu-yakkety-landing-070

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/connection-impl.h

  • Committer: Ted Gould
  • Date: 2015-12-10 21:01:26 UTC
  • mto: (144.6.2 find-theme-icons-ted)
  • mto: This revision was merged to the branch mainline in revision 213.
  • Revision ID: ted@gould.cx-20151210210126-f8h3iscw2bwar2ye
Adding in click support to the connection object

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "connection.h"
 
3
#include "glib-thread.h"
 
4
 
 
5
#include <json-glib/json-glib.h>
 
6
#include <click.h>
 
7
 
 
8
#pragma once
 
9
 
 
10
namespace Ubuntu {
 
11
namespace AppLaunch {
 
12
 
 
13
class Connection::Impl {
 
14
public:
 
15
        Impl();
 
16
        virtual ~Impl() {
 
17
                thread.quit();
 
18
        }
 
19
 
 
20
        std::shared_ptr<JsonObject> getClickManifest(const std::string& package);
 
21
        std::list<std::string> getClickPackages();
 
22
 
 
23
private:
 
24
        GLib::ContextThread thread;
 
25
 
 
26
        std::shared_ptr<ClickDB> _clickDB;
 
27
        std::shared_ptr<ClickUser> _clickUser;
 
28
 
 
29
        void initClick ();
 
30
};
 
31
 
 
32
}; // namespace AppLaunch
 
33
}; // namespace Ubuntu