2006-12-09 01:51:10 -06:00
|
|
|
/*
|
|
|
|
* moofolder.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2006-12-09 01:51:10 -06:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2006-12-09 01:51:10 -06:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2006-12-09 01:51:10 -06:00
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_FOLDER_H
|
|
|
|
#define MOO_FOLDER_H
|
2006-12-09 01:51:10 -06:00
|
|
|
|
|
|
|
#include "moofileview/moofile.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_FOLDER (_moo_folder_get_type ())
|
|
|
|
#define MOO_FOLDER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_FOLDER, MooFolder))
|
|
|
|
#define MOO_IS_FOLDER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_FOLDER))
|
|
|
|
|
|
|
|
|
|
|
|
GType _moo_folder_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
const char *_moo_folder_get_path (MooFolder *folder);
|
|
|
|
/* list should be freed and elements unref'ed */
|
|
|
|
GSList *_moo_folder_list_files (MooFolder *folder);
|
|
|
|
char *_moo_folder_get_file_path (MooFolder *folder,
|
|
|
|
MooFile *file);
|
|
|
|
char *_moo_folder_get_file_uri (MooFolder *folder,
|
|
|
|
MooFile *file);
|
|
|
|
/* result should be unref'ed */
|
|
|
|
MooFolder *_moo_folder_get_parent (MooFolder *folder,
|
|
|
|
MooFileFlags wanted);
|
|
|
|
char *_moo_folder_get_parent_path(MooFolder *folder);
|
|
|
|
|
|
|
|
char **_moo_folder_get_file_info (MooFolder *folder,
|
|
|
|
MooFile *file);
|
|
|
|
void _moo_folder_reload (MooFolder *folder);
|
|
|
|
|
2007-01-18 05:35:50 -06:00
|
|
|
void _moo_folder_check_exists (MooFolder *folder,
|
|
|
|
const char *name);
|
|
|
|
|
2006-12-09 01:51:10 -06:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_FOLDER_H */
|