58 lines
2.0 KiB
C
58 lines
2.0 KiB
C
/*
|
|
* moofolder.h
|
|
*
|
|
* Copyright (C) 2004-2008 by Yevgen Muntyan <muntyan@tamu.edu>
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef MOO_FILE_VIEW_COMPILATION
|
|
#error "This file may not be included"
|
|
#endif
|
|
|
|
#ifndef MOO_FOLDER_H
|
|
#define MOO_FOLDER_H
|
|
|
|
#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);
|
|
|
|
void _moo_folder_check_exists (MooFolder *folder,
|
|
const char *name);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* MOO_FOLDER_H */
|