main_dbus.c File Reference

#include
#include
#include "nntpgrab.h"
#include "nntpgrab_utils.h"
#include "marshalers.h"
#include "nntpgrab-dbus-server.h"
#include

Go to the source code of this file.


Data Structures

struct   NNTPGrabDBus
struct   NNTPGrabDBusClass

Defines

#define  NNTPGRAB_TYPE_DBUS   (dbus_get_type ())
#define  NNTPGRAB_DBUS(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), NNTPGRAB_TYPE_DBUS, NNTPGrabDBus))
#define  NNTPGRAB_DBUS_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), NNTPGRAB_TYPE_DBUS, NNTPGrabDBusClass))
#define  IS_NNTPGRAB_DBUS(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), NNTPGRAB_TYPE_DBUS))
#define  IS_NNTPGRAB_DBUS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NNTPGRAB_TYPE_DBUS))
#define  NNTPGRAB_DBUS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), NNTPGRAB_TYPE_DBUS, NNTPGrabDBusClass))

Typedefs

typedef struct NNTPGrabDBus  NNTPGrabDBus
typedef struct NNTPGrabDBusClass  NNTPGrabDBusClass

Enumerations

enum   {
  CONFIG_CHANGED_SIGNAL, PART_DOWNLOAD_START_SIGNAL, PART_DONE_SIGNAL, PART_FAILED_SIGNAL,
  PART_PROGRESS_UPDATE_SIGNAL, COLLECTION_ADDED_SIGNAL, COLLECTION_REMOVED_SIGNAL, FILE_ADDED_SIGNAL,
  FILE_REMOVED_SIGNAL, FILE_STATE_CHANGED_SIGNAL, CONNECTION_CONNECTING_SIGNAL, CONNECTION_CONNECTED_SIGNAL,
  CONNECTION_DISCONNECT_SIGNAL, FATAL_ERROR_SIGNAL, DEBUG_MESSAGE_SIGNAL, LAST_SIGNAL
}

Functions

