~ubuntu-branches/ubuntu/trusty/gnome-photos/trusty

« back to all changes in this revision

Viewing changes to src/photos-search-type.h

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-02-12 06:40:47 UTC
  • Revision ID: package-import@ubuntu.com-20140212064047-33l9kizb5e74s7db
Tags: upstream-3.10.2
Import upstream version 3.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Photos - access, organize and share your photos on GNOME
 
3
 * Copyright © 2012, 2013 Red Hat, Inc.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
 * 02110-1301, USA.
 
19
 */
 
20
 
 
21
/* Based on code from:
 
22
 *   + Documents
 
23
 */
 
24
 
 
25
#ifndef PHOTOS_SEARCH_TYPE_H
 
26
#define PHOTOS_SEARCH_TYPE_H
 
27
 
 
28
#include <glib-object.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define PHOTOS_TYPE_SEARCH_TYPE (photos_search_type_get_type ())
 
33
 
 
34
#define PHOTOS_SEARCH_TYPE(obj) \
 
35
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
36
   PHOTOS_TYPE_SEARCH_TYPE, PhotosSearchType))
 
37
 
 
38
#define PHOTOS_SEARCH_TYPE_CLASS(klass) \
 
39
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
40
   PHOTOS_TYPE_SEARCH_TYPE, PhotosSearchTypeClass))
 
41
 
 
42
#define PHOTOS_IS_SEARCH_TYPE(obj) \
 
43
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
44
   PHOTOS_TYPE_SEARCH_TYPE))
 
45
 
 
46
#define PHOTOS_IS_SEARCH_TYPE_CLASS(klass) \
 
47
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
48
   PHOTOS_TYPE_SEARCH_TYPE))
 
49
 
 
50
#define PHOTOS_SEARCH_TYPE_GET_CLASS(obj) \
 
51
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
52
   PHOTOS_TYPE_SEARCH_TYPE, PhotosSearchTypeClass))
 
53
 
 
54
#define PHOTOS_SEARCH_TYPE_STOCK_ALL    "all"
 
55
#define PHOTOS_SEARCH_TYPE_STOCK_COLLECTIONS "collections"
 
56
#define PHOTOS_SEARCH_TYPE_STOCK_FAVORITES "favorites"
 
57
#define PHOTOS_SEARCH_TYPE_STOCK_PHOTOS "photos"
 
58
 
 
59
typedef struct _PhotosSearchType        PhotosSearchType;
 
60
typedef struct _PhotosSearchTypeClass   PhotosSearchTypeClass;
 
61
typedef struct _PhotosSearchTypePrivate PhotosSearchTypePrivate;
 
62
 
 
63
struct _PhotosSearchType
 
64
{
 
65
  GObject parent_instance;
 
66
  PhotosSearchTypePrivate *priv;
 
67
};
 
68
 
 
69
struct _PhotosSearchTypeClass
 
70
{
 
71
  GObjectClass parent_class;
 
72
};
 
73
 
 
74
GType                photos_search_type_get_type           (void) G_GNUC_CONST;
 
75
 
 
76
PhotosSearchType    *photos_search_type_new                (const gchar *id, const gchar *name);
 
77
 
 
78
PhotosSearchType    *photos_search_type_new_full           (const gchar *id,
 
79
                                                            const gchar *name,
 
80
                                                            const gchar *where,
 
81
                                                            const gchar *filter);
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif /* PHOTOS_SEARCH_TYPE_H */