Back to index

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

#include <DBusIndicators.h>

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

List of all members.

Classes

class  Impl

Public Types

typedef std::shared_ptr
< DBusIndicators
Ptr
typedef std::list< Indicator::PtrIndicatorsList

Public Member Functions

 DBusIndicators ()
 ~DBusIndicators ()
void SyncGeometries (std::string const &name, EntryLocationMap const &locations)
virtual void OnEntryScroll (std::string const &entry_id, int delta)
 internal
virtual void OnEntryShowMenu (std::string const &entry_id, unsigned int xid, int x, int y, unsigned int button, unsigned int timestamp)
 internal
virtual void OnEntrySecondaryActivate (std::string const &entry_id, unsigned int timestamp)
 internal
virtual void OnShowAppMenu (unsigned int xid, int x, int y, unsigned int timestamp)
 internal
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

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 DBusIndicators.h.


Member Typedef Documentation

Definition at line 36 of file Indicators.h.

Definition at line 36 of file DBusIndicators.h.


Constructor & Destructor Documentation

Definition at line 395 of file DBusIndicators.cpp.

  : pimpl(new Impl(this))
{}

Definition at line 399 of file DBusIndicators.cpp.

{}

Member Function Documentation

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

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, inherited]

Definition at line 81 of file Indicators.cpp.

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

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();
}
void unity::indicator::DBusIndicators::OnEntryScroll ( std::string const &  entry_id,
int  delta 
) [virtual]

internal

Implements unity::indicator::Indicators.

Definition at line 408 of file DBusIndicators.cpp.

{
  pimpl->OnEntryScroll(entry_id, delta);
}
void unity::indicator::DBusIndicators::OnEntrySecondaryActivate ( std::string const &  entry_id,
unsigned int  timestamp 
) [virtual]

internal

Implements unity::indicator::Indicators.

Definition at line 420 of file DBusIndicators.cpp.

{
  pimpl->OnEntrySecondaryActivate(entry_id, timestamp);
}
void unity::indicator::DBusIndicators::OnEntryShowMenu ( std::string const &  entry_id,
unsigned int  xid,
int  x,
int  y,
unsigned int  button,
unsigned int  timestamp 
) [virtual]

internal

Implements unity::indicator::Indicators.

Definition at line 413 of file DBusIndicators.cpp.

{
  pimpl->OnEntryShowMenu(entry_id, xid, x, y, button, timestamp);
}
void unity::indicator::DBusIndicators::OnShowAppMenu ( unsigned int  xid,
int  x,
int  y,
unsigned int  timestamp 
) [virtual]

internal

Implements unity::indicator::Indicators.

Definition at line 426 of file DBusIndicators.cpp.

{
  pimpl->OnShowAppMenu(xid, x, y, timestamp);
}
void unity::indicator::Indicators::RemoveIndicator ( std::string const &  name) [protected, inherited]

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 
) [inherited]

internal

Definition at line 71 of file Indicators.cpp.

{
  pimpl->SetEntryShowNow(entry_id, show_now);
}
void unity::indicator::DBusIndicators::SyncGeometries ( std::string const &  name,
EntryLocationMap const &  locations 
)

Definition at line 402 of file DBusIndicators.cpp.

{
  pimpl->SyncGeometries(name, locations);
}

Member Data Documentation

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

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 [inherited]

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 [inherited]

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.

sigc::signal<void, Indicator::Ptr const&> unity::indicator::Indicators::on_object_added [inherited]

Definition at line 78 of file Indicators.h.

sigc::signal<void, Indicator::Ptr const&> unity::indicator::Indicators::on_object_removed [inherited]

Definition at line 79 of file Indicators.h.

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

The service is about to show an appmenu.

Parameters:
xidwindow xid
xcoordinate
ycoordinate
timestampcurrent time

Definition at line 118 of file Indicators.h.

sigc::signal<void> unity::indicator::Indicators::on_synced [inherited]

internal

Definition at line 98 of file Indicators.h.

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

Reimplemented from unity::indicator::Indicators.

Definition at line 54 of file DBusIndicators.h.


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