~larryprice/libertine-scope/filter-state

« back to all changes in this revision

Viewing changes to libertine-scope/action.h

  • Committer: Tarmac
  • Author(s): Larry Price
  • Date: 2016-06-14 14:07:43 UTC
  • mfrom: (45.2.9 minor-cmake-updates)
  • Revision ID: tarmac-20160614140743-z3gy1pl2mqk4k3p8
Refactor Query class for consistent style and extract some functionality to helper classes.

Approved by Christopher Townsend, Libertine CI Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <unity/scopes/ActivationResponse.h>
26
26
#include <unity/scopes/Result.h>
27
27
 
 
28
class HiddenApps;
 
29
 
28
30
class Action : public unity::scopes::ActivationQueryBase {
29
31
  public:
30
32
    Action(unity::scopes::Result const&         result,
31
33
           unity::scopes::ActionMetadata const& metadata,
32
34
           std::string const&                   action_id, 
33
 
           std::string const&                   cache_dir);
 
35
           std::shared_ptr<HiddenApps>          hidden);
34
36
 
35
37
    virtual ~Action() = default;
36
38
    virtual unity::scopes::ActivationResponse activate() override;
38
40
  private:
39
41
    std::string action_id_;
40
42
    std::string cache_dir_;
 
43
    std::shared_ptr<HiddenApps> hidden_;
41
44
};
42
45
#endif