Back to index

unity  6.0.0
Classes | Typedefs | Functions
unity::glib Namespace Reference

Classes

class  DBusProxy
class  SignalBase
class  Signal
class  SignalManager
class  Source
 glib::Source is a wrapper class made to handle GSource based events at C++ level. More...
class  Timeout
 glib::Timeout is a wrapper to g_timeout and must be used to initialize a timeout that will be executed every milliseconds, whenever there are no higher priority events pending to the default main loop. More...
class  TimeoutSeconds
 glib::TimeoutSeconds is a wrapper to g_timeout and must be used to initialize a timeout that will be executed every seconds, whenever there are no higher priority events pending to the default main loop. More...
class  Idle
 glib::Idle is a wrapper to g_idle and must be used to initialize an idle that will be executed whenever there are no higher priority events pending to the default main loop. More...
class  SourceManager
 glib::SourceManager is a container for the glib::Source pointers. More...
struct  AddRef
class  Object
class  Error
class  String
struct  StealRef
class  Variant

Typedefs

typedef std::map< std::string,
Variant
HintsMap

Functions

std::ostream & operator<< (std::ostream &o, Error const &e)
std::ostream & operator<< (std::ostream &o, String const &s)
template<typename T >
bool operator== (Object< T > const &lhs, Object< T > const &rhs)
template<typename T >
bool operator!= (Object< T > const &lhs, Object< T > const &rhs)
template<typename T >
bool operator!= (T *lhs, Object< T > const &rhs)
template<typename G , typename T >
Object< G > object_cast (Object< T > const &obj)

Class Documentation

struct unity::glib::AddRef

Definition at line 35 of file GLibWrapper.h.

struct unity::glib::StealRef

Definition at line 37 of file Variant.h.


Typedef Documentation

typedef std::map<std::string, Variant> unity::glib::HintsMap

Definition at line 34 of file Variant.h.


Function Documentation

template<typename G , typename T >
Object<G> unity::glib::object_cast ( Object< T > const &  obj)

Definition at line 83 of file GLibWrapper.h.

{
  return Object<G>(reinterpret_cast<G*>(obj.RawPtr()), AddRef());
}

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
bool unity::glib::operator!= ( Object< T > const &  lhs,
Object< T > const &  rhs 
)

Definition at line 71 of file GLibWrapper.h.

{
  return !(lhs == rhs);
}
template<typename T >
bool unity::glib::operator!= ( T *  lhs,
Object< T > const &  rhs 
)

Definition at line 77 of file GLibWrapper.h.

{
  return !(lhs == rhs.RawPtr());
}

Here is the call graph for this function:

std::ostream & unity::glib::operator<< ( std::ostream &  o,
Error const &  e 
)

Definition at line 65 of file GLibWrapper.cpp.

{
  if (e)
    o << e.Message();
  return o;
}

Here is the call graph for this function:

std::ostream & unity::glib::operator<< ( std::ostream &  o,
String const &  s 
)

Definition at line 125 of file GLibWrapper.cpp.

{
  if (s)
    o << s.Str();
  else
    o << "<null>";
  return o;
}

Here is the call graph for this function:

template<typename T >
bool unity::glib::operator== ( Object< T > const &  lhs,
Object< T > const &  rhs 
)

Definition at line 65 of file GLibWrapper.h.

{
  return (lhs.RawPtr() == rhs.RawPtr());
}

Here is the call graph for this function: