Back to index

unity  6.0.0
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes
unity::indicator::Indicators Class Reference

#include <Indicators.h>

Inheritance diagram for unity::indicator::Indicators:
Inheritance graph
[legend]
Collaboration diagram for unity::indicator::Indicators:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef std::list< Indicator::PtrIndicatorsList

Public Member Functions

 Indicators ()
virtual ~Indicators ()
IndicatorsList GetIndicators () const
void ActivateEntry (std::string const &entry_id, nux::Rect const &geometry)
 internal
void SetEntryShowNow (std::string const &entry_id, bool show_now)
 internal
virtual void OnEntryScroll (std::string const &entry_id, int delta)=0
 internal
virtual void OnEntryShowMenu (std::string const &entry_id, unsigned int xid, int x, int y, unsigned int button, unsigned int timestamp)=0
 internal
virtual void OnEntrySecondaryActivate (std::string const &entry_id, unsigned int timestamp)=0
 internal
virtual void OnShowAppMenu (unsigned int xid, int x, int y, unsigned int timestamp)=0
 internal

Public Attributes

sigc::signal< void,
Indicator::Ptr const & > 
on_object_added
sigc::signal< void,
Indicator::Ptr const & > 
on_object_removed
sigc::signal< void,
std::string const & > 
on_entry_activate_request
 Service wants the view to activate an entry.
sigc::signal< void,
std::string const &, nux::Rect
const & > 
on_entry_activated
 An entry just got activated.
sigc::signal< void > on_synced
 internal
sigc::signal< void,
std::string const &, unsigned
int, int, int, unsigned int,
unsigned int > 
on_entry_show_menu
 The service is about to show a menu.
sigc::signal< void, unsigned
int, int, int, unsigned int > 
on_show_appmenu
 The service is about to show an appmenu.

Protected Member Functions

Indicator::Ptr GetIndicator (std::string const &name)
Indicator::Ptr AddIndicator (std::string const &name)
void RemoveIndicator (std::string const &name)

Private Attributes

std::unique_ptr< Implpimpl

Detailed Description

Definition at line 33 of file Indicators.h.


Member Typedef Documentation

Definition at line 36 of file Indicators.h.


Constructor & Destructor Documentation

Definition at line 59 of file Indicators.cpp.

  : pimpl(new Impl(this))
{}

Definition at line 63 of file Indicators.cpp.

{}

Member Function Documentation

void unity::indicator::Indicators::ActivateEntry ( std::string const &  entry_id,
nux::Rect const &  geometry 
)

internal

Definition at line 66 of file Indicators.cpp.

{
  pimpl->ActivateEntry(entry_id, geometry);
}
Indicator::Ptr unity::indicator::Indicators::AddIndicator ( std::string const &  name) [protected]

Definition at line 81 of file Indicators.cpp.

{
  return pimpl->AddIndicator(name);
}
Indicator::Ptr unity::indicator::Indicators::GetIndicator ( std::string const &  name) [protected]

Definition at line 86 of file Indicators.cpp.

{
  return pimpl->GetIndicator(name);
}

Here is the caller graph for this function:

Definition at line 76 of file Indicators.cpp.

{
  return pimpl->GetIndicators();
}
virtual void unity::indicator::Indicators::OnEntryScroll ( std::string const &  entry_id,
int  delta 
) [pure virtual]

internal

Implemented in unity::indicator::DBusIndicators.

Here is the caller graph for this function:

virtual void unity::indicator::Indicators::OnEntrySecondaryActivate ( std::string const &  entry_id,
unsigned int  timestamp 
) [pure virtual]

internal

Implemented in unity::indicator::DBusIndicators.

Here is the caller graph for this function:

virtual void unity::indicator::Indicators::OnEntryShowMenu ( std::string const &  entry_id,
unsigned int  xid,
int  x,
int  y,
unsigned int  button,
unsigned int  timestamp 
) [pure virtual]

internal

Implemented in unity::indicator::DBusIndicators.

Here is the caller graph for this function:

virtual void unity::indicator::Indicators::OnShowAppMenu ( unsigned int  xid,
int  x,
int  y,
unsigned int  timestamp 
) [pure virtual]

internal

Implemented in unity::indicator::DBusIndicators.

Here is the caller graph for this function:

void unity::indicator::Indicators::RemoveIndicator ( std::string const &  name) [protected]

Definition at line 91 of file Indicators.cpp.

{
  return pimpl->RemoveIndicator(name);
}
void unity::indicator::Indicators::SetEntryShowNow ( std::string const &  entry_id,
bool  show_now 
)

internal

Definition at line 71 of file Indicators.cpp.

{
  pimpl->SetEntryShowNow(entry_id, show_now);
}

Member Data Documentation

sigc::signal<void, std::string const&> unity::indicator::Indicators::on_entry_activate_request

Service wants the view to activate an entry.

Example use-case: user has activated an entry with the mouse and pressed Left or Right key to activate previous or next entry.

Parameters:
entry_identry id

Definition at line 87 of file Indicators.h.

sigc::signal<void, std::string const&, nux::Rect const&> unity::indicator::Indicators::on_entry_activated

An entry just got activated.

View needs to repaint it.

Parameters:
entry_identry id

Definition at line 93 of file Indicators.h.

sigc::signal<void, std::string const&, unsigned int, int, int, unsigned int, unsigned int> unity::indicator::Indicators::on_entry_show_menu

The service is about to show a menu.

Parameters:
entry_identry id
xidwindow xid
xcoordinate
ycoordinate
buttonpressed button
timestampcurrent time

Definition at line 109 of file Indicators.h.

Definition at line 78 of file Indicators.h.

Definition at line 79 of file Indicators.h.

sigc::signal<void, unsigned int, int, int, unsigned int> unity::indicator::Indicators::on_show_appmenu

The service is about to show an appmenu.

Parameters:
xidwindow xid
xcoordinate
ycoordinate
timestampcurrent time

Definition at line 118 of file Indicators.h.

internal

Definition at line 98 of file Indicators.h.

std::unique_ptr<Impl> unity::indicator::Indicators::pimpl [private]

Reimplemented in unity::indicator::DBusIndicators.

Definition at line 126 of file Indicators.h.


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