gboolean  nntpgrab_dbus_config_get_avail_servers (NNTPGrabDBus *server, GPtrArray **servers, GError **error)
gboolean  nntpgrab_dbus_config_get_server_info (NNTPGrabDBus *server, const char *servername, GValueArray **ret, GError **error)
gboolean  nntpgrab_dbus_config_add_server (NNTPGrabDBus *server, const char *servername, GValueArray *info, GError **error)
gboolean  nntpgrab_dbus_config_del_server (NNTPGrabDBus *server, const char *servername, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_config_edit_server (NNTPGrabDBus *server, const char *servername, const GValueArray *info, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_config_get_opts (NNTPGrabDBus *server, GValueArray **opts, GError **error)
gboolean  nntpgrab_dbus_config_set_opts (NNTPGrabDBus *server, const GValueArray *opts, GError **error)
gboolean  nntpgrab_dbus_schedular_start (NNTPGrabDBus *server, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_stop (NNTPGrabDBus *server, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_get_state (NNTPGrabDBus *server, gint *state, GError **error)
gboolean  nntpgrab_dbus_schedular_add_task_to_queue (NNTPGrabDBus *server, const char *collection_name, const char *subject, const char *poster, const gint64 stamp, const gint64 file_size, char **groups, const GPtrArray *parts, char **errmsg, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_del_task_from_queue (NNTPGrabDBus *server, const char *collection_name, const char *subject, char **errmsg, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_restart_task (NNTPGrabDBus *server, const char *collection_name, const char *subject, char **errmsg, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_save_queue (NNTPGrabDBus *server, char **errmsg, gboolean *retval, GError **error)
gboolean  nntpgrab_dbus_schedular_foreach_task (NNTPGrabDBus *server, GError **error)
int  main (int argc, char **argv)

Define Documentation

#define IS_NNTPGRAB_DBUS ( object   )     (G_TYPE_CHECK_INSTANCE_TYPE ((object), NNTPGRAB_TYPE_DBUS))

Definition at line 52 of file main_dbus.c.

#define IS_NNTPGRAB_DBUS_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_TYPE ((klass), NNTPGRAB_TYPE_DBUS))

Definition at line 53 of file main_dbus.c.

#define NNTPGRAB_DBUS ( object   )     (G_TYPE_CHECK_INSTANCE_CAST ((object), NNTPGRAB_TYPE_DBUS, NNTPGrabDBus))

Definition at line 50 of file main_dbus.c.

#define NNTPGRAB_DBUS_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_CAST ((klass), NNTPGRAB_TYPE_DBUS, NNTPGrabDBusClass))

Definition at line 51 of file main_dbus.c.

#define NNTPGRAB_DBUS_GET_CLASS ( obj   )     (G_TYPE_INSTANCE_GET_CLASS ((obj), NNTPGRAB_TYPE_DBUS, NNTPGrabDBusClass))

Definition at line 54 of file main_dbus.c.

#define NNTPGRAB_TYPE_DBUS   (dbus_get_type ())

Definition at line 49 of file main_dbus.c.


Typedef Documentation

typedef struct NNTPGrabDBus NNTPGrabDBus

Definition at line 26 of file main_dbus.c.

typedef struct NNTPGrabDBusClass NNTPGrabDBusClass

Definition at line 27 of file main_dbus.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
CONFIG_CHANGED_SIGNAL 
PART_DOWNLOAD_START_SIGNAL 
PART_DONE_SIGNAL 
PART_FAILED_SIGNAL 
PART_PROGRESS_UPDATE_SIGNAL 
COLLECTION_ADDED_SIGNAL 
COLLECTION_REMOVED_SIGNAL 
FILE_ADDED_SIGNAL 
FILE_REMOVED_SIGNAL 
FILE_STATE_CHANGED_SIGNAL 
CONNECTION_CONNECTING_SIGNAL 
CONNECTION_CONNECTED_SIGNAL 
CONNECTION_DISCONNECT_SIGNAL 
FATAL_ERROR_SIGNAL 
DEBUG_MESSAGE_SIGNAL 
LAST_SIGNAL 

Definition at line 69 of file main_dbus.c.


Function Documentation

int main ( int  argc,
char **  argv  
)

Definition at line 471 of file main_dbus.c.

gboolean nntpgrab_dbus_config_add_server ( NNTPGrabDBus *  server,
const char *  servername,
GValueArray *  info,
GError **  error  
)

Definition at line 352 of file main_dbus.c.

gboolean nntpgrab_dbus_config_del_server ( NNTPGrabDBus *  server,
const char *  servername,
gboolean *  retval,
GError **  error  
)

Definition at line 358 of file main_dbus.c.

gboolean nntpgrab_dbus_config_edit_server ( NNTPGrabDBus *  server,
const char *  servername,
const GValueArray *  info,
gboolean *  retval,
GError **  error  
)

Definition at line 370 of file main_dbus.c.

gboolean nntpgrab_dbus_config_get_avail_servers ( NNTPGrabDBus *  server,
GPtrArray **  servers,
GError **  error  
)

Definition at line 290 of file main_dbus.c.

gboolean nntpgrab_dbus_config_get_opts ( NNTPGrabDBus *  server,
GValueArray **  opts,
GError **  error  
)

Definition at line 376 of file main_dbus.c.

gboolean nntpgrab_dbus_config_get_server_info ( NNTPGrabDBus *  server,
const char *  servername,
GValueArray **  ret,
GError **  error  
)

Definition at line 296 of file main_dbus.c.

gboolean nntpgrab_dbus_config_set_opts ( NNTPGrabDBus *  server,
const GValueArray *  opts,
GError **  error  
)

Definition at line 382 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_add_task_to_queue ( NNTPGrabDBus *  server,
const char *  collection_name,
const char *  subject,
const char *  poster,
const gint64  stamp,
const gint64  file_size,
char **  groups,
const GPtrArray *  parts,
char **  errmsg,
gboolean *  retval,
GError **  error  
)

Definition at line 425 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_del_task_from_queue ( NNTPGrabDBus *  server,
const char *  collection_name,
const char *  subject,
char **  errmsg,
gboolean *  retval,
GError **  error  
)

Definition at line 431 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_foreach_task ( NNTPGrabDBus *  server,
GError **  error  
)

Definition at line 466 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_get_state ( NNTPGrabDBus *  server,
gint *  state,
GError **  error  
)

Definition at line 413 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_restart_task ( NNTPGrabDBus *  server,
const char *  collection_name,
const char *  subject,
char **  errmsg,
gboolean *  retval,
GError **  error  
)

Definition at line 442 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_save_queue ( NNTPGrabDBus *  server,
char **  errmsg,
gboolean *  retval,
GError **  error  
)

Definition at line 454 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_start ( NNTPGrabDBus *  server,
gboolean *  retval,
GError **  error  
)

Definition at line 388 of file main_dbus.c.

gboolean nntpgrab_dbus_schedular_stop ( NNTPGrabDBus *  server,
gboolean *  retval,
GError **  error  
)

Definition at line 400 of file main_dbus.c.


Generated on Sun Oct 12 01:45:31 2008 for NNTPGrab by  1.5.4