summaryrefslogtreecommitdiff
path: root/src/eom-image-save-info.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-06 19:30:49 -0300
committerPerberos <[email protected]>2011-11-06 19:30:49 -0300
commita8d28a6ce7e0c56dacba5d527d9134573a008902 (patch)
tree8852602004b5a13cc5d1ce3ecd7a314be81d1198 /src/eom-image-save-info.h
downloadeom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.bz2
eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.xz
inicial
Diffstat (limited to 'src/eom-image-save-info.h')
-rw-r--r--src/eom-image-save-info.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/eom-image-save-info.h b/src/eom-image-save-info.h
new file mode 100644
index 0000000..8a3c36f
--- /dev/null
+++ b/src/eom-image-save-info.h
@@ -0,0 +1,54 @@
+#ifndef _EOM_IMAGE_SAVE_INFO_H_
+#define _EOM_IMAGE_SAVE_INFO_H_
+
+#include <glib-object.h>
+#include <gio/gio.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+G_BEGIN_DECLS
+
+struct EomImage;
+
+#define EOM_TYPE_IMAGE_SAVE_INFO (eom_image_save_info_get_type ())
+#define EOM_IMAGE_SAVE_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EOM_TYPE_IMAGE_SAVE_INFO, EomImageSaveInfo))
+#define EOM_IMAGE_SAVE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EOM_TYPE_IMAGE_SAVE_INFO, EomImageSaveInfoClass))
+#define EOM_IS_IMAGE_SAVE_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EOM_TYPE_IMAGE_SAVE_INFO))
+#define EOM_IS_IMAGE_SAVE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EOM_TYPE_IMAGE_SAVE_INFO))
+#define EOM_IMAGE_SAVE_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EOM_TYPE_IMAGE_SAVE_INFO, EomImageSaveInfoClass))
+
+typedef struct _EomImageSaveInfo EomImageSaveInfo;
+typedef struct _EomImageSaveInfoClass EomImageSaveInfoClass;
+
+struct _EomImageSaveInfo {
+ GObject parent;
+
+ GFile *file;
+ char *format;
+ gboolean exists;
+ gboolean local;
+ gboolean has_metadata;
+ gboolean modified;
+ gboolean overwrite;
+
+ float jpeg_quality; /* valid range: [0.0 ... 1.0] */
+};
+
+struct _EomImageSaveInfoClass {
+ GObjectClass parent_klass;
+};
+
+#define EOM_FILE_FORMAT_JPEG "jpeg"
+
+GType eom_image_save_info_get_type (void) G_GNUC_CONST;
+
+EomImageSaveInfo *eom_image_save_info_from_image (gpointer data);
+
+EomImageSaveInfo *eom_image_save_info_from_uri (const char *uri,
+ GdkPixbufFormat *format);
+
+EomImageSaveInfo *eom_image_save_info_from_file (GFile *file,
+ GdkPixbufFormat *format);
+
+G_END_DECLS
+
+#endif /* _EOM_IMAGE_SAVE_INFO_H_ */