Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

gtask-file.h

Go to the documentation of this file.
00001 #ifndef GTASK_FILE_H
00002 #define GTASK_FILE_H
00003 
00006 #include <glib-2.0/glib-object.h>
00007 #include <glib/gstring.h>
00008 
00009 /* @{ */
00010 
00011 typedef struct _GTaskFile        GTaskFile;
00012 typedef struct _GTaskFilePrivate GTaskFilePrivate;
00013 typedef struct _GTaskFileClass   GTaskFileClass;
00014 
00016 #define GTASK_FILE_TYPE            (gtask_file_get_type())
00017 
00019 #define GTASK_FILE(obj)            (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
00020                                             GTASK_FILE_TYPE, \
00021                                             GTaskFile))
00022 
00024 #define GTASK_FILE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST( (klass), \
00025                                             GTASK_FILE_TYPE, \
00026                                             GTaskFileClass ))
00027 
00032 #define GTASK_IS_FILE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \
00033                                             GTASK_FILE_TYPE ))
00034 
00039 #define GTASK_IS_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \
00040                                             GTASK_FILE_TYPE ))
00041 
00042 #define GTASK_FILE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS( (obj), \
00043                                             GTASK_FILE_TYPE, \
00044                                             GTaskGenericClass ))
00045 
00046 struct _GTaskFilePrivate {
00047     GString  *uri;
00048     GString  *thumbnail_uri;
00049     GString  *mime_type;
00050 
00051     GString  *description;
00052 
00053     gboolean  completed;
00054 };
00055 
00056 struct _GTaskFile {
00057     GObject parent;
00058     GTaskFilePrivate *private;
00059 };
00060 
00061 struct _GTaskFileClass {
00062     GObjectClass parent;
00063 };
00064 
00065 GType gtask_file_get_type( void );
00066 
00067 GTaskFile *
00068 gtask_file_new( void );
00069 
00070 GTaskFile *
00071 gtask_file_new_with_properties( const char *uri,
00072                                 const char *mime_type,
00073                                 const char *thumbnail_uri,
00074                                 const char *description );
00075 
00076 void
00077 gtask_file_set_uri( GTaskFile *file, const char *uri );
00078 
00079 const char *
00080 gtask_file_get_uri( GTaskFile *file );
00081 
00082 void
00083 gtask_file_set_mime_type( GTaskFile *file, const char *mime_type );
00084 
00085 const char *
00086 gtask_file_get_mime_type( GTaskFile *file );
00087 
00088 void
00089 gtask_file_set_thumbnail_uri( GTaskFile *file, const char *thumbnail_uri );
00090 
00091 const char *
00092 gtask_file_get_thumbnail_uri( GTaskFile *file );
00093 
00094 void
00095 gtask_file_set_completed( GTaskFile *file, gboolean completed );
00096 
00097 gboolean
00098 gtask_file_get_completed( GTaskFile *file );
00099 
00100 void
00101 gtask_file_set_description( GTaskFile *file, const char *description );
00102 
00103 const char *
00104 gtask_file_get_description( GTaskFile *file );
00105 
00106 /* @} */
00107 
00108 #endif

Generated on Mon Feb 2 21:26:14 2004 for libgtask by doxygen 1.3.4