1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 typedef struct _NPWFile NPWFile
;
27 typedef struct _NPWFileList NPWFileList
;
35 NPW_FILE_DEFAULT
= -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);