~ubuntu-branches/ubuntu/trusty/unity-scopes-api/trusty-proposed

« back to all changes in this revision

Viewing changes to include/unity/scopes/internal/ScopeMetadataImpl.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Pawel Stolowski
  • Date: 2014-02-11 17:55:05 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140211175505-av3z0612p7o8w54b
Tags: 0.3.1+14.04.20140211.2-0ubuntu1
[ Pawel Stolowski ]
* [ Pawel Stolowski ]
* Added preliminary API for filters and departments.
* Changes to preview action activation API: support for widget id.
* Changes to Annotation API.
* Return ScopeProxy from Result::target_scope_proxy (replaces activation_scope_name).

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    std::string scope_name() const;
47
47
    ScopeProxy proxy() const;
48
 
    std::string display_name() const; // localized
 
48
    std::string display_name() const;   // localized
49
49
    std::string description() const;    // localized
50
50
    std::string art() const;            // optional
51
51
    std::string icon() const;           // optional
52
52
    std::string search_hint() const;    // localized, optional
53
53
    std::string hot_key() const;        // localized, optional
 
54
    bool invisible() const;             // optional (default = false)
54
55
 
55
56
    void set_scope_name(std::string const& scope_name);
56
57
    void set_proxy(ScopeProxy const& proxy);
60
61
    void set_icon(std::string const& icon);
61
62
    void set_search_hint(std::string const& search_hint);
62
63
    void set_hot_key(std::string const& hot_key);
 
64
    void set_invisible(bool invisible);
63
65
 
64
66
    VariantMap serialize() const;
65
67
    void deserialize(VariantMap const& var);
77
79
    std::unique_ptr<std::string> icon_;         // Optional, hence a pointer
78
80
    std::unique_ptr<std::string> search_hint_;  // Optional, hence a pointer
79
81
    std::unique_ptr<std::string> hot_key_;      // Optional, hence a pointer
 
82
    std::unique_ptr<bool> invisible_;           // Optional, hence a pointer
80
83
};
81
84
 
82
85
} // namespace internal