[svn r362] Some fixes in the GIOWatcher clean-ups, and changed the API version number.
4 * @file gmyth/gmyth_scheduler.h
6 * @brief <p> The scheduler encapsulates all functions for browsing, scheduling
7 * and modifying the recorded content.
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Alexsandro Jose Virginio dos Santos <alexsandro.santos@indt.org.br>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #ifndef __GMYTH_SCHEDULER_H__
30 #define __GMYTH_SCHEDULER_H__
32 #include <glib-object.h>
35 #include "gmyth_common.h"
36 #include "gmyth_query.h"
37 #include "gmyth_backendinfo.h"
41 #define GMYTH_SCHEDULER_TYPE (gmyth_scheduler_get_type ())
42 #define GMYTH_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_SCHEDULER_TYPE, GMythScheduler))
43 #define GMYTH_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_SCHEDULER_TYPE, GMythSchedulerClass))
44 #define IS_GMYTH_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_SCHEDULER_TYPE))
45 #define IS_GMYTH_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_SCHEDULER_TYPE))
46 #define GMYTH_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_SCHEDULER_TYPE, GMythSchedulerClass))
49 typedef struct _GMythScheduler GMythScheduler;
50 typedef struct _GMythSchedulerClass GMythSchedulerClass;
52 struct _GMythSchedulerClass
54 GObjectClass parent_class;
60 struct _GMythScheduler
64 unsigned long recordid;
72 short int autotranscode;
75 short int autocommflag;
76 short int autouserjob1;
77 short int autouserjob2;
78 short int autouserjob3;
79 short int autouserjob4;
94 GString *searchForWhat;
96 GMythQuery *msqlquery;
97 GMythBackendInfo *backend_info;
105 GTimeVal* start_time;
110 GString *description;
120 GTimeVal* start_time;
125 GString *description;
135 GType gmyth_scheduler_get_type (void);
137 GMythScheduler* gmyth_scheduler_new ();
138 gboolean gmyth_scheduler_connect (GMythScheduler *scheduler,
139 GMythBackendInfo *backend_info);
140 gboolean gmyth_scheduler_connect_with_timeout (GMythScheduler *scheduler,
141 GMythBackendInfo *backend_info, guint timeout);
142 gboolean gmyth_scheduler_disconnect (GMythScheduler *scheduler);
144 gint gmyth_scheduler_get_schedule_list (GMythScheduler *scheduler,
146 gint gmyth_scheduler_get_recorded_list (GMythScheduler *scheduler,
149 GMythProgramInfo* gmyth_scheduler_get_recorded (GMythScheduler *scheduler,
150 GString *channel, GTimeVal* starttime);
152 gint gmyth_scheduler_add_schedule(GMythScheduler *scheduler,
153 ScheduleInfo *schedule_info);
155 gint gmyth_scheduler_delete_schedule (GMythScheduler *scheduler,
157 gint gmyth_scheduler_delete_recorded (GMythScheduler *scheduler,
160 void gmyth_scheduler_recorded_info_get_preview (RecordedInfo *info,
163 void gmyth_scheduler_schedule_info_free (ScheduleInfo *info);
164 void gmyth_scheduler_recorded_info_free (RecordedInfo *info);
168 #endif /* __GMYTH_SCHEDULER_H__ */