Logo Search packages:      
Sourcecode: mail-notification version File versions

mn-automation.c

/* Generated by GOB (v2.0.11) on Sun Mar  6 22:34:27 2005
   (do not edit directly) */

/* End world hunger, donate to the World Food Programme, http://www.wfp.org */

#define GOB_VERSION_MAJOR 2
#define GOB_VERSION_MINOR 0
#define GOB_VERSION_PATCHLEVEL 11

#define selfp (self->_priv)

#include <string.h> /* memset() */

#include "mn-automation.h"

#include "mn-automation-private.h"

#ifdef G_LIKELY
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
#else /* ! G_LIKELY */
#define ___GOB_LIKELY(expr) (expr)
#define ___GOB_UNLIKELY(expr) (expr)
#endif /* G_LIKELY */

#line 25 "mn-automation.gob"

#include "mn-main-window.h"
#include "mn-summary-popup.h"
#include "mn-properties-dialog.h"
#include "mn-shell.h"

#line 34 "mn-automation.c"
/* self casting macros */
#define SELF(x) MN_AUTOMATION(x)
#define SELF_CONST(x) MN_AUTOMATION_CONST(x)
#define IS_SELF(x) MN_IS_AUTOMATION(x)
#define TYPE_SELF MN_TYPE_AUTOMATION
#define SELF_CLASS(x) MN_AUTOMATION_CLASS(x)

#define SELF_GET_CLASS(x) MN_AUTOMATION_GET_CLASS(x)

/* self typedefs */
typedef MNAutomation Self;
typedef MNAutomationClass SelfClass;

/* here are local prototypes */
static void mn_automation_init (MNAutomation * o) G_GNUC_UNUSED;
static void mn_automation_class_init (MNAutomationClass * c) G_GNUC_UNUSED;
static void mn_automation_update (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_report (PortableServer_Servant servant, CORBA_char ** report, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_displayMainWindow (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_displayProperties (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_displayAbout (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_closePopup (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;
static void mn_automation_quit (PortableServer_Servant servant, CORBA_Environment * env) G_GNUC_UNUSED;

/* pointer to the class of our parent */
static BonoboObjectClass *parent_class = NULL;

/* Short form macros */
#define self_update mn_automation_update
#define self_report mn_automation_report
#define self_displayMainWindow mn_automation_displayMainWindow
#define self_displayProperties mn_automation_displayProperties
#define self_displayAbout mn_automation_displayAbout
#define self_closePopup mn_automation_closePopup
#define self_quit mn_automation_quit
#define self_new mn_automation_new
GType
mn_automation_get_type (void)
{
      static GType type = 0;

      if ___GOB_UNLIKELY(type == 0) {
            static const GTypeInfo info = {
                  sizeof (MNAutomationClass),
                  (GBaseInitFunc) NULL,
                  (GBaseFinalizeFunc) NULL,
                  (GClassInitFunc) mn_automation_class_init,
                  NULL, /* class_finalize */
                  NULL, /* class_data */
                  sizeof (MNAutomation),
                  0, /* n_preallocs */
                  (GInstanceInitFunc)  mn_automation_init,
                  NULL
            };

            type = bonobo_type_unique (
                  BONOBO_OBJECT_TYPE,
                  POA_GNOME_MNAutomation__init, NULL,
                  G_STRUCT_OFFSET (MNAutomationClass, _epv),
                  &info, "MNAutomation");
      }

      return type;
}

/* a macro for creating a new object of our type */
#define GET_NEW ((MNAutomation *)g_object_new(mn_automation_get_type(), NULL))

/* a function for creating a new object of our type */
#include <stdarg.h>
static MNAutomation * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
static MNAutomation *
GET_NEW_VARG (const char *first, ...)
{
      MNAutomation *ret;
      va_list ap;
      va_start (ap, first);
      ret = (MNAutomation *)g_object_new_valist (mn_automation_get_type (), first, ap);
      va_end (ap);
      return ret;
}

static void 
mn_automation_init (MNAutomation * o G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "MN:Automation::init"
}
#undef __GOB_FUNCTION__
static void 
mn_automation_class_init (MNAutomationClass * c G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "MN:Automation::class_init"

      parent_class = g_type_class_ref (BONOBO_TYPE_OBJECT);

#line 34 "mn-automation.gob"
      c->_epv.update = self_update;
#line 41 "mn-automation.gob"
      c->_epv.report = self_report;
#line 50 "mn-automation.gob"
      c->_epv.displayMainWindow = self_displayMainWindow;
#line 57 "mn-automation.gob"
      c->_epv.displayProperties = self_displayProperties;
#line 64 "mn-automation.gob"
      c->_epv.displayAbout = self_displayAbout;
#line 71 "mn-automation.gob"
      c->_epv.closePopup = self_closePopup;
#line 78 "mn-automation.gob"
      c->_epv.quit = self_quit;
#line 144 "mn-automation.c"
}
#undef __GOB_FUNCTION__



#line 34 "mn-automation.gob"
static void 
mn_automation_update (PortableServer_Servant servant, CORBA_Environment * env)
#line 153 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::update"
{
#line 36 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_mailboxes_check(mn_shell->mailboxes);
  }}
#line 162 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 41 "mn-automation.gob"
static void 
mn_automation_report (PortableServer_Servant servant, CORBA_char ** report, CORBA_Environment * env)
#line 168 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::report"
{
#line 45 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_shell_report(mn_shell, report);
  }}
#line 177 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 50 "mn-automation.gob"
static void 
mn_automation_displayMainWindow (PortableServer_Servant servant, CORBA_Environment * env)
#line 183 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::displayMainWindow"
{
#line 52 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_main_window_display();
  }}
#line 192 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 57 "mn-automation.gob"
static void 
mn_automation_displayProperties (PortableServer_Servant servant, CORBA_Environment * env)
#line 198 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::displayProperties"
{
#line 59 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_properties_dialog_display();
  }}
#line 207 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 64 "mn-automation.gob"
static void 
mn_automation_displayAbout (PortableServer_Servant servant, CORBA_Environment * env)
#line 213 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::displayAbout"
{
#line 66 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_shell_display_about_dialog(mn_shell);
  }}
#line 222 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 71 "mn-automation.gob"
static void 
mn_automation_closePopup (PortableServer_Servant servant, CORBA_Environment * env)
#line 228 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::closePopup"
{
#line 73 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    mn_summary_popup_destroy();
  }}
#line 237 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 78 "mn-automation.gob"
static void 
mn_automation_quit (PortableServer_Servant servant, CORBA_Environment * env)
#line 243 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::quit"
{
#line 80 "mn-automation.gob"
      
    g_return_if_fail(mn_shell != NULL);
    g_object_unref(mn_shell);
  }}
#line 252 "mn-automation.c"
#undef __GOB_FUNCTION__

#line 85 "mn-automation.gob"
MNAutomation * 
mn_automation_new (void)
#line 258 "mn-automation.c"
{
#define __GOB_FUNCTION__ "MN:Automation::new"
{
#line 87 "mn-automation.gob"
      
    return GET_NEW;
  }}
#line 266 "mn-automation.c"
#undef __GOB_FUNCTION__

Generated by  Doxygen 1.6.0   Back to index