Back to index

unity  6.0.0
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes
unity::dash::Lens Class Reference

#include <Lens.h>

Inheritance diagram for unity::dash::Lens:
Inheritance graph
[legend]
Collaboration diagram for unity::dash::Lens:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef std::shared_ptr< LensPtr
typedef std::map< std::string,
unity::glib::Variant
Hints

Public Member Functions

 Lens (std::string const &id, std::string const &dbus_name, std::string const &dbus_path, std::string const &name, std::string const &icon, std::string const &description="", std::string const &search_hint="", bool visible=true, std::string const &shortcut="")
 Lens (std::string const &id, std::string const &dbus_name, std::string const &dbus_path, std::string const &name, std::string const &icon, std::string const &description, std::string const &search_hint, bool visible, std::string const &shortcut, ModelType model_type)
virtual ~Lens ()
virtual void GlobalSearch (std::string const &search_string)
virtual void Search (std::string const &search_string)
virtual void Activate (std::string const &uri)
virtual void Preview (std::string const &uri)

Public Attributes

nux::RWProperty< std::string > id
nux::RWProperty< std::string > dbus_name
nux::RWProperty< std::string > dbus_path
nux::RWProperty< std::string > name
nux::RWProperty< std::string > icon_hint
nux::RWProperty< std::string > description
nux::RWProperty< std::string > search_hint
nux::RWProperty< bool > visible
nux::RWProperty< bool > search_in_global
nux::RWProperty< std::string > shortcut
nux::RWProperty< Results::Ptrresults
nux::RWProperty< Results::Ptrglobal_results
nux::RWProperty< Categories::Ptrcategories
nux::RWProperty< Filters::Ptrfilters
nux::RWProperty< bool > connected
nux::Property< ViewTypeview_type
sigc::signal< void, Hints const & > search_finished
sigc::signal< void, Hints const & > global_search_finished
sigc::signal< void,
std::string const
&, HandledType, Hints const & > 
activated
sigc::signal< void,
std::string const
&, Preview::Ptr
preview_ready

Private Attributes

Implpimpl

Detailed Description

Definition at line 54 of file Lens.h.


Member Typedef Documentation

typedef std::map<std::string, unity::glib::Variant> unity::dash::Lens::Hints

Definition at line 58 of file Lens.h.

typedef std::shared_ptr<Lens> unity::dash::Lens::Ptr

Reimplemented in unity::dash::HomeLens.

Definition at line 57 of file Lens.h.


Constructor & Destructor Documentation

unity::dash::Lens::Lens ( std::string const &  id,
std::string const &  dbus_name,
std::string const &  dbus_path,
std::string const &  name,
std::string const &  icon,
std::string const &  description = "",
std::string const &  search_hint = "",
bool  visible = true,
std::string const &  shortcut = "" 
)

Definition at line 633 of file Lens.cpp.

  : pimpl(new Impl(this,
                   id_,
                   dbus_name_,
                   dbus_path_,
                   name_,
                   icon_hint_,
                   description_,
                   search_hint_,
                   visible_,
                   shortcut_,
                   ModelType::REMOTE))
{}
unity::dash::Lens::Lens ( std::string const &  id,
std::string const &  dbus_name,
std::string const &  dbus_path,
std::string const &  name,
std::string const &  icon,
std::string const &  description,
std::string const &  search_hint,
bool  visible,
std::string const &  shortcut,
ModelType  model_type 
)

Definition at line 656 of file Lens.cpp.

  : pimpl(new Impl(this,
                   id_,
                   dbus_name_,
                   dbus_path_,
                   name_,
                   icon_hint_,
                   description_,
                   search_hint_,
                   visible_,
                   shortcut_,
                   model_type))
{}
unity::dash::Lens::~Lens ( ) [virtual]

Definition at line 680 of file Lens.cpp.

{
  delete pimpl;
}

Member Function Documentation

void unity::dash::Lens::Activate ( std::string const &  uri) [virtual]

Reimplemented in unity::dash::HomeLens.

Definition at line 695 of file Lens.cpp.

{
  pimpl->Activate(uri);
}

Here is the call graph for this function:

void unity::dash::Lens::GlobalSearch ( std::string const &  search_string) [virtual]

Reimplemented in unity::dash::HomeLens.

Definition at line 685 of file Lens.cpp.

{
  pimpl->GlobalSearch(search_string);
}

Here is the call graph for this function:

void unity::dash::Lens::Preview ( std::string const &  uri) [virtual]

Reimplemented in unity::dash::HomeLens.

Definition at line 700 of file Lens.cpp.

{
  pimpl->Preview(uri);
}

Here is the call graph for this function:

void unity::dash::Lens::Search ( std::string const &  search_string) [virtual]

Reimplemented in unity::dash::HomeLens.

Definition at line 690 of file Lens.cpp.

{
  pimpl->Search(search_string);
}

Here is the call graph for this function:


Member Data Documentation

sigc::signal<void, std::string const&, HandledType, Hints const&> unity::dash::Lens::activated

Definition at line 108 of file Lens.h.

Definition at line 100 of file Lens.h.

nux::RWProperty<bool> unity::dash::Lens::connected

Definition at line 102 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::dbus_name

Definition at line 89 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::dbus_path

Definition at line 90 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::description

Definition at line 93 of file Lens.h.

Definition at line 101 of file Lens.h.

Definition at line 99 of file Lens.h.

Definition at line 107 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::icon_hint

Definition at line 92 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::id

Definition at line 88 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::name

Definition at line 91 of file Lens.h.

Reimplemented in unity::dash::HomeLens.

Definition at line 112 of file Lens.h.

sigc::signal<void, std::string const&, Preview::Ptr> unity::dash::Lens::preview_ready

Definition at line 109 of file Lens.h.

Definition at line 98 of file Lens.h.

sigc::signal<void, Hints const&> unity::dash::Lens::search_finished

Definition at line 106 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::search_hint

Definition at line 94 of file Lens.h.

nux::RWProperty<bool> unity::dash::Lens::search_in_global

Definition at line 96 of file Lens.h.

nux::RWProperty<std::string> unity::dash::Lens::shortcut

Definition at line 97 of file Lens.h.

Definition at line 104 of file Lens.h.

nux::RWProperty<bool> unity::dash::Lens::visible

Definition at line 95 of file Lens.h.


The documentation for this class was generated from the following files: