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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 typedef struct _NPWHeader NPWHeader
;
27 typedef struct _NPWHeaderList NPWHeaderList
;
29 NPWHeader
* npw_header_new (NPWHeaderList
* owner
);
30 void npw_header_free (NPWHeader
* this);
32 void npw_header_set_name (NPWHeader
* this, const gchar
* name
);
33 const gchar
* npw_header_get_name (const NPWHeader
* this);
35 void npw_header_set_filename (NPWHeader
* this, const gchar
* filename
);
36 const gchar
* npw_header_get_filename (const NPWHeader
* this);
38 void npw_header_set_category (NPWHeader
* this, const gchar
* category
);
39 const gchar
* npw_header_get_category(const NPWHeader
* this);
41 void npw_header_set_description (NPWHeader
* this, const gchar
* description
);
42 const gchar
* npw_header_get_description (const NPWHeader
* this);
44 void npw_header_set_iconfile (NPWHeader
* this, const gchar
* confile
);
45 const gchar
* npw_header_get_iconfile (const NPWHeader
* this);
47 gboolean
npw_header_is_leaf(const NPWHeader
* this);
49 NPWHeaderList
* npw_header_list_new (void);
51 NPWHeaderList
* npw_header_list_new (void);
52 void npw_header_list_free (NPWHeaderList
* this);
54 void npw_header_list_organize(NPWHeaderList
* this, const gchar
* category
, NPWHeader
* header
);
56 typedef void (*NPWHeaderForeachFunc
) (NPWHeader
* head
, gpointer data
);
58 gboolean
npw_header_list_foreach_project (const NPWHeaderList
* this, NPWHeaderForeachFunc func
, gpointer data
);
59 gboolean
npw_header_list_foreach_project_in (const NPWHeaderList
* this, const gchar
* category
, NPWHeaderForeachFunc func
, gpointer data
);
60 gboolean
npw_header_list_foreach_category (const NPWHeaderList
* this, NPWHeaderForeachFunc func
, gpointer data
);