summaryrefslogtreecommitdiff
path: root/gfbgraph/gfbgraph-album.h
blob: b752e5bebb8a72fba6c04bddf1235e9738175c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-  */
/*
 * libgfbgraph - GObject library for Facebook Graph API
 * Copyright (C) 2013 Álvaro Peña <alvaropg@gmail.com>
 *               2020 Leesoo Ahn <fedoraproject.org>
 *
 * GFBGraph is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * GFBGraph 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with GFBGraph.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __GFBGRAPH_ALBUM_H__
#define __GFBGRAPH_ALBUM_H__

#include <gfbgraph/gfbgraph-node.h>
#include <gfbgraph/gfbgraph-authorizer.h>

G_BEGIN_DECLS

#define GFBGRAPH_TYPE_ALBUM  (gfbgraph_album_get_type())
#define GFBGRAPH_ALBUM(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST((obj), GFBGRAPH_TYPE_ALBUM,GFBGraphAlbum))
#define GFBGRAPH_ALBUM_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST((klass), GFBGRAPH_TYPE_ALBUM,GFBGraphAlbumClass))
#define GFBGRAPH_IS_ALBUM(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), GFBGRAPH_TYPE_ALBUM))
#define GFBGRAPH_IS_ALBUM_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE((klass), GFBGRAPH_TYPE_ALBUM))
#define GFBGRAPH_ALBUM_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS((obj), GFBGRAPH_TYPE_ALBUM,GFBGraphAlbumClass))

typedef struct _GFBGraphAlbum        GFBGraphAlbum;
typedef struct _GFBGraphAlbumClass   GFBGraphAlbumClass;
typedef struct _GFBGraphAlbumPrivate GFBGraphAlbumPrivate;

G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphAlbum, g_object_unref)

struct _GFBGraphAlbum {
  GFBGraphNode parent;

    /*< private >*/
  GFBGraphAlbumPrivate *priv;
};

struct _GFBGraphAlbumClass {
  GFBGraphNodeClass parent_class;
};

GType          gfbgraph_album_get_type    (void) G_GNUC_CONST;
GFBGraphAlbum* gfbgraph_album_new         (void);
GFBGraphAlbum* gfbgraph_album_new_from_id (GFBGraphAuthorizer  *authorizer,
                                           const gchar         *id,
                                           GError             **error);

const gchar*   gfbgraph_album_get_name           (GFBGraphAlbum *album);
const gchar*   gfbgraph_album_get_description    (GFBGraphAlbum *album);
const gchar*   gfbgraph_album_get_cover_photo_id (GFBGraphAlbum *album);
guint          gfbgraph_album_get_count          (GFBGraphAlbum *album);

void           gfbgraph_album_set_name           (GFBGraphAlbum *album,
                                                  const gchar   *name);
void           gfbgraph_album_set_description    (GFBGraphAlbum *album,
                                                  const gchar   *description);

G_END_DECLS

#endif /* __GFBGRAPH_ALBUM_H__ */