~azzar1/unity/fix-1028810

« back to all changes in this revision

Viewing changes to UnityCore/HomeLens.h

  • Committer: Andrea Azzarone
  • Date: 2012-08-22 13:14:18 UTC
  • mfrom: (2516.1.92 unity)
  • Revision ID: azzaronea@gmail.com-20120822131418-mrfwx82k39xnvl9e
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
public:
47
47
  typedef std::shared_ptr<HomeLens> Ptr;
48
48
 
 
49
  /* Specifies mode for category merging */
 
50
  enum MergeMode
 
51
  {
 
52
    DISPLAY_NAME,
 
53
    OWNER_LENS
 
54
  };
 
55
 
49
56
  /**
50
57
   * Should be constructed with i18n arguments:
51
58
   *                         _("Home"), _("Home screen"), _("Search")
52
59
   */
53
 
  HomeLens(std::string const& name, std::string const& description, std::string const& search_hint);
 
60
  HomeLens(std::string const& name,
 
61
           std::string const& description,
 
62
           std::string const& search_hint,
 
63
           MergeMode merge_mode = MergeMode::OWNER_LENS);
54
64
  virtual ~HomeLens();
55
65
 
56
66
  void AddLenses(Lenses& lenses);
64
74
  void Activate(std::string const& uri);
65
75
  void Preview(std::string const& uri);
66
76
 
 
77
  std::vector<unsigned> GetCategoriesOrder();
 
78
 
67
79
private:
68
80
  class Impl;
69
81
  class ModelMerger;