project-wizard: bgo #732672 - Suggestion to use a Glade prompted handler name rather...
[anjuta.git] / plugins / project-wizard / file.h
blob79ac83418555fb785dd409849ae092a38e7c813e
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_file (const gchar *destination, const gchar *source);
41 void npw_file_free (NPWFile* file);
43 NPWFileType npw_file_get_type (const NPWFile* file);
44 const gchar* npw_file_get_destination (const NPWFile* file);
45 const gchar* npw_file_get_source (const NPWFile* file);
47 void npw_file_set_execute (NPWFile* file, gboolean value);
48 gboolean npw_file_get_execute (const NPWFile* file);
50 void npw_file_set_project (NPWFile* file, gboolean value);
51 gboolean npw_file_get_project (const NPWFile* file);
53 void npw_file_set_autogen (NPWFile* file, NPWFileBooleanValue value);
54 NPWFileBooleanValue npw_file_get_autogen (const NPWFile* file);
56 #endif