maemo-ui/src/mmyth_schedulerui.h
author renatofilho
Thu Jun 14 20:40:47 2007 +0100 (2007-06-14)
branchtrunk
changeset 754 cb885ee44618
parent 244 c88244670b08
permissions -rw-r--r--
[svn r760] changed code style to Kernel Normal Form style with tabsize=4
     1 #ifndef MMYTH_SCHEDULERECORDING_H_
     2 #define MMYTH_SCHEDULERECORDING_H_
     3 
     4 #include <glib.h>
     5 
     6 #include <gmyth/gmyth_backendinfo.h>
     7 
     8 typedef struct _MMythSchedulerUI {
     9 
    10     GList          *channel_list;
    11 
    12     GtkWidget      *main_widget;
    13 
    14     GtkWidget      *channel_combobox;
    15     GtkWidget      *freq_combobox;
    16     GtkWidget      *hour_spinbutton;
    17     GtkWidget      *min_spinbutton;
    18     GtkWidget      *duration_spinbutton;
    19     GtkWidget      *title_entry;
    20     GtkWidget      *date_button;
    21 
    22     GtkWidget      *calendar_dialog;
    23     GtkWidget      *calendar;
    24 
    25     guint           year_temp,
    26                     month_temp,
    27                     day_temp;
    28 
    29     GMythBackendInfo *backend_info;
    30 
    31 } MMythSchedulerUI;
    32 
    33 typedef struct {
    34     long int        channel_id;
    35 
    36     struct tm       start_tm;
    37 
    38     int             duration;
    39     int             frequency;
    40 
    41     GString        *title;
    42 
    43 } ScheduleEntry;
    44 
    45 MMythSchedulerUI *mmyth_schedulerui_new(GMythBackendInfo * backend_info);
    46 
    47 gboolean        mmyth_schedulerui_save(MMythSchedulerUI * scheduler_ui);
    48 
    49 void            mmyth_schedulerui_cb_schedule_button(GtkButton * button,
    50                                                      gpointer user_data);
    51 
    52 
    53 #endif                          /* MMYTH_SCHEDULERECORDING_H_ */