KPCalendarEntry

KPCalendarEntry — Base class for calendar entries

Synopsis




struct      KPCalendarEntry_;
typedef     KPCalendarEntry;
struct      KPCalendarEntryClass_;
KPCalendarEntry* kp_calendar_entry_new      (void);
guint       kp_calendar_entry_get_id        (KPCalendarEntry *entry);
gchar*      kp_calendar_entry_to_string     (KPCalendarEntry *entry);
xmlNodePtr  kp_calendar_entry_to_xml        (KPCalendarEntry *entry);
gchar*      kp_calendar_entry_get_icon_name (KPCalendarEntry *entry);
gboolean    kp_calendar_entry_parse         (KPCalendarEntry *entry,
                                             xmlNodePtr node);
gint        kp_calendar_entry_cmp           (const KPCalendarEntry *entry,
                                             const KPCalendarEntry *entry2);
gchar*      kp_calendar_entry_get_human_name
                                            (KPCalendarEntry *entry);
void        kp_calendar_entry_emit_changed  (KPCalendarEntry *entry,
                                             const gchar *old_string);
gboolean    kp_calendar_entry_get_date      (KPCalendarEntry *entry,
                                             KPDate *date);
gboolean    kp_calendar_entry_get_time      (KPCalendarEntry *entry,
                                             KPTime *time);

Description

Details

struct KPCalendarEntry_

struct KPCalendarEntry_ {
  GObject           parent_instance;

  /* Private */
  guint             id;
  KPCalendarTime   *datetime;
  KPParamList      *list;
};


KPCalendarEntry

typedef struct KPCalendarEntry_ KPCalendarEntry;


struct KPCalendarEntryClass_

struct KPCalendarEntryClass_ {
  GObjectClass parent_class;

  /* virtual functions */
  gchar *                 (*get_human_name) (KPCalendarEntry *entry);
  gchar *                 (*get_icon_name) (KPCalendarEntry *entry);
  G_CONST_RETURN gchar *  (*to_string) (KPCalendarEntry *entry);
  xmlNodePtr              (*to_xml) (KPCalendarEntry *entry);
  gboolean                (*parse) (KPCalendarEntry *entry, xmlNodePtr node);

  /* signals */
  void              (*changed) (KPCalendarEntry *);
};


kp_calendar_entry_new ()

KPCalendarEntry* kp_calendar_entry_new      (void);

Returns :

kp_calendar_entry_get_id ()

guint       kp_calendar_entry_get_id        (KPCalendarEntry *entry);

entry :
Returns :

kp_calendar_entry_to_string ()

gchar*      kp_calendar_entry_to_string     (KPCalendarEntry *entry);

entry :
Returns :

kp_calendar_entry_to_xml ()

xmlNodePtr  kp_calendar_entry_to_xml        (KPCalendarEntry *entry);

entry :
Returns :

kp_calendar_entry_get_icon_name ()

gchar*      kp_calendar_entry_get_icon_name (KPCalendarEntry *entry);

Get name of the icon for some KPCalendarEntry derived object.

entry : A KPCalendarEntry
Returns : A newly-allocated string that is a path to the icon file.

kp_calendar_entry_parse ()

gboolean    kp_calendar_entry_parse         (KPCalendarEntry *entry,
                                             xmlNodePtr node);

entry :
node :
Returns :

kp_calendar_entry_cmp ()

gint        kp_calendar_entry_cmp           (const KPCalendarEntry *entry,
                                             const KPCalendarEntry *entry2);

entry :
entry2 :
Returns :

kp_calendar_entry_get_human_name ()

gchar*      kp_calendar_entry_get_human_name
                                            (KPCalendarEntry *entry);

entry :
Returns :

kp_calendar_entry_emit_changed ()

void        kp_calendar_entry_emit_changed  (KPCalendarEntry *entry,
                                             const gchar *old_string);

entry :
old_string :

kp_calendar_entry_get_date ()

gboolean    kp_calendar_entry_get_date      (KPCalendarEntry *entry,
                                             KPDate *date);

entry :
date :
Returns :

kp_calendar_entry_get_time ()

gboolean    kp_calendar_entry_get_time      (KPCalendarEntry *entry,
                                             KPTime *time);

entry :
time :
Returns :