[gnome-photos/wip/rishi/resource-urn: 2/2] Add PhotosCancellable



commit abb3d50ec93ed0ad27cd538b705d2b0fd1d512bd
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jul 13 19:00:57 2016 +0200

    Add PhotosCancellable

 src/Makefile.am          |    2 ++
 src/photos-cancellable.h |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 4f541cc..ee4d3b1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -44,6 +44,8 @@ gnome_photos_SOURCES = \
        photos-base-item.h \
        photos-camera-cache.c \
        photos-camera-cache.h \
+       photos-cancellable.c \
+       photos-cancellable.h \
        photos-collection-icon-watcher.c \
        photos-collection-icon-watcher.h \
        photos-create-collection-icon-job.c \
diff --git a/src/photos-cancellable.h b/src/photos-cancellable.h
new file mode 100644
index 0000000..65f856e
--- /dev/null
+++ b/src/photos-cancellable.h
@@ -0,0 +1,37 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright © 2016 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_CANCELLABLE_H
+#define PHOTOS_CANCELLABLE_H
+
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+#define PHOTOS_TYPE_CANCELLABLE (photos_cancellable_get_type ())
+G_DECLARE_FINAL_TYPE (PhotosCancellable, photos_cancellable, PHOTOS, CANCELLABLE, GCancellable)
+
+GCancellable          *photos_cancellable_new                    (void);
+
+void                  *photos_cancellable_add                    (PhotosCancellable *self);
+
+G_END_DECLS
+
+#endif /* PHOTOS_CANCELLABLE_H */


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