Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

src/DbusConnection.cpp File Reference

#include "DbusConnection.h"
#include "MessageController.h"
#include "DbusConnection-glue.h"

Include dependency graph for DbusConnection.cpp:

Go to the source code of this file.

Defines

#define ASYNCHRONOUS   0
#define SYNCHRONOUS   1

Functions

GType some_object_get_type (void)
gboolean _send_message (SomeObject *obj, char **messgArray, GError **wrong)
static void some_object_init (SomeObject *)
static void some_object_class_init (SomeObjectClass *)
static void lose (const char *str,...)
static void lose_gerror (const char *prefix, GError *error)
void * receiveThread (void *mainloop)
void * sendThread (void *att)


Define Documentation

#define ASYNCHRONOUS   0
 

Set the desired mode of communication to true. Don't set both at once though.

Definition at line 20 of file DbusConnection.cpp.

#define SYNCHRONOUS   1
 

Definition at line 21 of file DbusConnection.cpp.


Function Documentation

gboolean _send_message SomeObject obj,
char **  messgArray,
GError **  wrong
 

Function called by the glib_mainloop when a message is received. It sends the message to the MessageController.

Definition at line 71 of file DbusConnection.cpp.

References SomeObject::mc.

static void lose const char *  str,
  ...
[static]
 

Definition at line 48 of file DbusConnection.cpp.

Referenced by lose_gerror().

static void lose_gerror const char *  prefix,
GError *  error
[static]
 

Definition at line 63 of file DbusConnection.cpp.

References lose().

Referenced by DbusConnection::dbus_init(), and sendThread().

Here is the call graph for this function:

void* receiveThread void *  mainloop  ) 
 

This thread contains the glib_mainloop which handles the incoming messages from Traplas.

Definition at line 90 of file DbusConnection.cpp.

void* sendThread void *  att  ) 
 

This thread looks at the outgoing queue and sends messages from that queue to Traplas using Dbus.

Definition at line 100 of file DbusConnection.cpp.

References DbusConnection::cond, lose_gerror(), DbusConnection::mutex, DbusConnection::outqueue, DbusConnection::remote_object, and DbusConnection::sendthread_run.

Here is the call graph for this function:

static void some_object_class_init SomeObjectClass  )  [static]
 

Definition at line 43 of file DbusConnection.cpp.

GType some_object_get_type void   ) 
 

static void some_object_init SomeObject  )  [static]
 

Definition at line 38 of file DbusConnection.cpp.


Generated on Mon Jun 19 10:22:08 2006 for TraplasVisualisation by  doxygen 1.4.4