[gnome-photos/wip/edit: 1/4] Add PhotosOperation



commit cb114a154a8b2a354d3f3d49fae7dc745aa22dd9
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 3 09:52:09 2014 +0100

    Add PhotosOperation

 src/Makefile.am        |    2 +
 src/photos-operation.c |   46 ++++++++++++++++++++++++++++++
 src/photos-operation.h |   72 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 120 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 438e0f9..1de9a80 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -135,6 +135,8 @@ gnome_photos_SOURCES = \
        photos-offset-overview-controller.h \
        photos-offset-search-controller.c \
        photos-offset-search-controller.h \
+       photos-operation.c \
+       photos-operation.h \
        photos-organize-collection-dialog.c \
        photos-organize-collection-dialog.h \
        photos-organize-collection-model.c \
diff --git a/src/photos-operation.c b/src/photos-operation.c
new file mode 100644
index 0000000..9f0ab28
--- /dev/null
+++ b/src/photos-operation.c
@@ -0,0 +1,46 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright © 2014 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+
+#include "config.h"
+
+#include "photos-operation.h"
+
+
+G_DEFINE_ABSTRACT_TYPE (PhotosOperation, photos_operation, G_TYPE_OBJECT);
+
+
+static void
+photos_operation_init (PhotosOperation *self)
+{
+}
+
+
+static void
+photos_operation_class_init (PhotosOperationClass *class)
+{
+}
+
+
+GeglNode *
+photos_operation_get_node (PhotosOperation *self)
+{
+  return PHOTOS_OPERATION_GET_CLASS (self)->get_node (self);
+}
diff --git a/src/photos-operation.h b/src/photos-operation.h
new file mode 100644
index 0000000..0f27c11
--- /dev/null
+++ b/src/photos-operation.h
@@ -0,0 +1,72 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright © 2014 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+#ifndef PHOTOS_OPERATION_H
+#define PHOTOS_OPERATION_H
+
+#include <gegl.h>
+
+G_BEGIN_DECLS
+
+#define PHOTOS_TYPE_OPERATION (photos_operation_get_type ())
+
+#define PHOTOS_OPERATION(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+   PHOTOS_TYPE_OPERATION, PhotosOperation))
+
+#define PHOTOS_OPERATION_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_CAST ((klass), \
+   PHOTOS_TYPE_OPERATION, PhotosOperationClass))
+
+#define PHOTOS_IS_OPERATION(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+   PHOTOS_TYPE_OPERATION))
+
+#define PHOTOS_IS_OPERATION_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+   PHOTOS_TYPE_OPERATION))
+
+#define PHOTOS_OPERATION_GET_CLASS(obj) \
+  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+   PHOTOS_TYPE_OPERATION, PhotosOperationClass))
+
+typedef struct _PhotosOperation        PhotosOperation;
+typedef struct _PhotosOperationClass   PhotosOperationClass;
+
+struct _PhotosOperation
+{
+  GObject parent_instance;
+};
+
+struct _PhotosOperationClass
+{
+  GObjectClass parent_class;
+
+  /* vitual methods */
+  GeglNode *(*get_node) (PhotosOperation *self);
+};
+
+GType                  photos_operation_get_type             (void) G_GNUC_CONST;
+
+GeglNode              *photos_operation_get_node             (PhotosOperation *self);
+
+G_END_DECLS
+
+#endif /* PHOTOS_OPERATION_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]