/ gwfileinfo.h / Content
/*  GWhere.
 *  Copyright (C) 2000  Sébastien LECACHEUR
 *
 *  This program 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 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */





#ifndef GW_DATA_FILE_INFO_H
#define GW_DATA_FILE_INFO_H


#include 
#include "gwcategory.h"



struct file_info;



struct file_info * file_info_new ( void);



gint file_info_set_name ( struct file_info *p, gchar *name);



gint file_info_set_isdirectory ( struct file_info *p, gboolean b);



gint file_info_set_rights ( struct file_info *p, gchar *rights);



gint file_info_set_owner ( struct file_info *p, gchar *owner);



gint file_info_set_group ( struct file_info *p, gchar *group);



gint file_info_set_size ( struct file_info *p, guint64 size);



gint file_info_set_inode ( struct file_info *p, glong inode);



gint file_info_set_cdate ( struct file_info *p, gulong cdate);



gint file_info_set_adate ( struct file_info *p, gulong adate);



gint file_info_set_mdate ( struct file_info *p, gulong mdate);



gint file_info_set_category ( struct file_info *p, struct category *category);



gint file_info_set_description ( struct file_info *p, gchar *description);



gchar * file_info_get_name ( struct file_info *p);



gboolean file_info_get_isdirectory ( struct file_info *p);



gboolean file_info_get_is_real_directory ( struct file_info *p);



gchar * file_info_get_rights ( struct file_info *p);



gchar * file_info_get_owner ( struct file_info *p);



gchar * file_info_get_group ( struct file_info *p);



guint64 file_info_get_size ( struct file_info *p);



glong file_info_get_inode ( struct file_info *p);



gulong file_info_get_cdate ( struct file_info *p);



gulong file_info_get_adate ( struct file_info *p);



gulong file_info_get_mdate ( struct file_info *p);



struct category * file_info_get_category ( struct file_info *p);



gchar * file_info_get_category_name ( struct file_info *p);



gint file_info_get_category_index ( struct file_info *p);



gchar * file_info_get_description ( struct file_info *p);



gchar * file_info_get_cdate_to_gchar ( struct file_info *p);



gchar * file_info_get_adate_to_gchar ( struct file_info *p);



gchar * file_info_get_mdate_to_gchar ( struct file_info *p);



gint file_info_free ( struct file_info *p);


#endif