~ci-train-bot/ubuntu-app-launch/ubuntu-app-launch-ubuntu-zesty-2264

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/info-watcher.h

  • Committer: Ted Gould
  • Date: 2017-04-04 05:29:16 UTC
  • mfrom: (307.1.20 registry-cleanup)
  • mto: This revision was merged to the branch mainline in revision 314.
  • Revision ID: ted@gould.cx-20170404052916-sy1fq5qzfrau6o53
Merge registry cleanup changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
class Base
36
36
{
37
37
public:
38
 
    Base(const Registry& registry);
 
38
    Base(const std::shared_ptr<Registry::Impl>& registry);
39
39
    virtual ~Base() = default;
40
40
 
41
41
    virtual core::Signal<const std::shared_ptr<Application>&>& infoChanged()
44
44
    }
45
45
 
46
46
protected:
 
47
    /** Signal for info changed on an application */
47
48
    core::Signal<const std::shared_ptr<Application>&> infoChanged_;
48
 
    const Registry& registry_;
 
49
 
 
50
    /** Accessor function to the registry that ensures we can still
 
51
        get it, which we always should be able to, but in case. */
 
52
    std::shared_ptr<Registry::Impl> getReg();
 
53
 
 
54
private:
 
55
    /** Pointer to our implementing registry */
 
56
    std::weak_ptr<Registry::Impl> registry_;
49
57
};
50
58
 
51
59
}  // namespace info_watcher