pilot-qof 0.2.3
Data Structures | Defines | Functions | Variables
qof-datebook.c File Reference

QOF datebook definitions for pilot-link. More...

#include "config.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <qof.h>
#include <stdlib.h>
#include "pi-datebook.h"
#include "qof-main.h"
#include "pilot-qof.h"
#include "qof-datebook.h"

Go to the source code of this file.

Data Structures

struct  QofDateBook

Defines

#define _GNU_SOURCE
#define ENUM_REPEAT_LIST(_)
 see QOF or alioth for information on this macro.
#define ENUM_ALARM_UNIT(_)   _(advMinutes,) _(advHours,) _(advDays,)
 Units to measure the digit entered in alarm_advance.
#define ENUM_MONTH_DAYQ(_)

Functions

static QofDateBookdatebook_create (QofBook *book)
 Create a datebook object in QOF.
Appointment_t * datebook_get_pilot (QofInstance *inst)
static gboolean datebook_getEvent (QofDateBook *d)
static QofTime * datebook_getBegin (QofDateBook *d)
static QofTime * datebook_getEnd (QofDateBook *d)
static gboolean datebook_getAlarm (QofDateBook *d)
static gint datebook_getAdvance (QofDateBook *d)
static const gchar * datebook_getAdvanceUnit (QofDateBook *d)
 Uses ENUM_ALARM_UNIT to convert to a string.
static const gchar * datebook_getRepeatType (QofDateBook *d)
static gboolean datebook_getRepeatForever (QofDateBook *d)
static QofTime * datebook_getRepeatEnd (QofDateBook *d)
static gint datebook_getRepeatFrequency (QofDateBook *d)
 How often to repeat.
static const gchar * datebook_getRepeatDay (QofDateBook *d)
static gchar * datebook_getRepeatWeekStart (QofDateBook *d)
static gint datebook_getExceptions (QofDateBook *d)
static gchar * datebook_getDescription (QofDateBook *d)
static gchar * datebook_getNote (QofDateBook *d)
static gchar * datebook_getCategory (QofDateBook *d)
static double datebook_getDuration (QofDateBook *d)
static gboolean datebook_check_repeater (QofDateBook *d)
static void datebook_set_repeater (QofDateBook *d, gboolean e)
static void datebook_setEvent (QofDateBook *d, gboolean e)
static void datebook_setBegin (QofDateBook *d, QofTime *qt)
static void datebook_setEnd (QofDateBook *d, QofTime *qt)
static void datebook_setAlarm (QofDateBook *d, gboolean e)
static void datebook_setAdvance (QofDateBook *d, gint e)
static void datebook_setAdvanceUnit (QofDateBook *d, const gchar *e)
static void datebook_setRepeatType (QofDateBook *d, const gchar *type_label)
 Uses ENUM_REPEAT_LIST to convert to an enum value.
static void datebook_setRepeatForever (QofDateBook *d, gboolean e)
static void datebook_setRepeatEnd (QofDateBook *d, QofTime *qt)
static void datebook_setRepeatFrequency (QofDateBook *d, gint e)
static void datebook_setRepeatDay (QofDateBook *d, const gchar *e)
static void datebook_setRepeatWeekStart (QofDateBook *d, gchar *e)
 Set the day to start the week from the locale name.
static void datebook_setExceptions (QofDateBook *d, gint e)
static void datebook_setDescription (QofDateBook *d, gchar *h)
static void datebook_setNote (QofDateBook *d, gchar *h)
static void datebook_setCategory (QofDateBook *d, gchar *n)
void datebook_repeater_clone (QofEntity *ent, QofTime *qt_end, QofTime *qt_increment)
static const gchar * datebookPrintable (gpointer instance)
gboolean DateBookRegister (void)

Variables

static QofLogModule log_module = "pilotqof-objects"
static QofDateFormat df = 0
 Get the locale name of the day to start the week.
static QofObject datebook_object_def

Detailed Description

QOF datebook definitions for pilot-link.

Author:
Copyright (c) 2004-2007 Neil Williams <linux@codehelp.co.uk>

Definition in file qof-datebook.c.