]> git.datanom.net - gtk_lensdatabase.git/blobdiff - src/lens.h
On the way
[gtk_lensdatabase.git] / src / lens.h
index e780bab12dc43975695e3f00abfe1fe057edf81a..f885834cfe429290ed362dc0eeb887440e8a9d7d 100644 (file)
@@ -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
 
This page took 0.530607 seconds and 5 git commands to generate.