X-Git-Url: http://git.datanom.net/gtk_lensdatabase.git/blobdiff_plain/b579f6168df36c9cb62de1c1c21ce595fd5e1165..HEAD:/src/lens.h diff --git a/src/lens.h b/src/lens.h index e780bab..f885834 100644 --- a/src/lens.h +++ b/src/lens.h @@ -39,25 +39,30 @@ G_BEGIN_DECLS typedef struct _Lens Lens; typedef struct _LensClass LensClass; -typedef struct _LensPrivate LensPrivate; -struct _Lens -{ - GObject parent; - /* add your public declarations here */ - LensPrivate *priv; -}; - -struct _LensClass -{ - GObjectClass parent_class; +struct _LensClass { + GObjectClass parent_class; }; GType lens_get_type (void); +/* + * gint id; + gchar* sn; + gchar* data; + gchar* notes; + gchar* date; +*/ +Lens *lens_new (gint id, const gchar* sn, const gchar* data, GError** error); +gint lens_get_id(Lens* self, GError** error); +void lens_set_sn(Lens* self, const gchar* sn, GError** error); +void lens_set_data(Lens* self, const gchar* data, GError** error); +void lens_set_notes(Lens* self, const gchar* notes, GError** error); +void lens_set_date(Lens* self, const gchar* date, GError** error); +gchar* lens_to_string(Lens* self); +Lens* lens_get_copy(const Lens* self, GError** error); -GObject *lens_new (void); - +gchar* get_current_timestamp(); G_END_DECLS