summaryrefslogtreecommitdiff
path: root/attic/woohaa/wh-video-model-row.h
blob: fce0fdd33079594bd5fec3a8be43cccf79257626 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* wh-video-model-row.h */
#ifndef _WH_VIDEO_MODEL_ROW
#define _WH_VIDEO_MODEL_ROW

#include <glib-object.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

G_BEGIN_DECLS

#define WH_TYPE_VIDEO_MODEL_ROW wh_video_model_row_get_type()

#define WH_VIDEO_MODEL_ROW(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  WH_TYPE_VIDEO_MODEL_ROW, WHVideoModelRow))

#define WH_VIDEO_MODEL_ROW_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  WH_TYPE_VIDEO_MODEL_ROW, WHVideoModelRowClass))

#define WH_IS_VIDEO_MODEL_ROW(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  WH_TYPE_VIDEO_MODEL_ROW))

#define WH_IS_VIDEO_MODEL_ROW_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  WH_TYPE_VIDEO_MODEL_ROW))

#define WH_VIDEO_MODEL_ROW_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  WH_TYPE_VIDEO_MODEL_ROW, WHVideoModelRowClass))

typedef struct {
  GObject parent;
} WHVideoModelRow;

typedef struct {
  GObjectClass parent_class;
} WHVideoModelRowClass;

#include "wh-video-row-renderer.h"

GType wh_video_model_row_get_type (void);

WHVideoModelRow* wh_video_model_row_new (void);

G_CONST_RETURN gchar*
wh_video_model_row_get_path (WHVideoModelRow *row);

void
wh_video_model_row_set_path (WHVideoModelRow *row, const gchar *path);

G_CONST_RETURN gchar*
wh_video_model_row_get_title (WHVideoModelRow *row);

void
wh_video_model_row_set_title (WHVideoModelRow *row, const gchar *title);

gint
wh_video_model_row_get_age (WHVideoModelRow *row);

void
wh_video_model_row_set_age (WHVideoModelRow *row, gint age);

gint
wh_video_model_row_get_n_views (WHVideoModelRow *row);

void
wh_video_model_row_set_n_views (WHVideoModelRow *row, gint n_views);

gint
wh_video_model_row_get_vtime (WHVideoModelRow *row);

void
wh_video_model_row_set_vtime (WHVideoModelRow *row, gint vtime);

void
wh_video_model_row_set_renderer (WHVideoModelRow    *row, 
				 WHVideoRowRenderer *renderer);

WHVideoRowRenderer*
wh_video_model_row_get_renderer (WHVideoModelRow    *row);

void
wh_video_model_row_set_extended_info (WHVideoModelRow *row,
				      const gchar     *series,
				      const gchar     *episode);

void
wh_video_model_row_get_extended_info (WHVideoModelRow *row,
				      gchar          **series,
				      gchar          **episode);

GdkPixbuf*
wh_video_model_row_get_thumbnail (WHVideoModelRow *row);

void
wh_video_model_row_set_thumbnail (WHVideoModelRow *row,
				  GdkPixbuf       *pixbuf);

G_END_DECLS

#endif /* _WH_VIDEO_MODEL_ROW */