gmyth/src/gmyth_file_transfer.h
branchtrunk
changeset 655 ad1457d65f74
parent 545 7f0a3066f6ab
child 698 9019388af980
     1.1 --- a/gmyth/src/gmyth_file_transfer.h	Fri Apr 13 20:07:32 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_file_transfer.h	Tue May 15 21:39:04 2007 +0100
     1.3 @@ -9,23 +9,23 @@
     1.4   * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
     1.5   * @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
     1.6   *
     1.7 - *//*
     1.8 - * 
     1.9 - * This program is free software; you can redistribute it and/or modify
    1.10 - * it under the terms of the GNU Lesser General Public License as published by
    1.11 - * the Free Software Foundation; either version 2 of the License, or
    1.12 - * (at your option) any later version.
    1.13 - *
    1.14 - * This program is distributed in the hope that it will be useful,
    1.15 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 - * GNU General Public License for more details.
    1.18 - *
    1.19 - * You should have received a copy of the GNU Lesser General Public License
    1.20 - * along with this program; if not, write to the Free Software
    1.21 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.22 - */
    1.23 - 
    1.24 +          *//*
    1.25 +       * 
    1.26 +       * This program is free software; you can redistribute it and/or modify
    1.27 +       * it under the terms of the GNU Lesser General Public License as published by
    1.28 +       * the Free Software Foundation; either version 2 of the License, or
    1.29 +       * (at your option) any later version.
    1.30 +       *
    1.31 +       * This program is distributed in the hope that it will be useful,
    1.32 +       * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.33 +       * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.34 +       * GNU General Public License for more details.
    1.35 +       *
    1.36 +       * You should have received a copy of the GNU Lesser General Public License
    1.37 +       * along with this program; if not, write to the Free Software
    1.38 +       * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.39 +       */
    1.40 +
    1.41  #ifndef __GMYTH_FILE_TRANSFER_H__
    1.42  #define __GMYTH_FILE_TRANSFER_H__
    1.43  
    1.44 @@ -45,61 +45,58 @@
    1.45  #include <unistd.h>
    1.46  
    1.47  G_BEGIN_DECLS
    1.48 -
    1.49  #define GMYTH_FILE_TRANSFER_TYPE               (gmyth_file_transfer_get_type ())
    1.50  #define GMYTH_FILE_TRANSFER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_FILE_TRANSFER_TYPE, GMythFileTransfer))
    1.51  #define GMYTH_FILE_TRANSFER_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_FILE_TRANSFER_TYPE, GMythFileTransferClass))
    1.52  #define IS_GMYTH_FILE_TRANSFER(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMYTH_FILE_TRANSFER_TYPE))
    1.53  #define IS_GMYTH_FILE_TRANSFER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_FILE_TRANSFER_TYPE))
    1.54  #define GMYTH_FILE_TRANSFER_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_FILE_TRANSFER_TYPE, GMythFileTransferClass))
    1.55 -
    1.56 -typedef struct _GMythFileTransfer         GMythFileTransfer;
    1.57 -typedef struct _GMythFileTransferClass    GMythFileTransferClass;
    1.58 -typedef struct _GMythFileTransferPrivate  GMythFileTransferPrivate;
    1.59 +typedef struct _GMythFileTransfer GMythFileTransfer;
    1.60 +typedef struct _GMythFileTransferClass GMythFileTransferClass;
    1.61 +typedef struct _GMythFileTransferPrivate GMythFileTransferPrivate;
    1.62  
    1.63  struct _GMythFileTransfer
    1.64 -{
    1.65 -	GMythFile 				 parent;
    1.66 -    GMythFileTransferPrivate *priv;
    1.67 -};
    1.68 +    {
    1.69 +        GMythFile parent;
    1.70 +        GMythFileTransferPrivate *priv;
    1.71 +    };
    1.72  
    1.73  struct _GMythFileTransferClass
    1.74 -{
    1.75 -	GMythFileClass parent_class;
    1.76 +    {
    1.77 +        GMythFileClass parent_class;
    1.78  
    1.79 -	/* callbacks */
    1.80 -	guint program_info_changed_handler_signal_id;
    1.81 +        /* callbacks */
    1.82 +        guint program_info_changed_handler_signal_id;
    1.83  
    1.84 -    /* signal default handlers */
    1.85 -    void (*program_info_changed_handler) ( GMythFileTransfer *transfer, 
    1.86 -										gint msg_code, gpointer livetv_recorder );
    1.87 -};
    1.88 +        /* signal default handlers */
    1.89 +        void (*program_info_changed_handler) (GMythFileTransfer * transfer,
    1.90 +                                              gint msg_code,
    1.91 +                                              gpointer livetv_recorder);
    1.92 +    };
    1.93  
    1.94  
    1.95 -GType               gmyth_file_transfer_get_type        (void);
    1.96 -GMythFileTransfer*  gmyth_file_transfer_new             (GMythBackendInfo *backend_info);
    1.97 -gchar*              gmyth_file_transfer_get_file_name   (GMythFileTransfer *transfer);
    1.98 -gboolean            gmyth_file_transfer_open            (GMythFileTransfer *transfer, 
    1.99 -                                					     const gchar* filename);
   1.100 -void                gmyth_file_transfer_close           (GMythFileTransfer *transfer);
   1.101 -gboolean            gmyth_file_transfer_is_open         (GMythFileTransfer *transfer);
   1.102 +GType gmyth_file_transfer_get_type (void);
   1.103 +GMythFileTransfer *gmyth_file_transfer_new (GMythBackendInfo * backend_info);
   1.104 +gchar *gmyth_file_transfer_get_file_name (GMythFileTransfer * transfer);
   1.105 +gboolean gmyth_file_transfer_open (GMythFileTransfer * transfer,
   1.106 +                                   const gchar * filename);
   1.107 +void gmyth_file_transfer_close (GMythFileTransfer * transfer);
   1.108 +gboolean gmyth_file_transfer_is_open (GMythFileTransfer * transfer);
   1.109  GMythFileReadResult
   1.110 -                    gmyth_file_transfer_read            (GMythFileTransfer *transfer, 
   1.111 -                                                         GByteArray *data, 
   1.112 -                                                         gint size, 
   1.113 -                                                         gboolean read_unlimited);
   1.114 -gint64              gmyth_file_transfer_seek            (GMythFileTransfer *transfer, 
   1.115 -                                                         guint64 pos, 
   1.116 -                                                         gint whence);
   1.117 -gboolean            gmyth_file_transfer_settimeout      (GMythFileTransfer *transfer, 
   1.118 -                                                         gboolean fast);
   1.119 -guint64             gmyth_file_transfer_get_filesize    (GMythFileTransfer *transfer);
   1.120 +gmyth_file_transfer_read (GMythFileTransfer * transfer,
   1.121 +                          GByteArray * data,
   1.122 +                          gint size, gboolean read_unlimited);
   1.123 +gint64 gmyth_file_transfer_seek (GMythFileTransfer * transfer,
   1.124 +                                 guint64 pos, gint whence);
   1.125 +gboolean gmyth_file_transfer_settimeout (GMythFileTransfer * transfer,
   1.126 +                                         gboolean fast);
   1.127 +guint64 gmyth_file_transfer_get_filesize (GMythFileTransfer * transfer);
   1.128  
   1.129 -void                gmyth_file_transfer_emit_program_info_changed_signal ( 
   1.130 -                                                        GMythFileTransfer *transfer, 
   1.131 -														gint msg_code,
   1.132 -														gpointer live_tv_recorder );
   1.133 +void gmyth_file_transfer_emit_program_info_changed_signal (GMythFileTransfer *
   1.134 +                                                           transfer,
   1.135 +                                                           gint msg_code,
   1.136 +                                                           gpointer
   1.137 +                                                           live_tv_recorder);
   1.138  
   1.139  G_END_DECLS
   1.140 -
   1.141  #endif /* __GMYTH_FILE_TRANSFER_H__ */