File: freetuxtv-channels-group-infos.h

package info (click to toggle)
freetuxtv 0.6.8~dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 4,236 kB
  • ctags: 1,486
  • sloc: ansic: 15,437; sh: 11,410; xml: 1,333; makefile: 678; sql: 135
file content (87 lines) | stat: -rw-r--r-- 3,110 bytes parent folder | download | duplicates (4)
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
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * freetuxtv
 * Copyright (C) Eric Beuque 2010 <eric.beuque@gmail.com>
 * 
 * freetuxtv 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 3 of the License, or
 * (at your option) any later version.
 * 
 * freetuxtv 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef _FREETUXTV_CHANNELS_GROUP_INFOS_H_
#define _FREETUXTV_CHANNELS_GROUP_INFOS_H_

#include <glib-object.h>

G_BEGIN_DECLS

typedef enum {
	FREETUXTV_CHANNELSGROUP_TYPEGROUP_PLAYLIST = 0,
	FREETUXTV_CHANNELSGROUP_TYPEGROUP_FAVORITES
} FREETUXTV_CHANNELSGROUP_TYPEGROUP;

#define FREETUXTV_TYPE_CHANNELS_GROUP_INFOS             (freetuxtv_channels_group_infos_get_type ())
#define FREETUXTV_CHANNELS_GROUP_INFOS(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), FREETUXTV_TYPE_CHANNELS_GROUP_INFOS, FreetuxTVChannelsGroupInfos))
#define FREETUXTV_CHANNELS_GROUP_INFOS_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), FREETUXTV_TYPE_CHANNELS_GROUP_INFOS, FreetuxTVChannelsGroupInfosClass))
#define FREETUXTV_IS_CHANNELS_GROUP_INFOS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FREETUXTV_TYPE_CHANNELS_GROUP_INFOS))
#define FREETUXTV_IS_CHANNELS_GROUP_INFOS_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), FREETUXTV_TYPE_CHANNELS_GROUP_INFOS))
#define FREETUXTV_CHANNELS_GROUP_INFOS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), FREETUXTV_TYPE_CHANNELS_GROUP_INFOS, FreetuxTVChannelsGroupInfosClass))

typedef struct _FreetuxTVChannelsGroupInfosClass FreetuxTVChannelsGroupInfosClass;
typedef struct _FreetuxTVChannelsGroupInfos FreetuxTVChannelsGroupInfos;

struct _FreetuxTVChannelsGroupInfosClass
{
	GObjectClass parent_class;
};

struct _FreetuxTVChannelsGroupInfos
{
	GObject parent_instance;

	int id;
	int position;
	gchar *name;
	gchar *uri;

	FREETUXTV_CHANNELSGROUP_TYPEGROUP type;

	gchar *bregex;
	gchar *eregex;

	int nb_channels;
};

GType freetuxtv_channels_group_infos_get_type (void) G_GNUC_CONST;

FreetuxTVChannelsGroupInfos*
freetuxtv_channels_group_infos_new(gchar *name, FREETUXTV_CHANNELSGROUP_TYPEGROUP type);

void
freetuxtv_channels_group_infos_set_id (FreetuxTVChannelsGroupInfos *self, int id);

void
freetuxtv_channels_group_infos_set_position (FreetuxTVChannelsGroupInfos *self, int position);

void
freetuxtv_channels_group_infos_set_name (FreetuxTVChannelsGroupInfos *self, gchar *name);

void
freetuxtv_channels_group_infos_set_uri (FreetuxTVChannelsGroupInfos *self, gchar *uri);

void
freetuxtv_channels_group_infos_set_regex (FreetuxTVChannelsGroupInfos *self, gchar *bregex, gchar *eregex);

G_END_DECLS

#endif /* _FREETUXTV_CHANNELS_GROUP_INFOS_H_ */