Back to index

unity  6.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
StartupNotifyService Class Reference

#include <StartupNotifyService.h>

Inheritance diagram for StartupNotifyService:
Inheritance graph
[legend]
Collaboration diagram for StartupNotifyService:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetSnDisplay (SnDisplay *sn_display, int screen)

Static Public Member Functions

static StartupNotifyServiceDefault ()

Public Attributes

sigc::signal< void, const char * > StartupInitiated
sigc::signal< void, const char * > StartupCompleted

Protected Member Functions

 StartupNotifyService ()
 ~StartupNotifyService ()

Static Private Member Functions

static void OnMonitorEvent (SnMonitorEvent *sn_event, void *user_data)

Private Attributes

SnDisplay * _sn_display
SnMonitorContext * _sn_monitor

Static Private Attributes

static StartupNotifyService_default = 0

Detailed Description

Definition at line 30 of file StartupNotifyService.h.


Constructor & Destructor Documentation

Definition at line 34 of file StartupNotifyService.cpp.

{
}

Here is the caller graph for this function:

Definition at line 38 of file StartupNotifyService.cpp.

{
}

Member Function Documentation

Definition at line 26 of file StartupNotifyService.cpp.

{
  if (!_default)
    _default = new StartupNotifyService();

  return _default;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void StartupNotifyService::OnMonitorEvent ( SnMonitorEvent *  sn_event,
void *  user_data 
) [static, private]

Definition at line 43 of file StartupNotifyService.cpp.

{
  StartupNotifyService* service = (StartupNotifyService*) user_data;
  SnStartupSequence* seq;
  const char* id;

  seq = sn_monitor_event_get_startup_sequence(sn_event);
  id = sn_startup_sequence_get_id(seq);

  switch (sn_monitor_event_get_type(sn_event))
  {
    case SN_MONITOR_EVENT_INITIATED:
      service->StartupInitiated.emit(id);
      break;
    case SN_MONITOR_EVENT_COMPLETED:
      service->StartupCompleted.emit(id);
      break;
    default:
      break;
  }

}

Here is the caller graph for this function:

void StartupNotifyService::SetSnDisplay ( SnDisplay *  sn_display,
int  screen 
)

Definition at line 67 of file StartupNotifyService.cpp.

{
  _sn_display = sn_display;
  _sn_monitor = sn_monitor_context_new(_sn_display, screen, &StartupNotifyService::OnMonitorEvent, this, NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 48 of file StartupNotifyService.h.

SnDisplay* StartupNotifyService::_sn_display [private]

Definition at line 50 of file StartupNotifyService.h.

SnMonitorContext* StartupNotifyService::_sn_monitor [private]

Definition at line 51 of file StartupNotifyService.h.

sigc::signal<void, const char*> StartupNotifyService::StartupCompleted

Definition at line 39 of file StartupNotifyService.h.

sigc::signal<void, const char*> StartupNotifyService::StartupInitiated

Definition at line 38 of file StartupNotifyService.h.


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