Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / plugins / project-wizard / file.h
blobb05318a7ce7f53cc89fa79f36089e40a57ebb57e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 file.h
4 Copyright (C) 2004 Sebastien Granjoux
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __FILE_H__
22 #define __FILE_H__
24 #include <glib.h>
26 typedef struct _NPWFile NPWFile;
27 typedef struct _NPWFileList NPWFileList;
29 typedef enum {
30 NPW_FILE,
31 NPW_DIRECTORY
32 } NPWFileType;
34 typedef enum {
35 NPW_FILE_DEFAULT = -1,
36 NPW_FILE_FALSE = 0,
37 NPW_FILE_TRUE = 1
38 } NPWFileBooleanValue;
40 NPWFile* npw_file_new (NPWFileList* owner);
41 void npw_file_free (NPWFile* this);
43 void npw_file_set_type (NPWFile* this, NPWFileType type);
44 NPWFileType npw_file_get_type (const NPWFile* this);
46 void npw_file_set_destination (NPWFile* this, const gchar* destination);
47 const gchar* npw_file_get_destination (const NPWFile* this);
49 void npw_file_set_source (NPWFile* this, const gchar* destination);
50 const gchar* npw_file_get_source (const NPWFile* this);
52 void npw_file_set_execute (NPWFile* this, gboolean value);
53 gboolean npw_file_get_execute (const NPWFile* this);
55 void npw_file_set_project (NPWFile* this, gboolean value);
56 gboolean npw_file_get_project (const NPWFile* this);
58 void npw_file_set_autogen (NPWFile* this, NPWFileBooleanValue value);
59 NPWFileBooleanValue npw_file_get_autogen (const NPWFile* this);
61 const NPWFile* npw_file_next (const NPWFile* this);
63 NPWFileList* npw_file_list_new (void);
64 void npw_file_list_free (NPWFileList* this);
66 typedef void (*NPWFileForeachFunc) (NPWFile* file);
68 void npw_file_list_foreach_file (const NPWFileList* this, NPWFileForeachFunc func);
69 const NPWFile* npw_file_list_first (const NPWFileList* this);
71 #endif