1 /* $Id: dstref_modify_item.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
2  *
3  * Lasso - A free implementation of the Liberty Alliance specifications.
4  *
5  * Copyright (C) 2004-2007 Entr'ouvert
6  * http://lasso.entrouvert.org
7  *
8  * Authors: See AUTHORS file in top-level directory.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef __LASSO_IDWSF2_DSTREF_MODIFY_ITEM_H__
25 #define __LASSO_IDWSF2_DSTREF_MODIFY_ITEM_H__
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
31 #include "../xml.h"
32 #include "dstref_app_data.h"
33 
34 #define LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM (lasso_idwsf2_dstref_modify_item_get_type())
35 #define LASSO_IDWSF2_DSTREF_MODIFY_ITEM(obj) \
36 	(G_TYPE_CHECK_INSTANCE_CAST((obj), \
37 		LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM, \
38 		LassoIdWsf2DstRefModifyItem))
39 #define LASSO_IDWSF2_DSTREF_MODIFY_ITEM_CLASS(klass) \
40 	(G_TYPE_CHECK_CLASS_CAST((klass), \
41 		LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM, \
42 		LassoIdWsf2DstRefModifyItemClass))
43 #define LASSO_IS_IDWSF2_DSTREF_MODIFY_ITEM(obj) \
44 	(G_TYPE_CHECK_INSTANCE_TYPE((obj), \
45 		LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM))
46 #define LASSO_IS_IDWSF2_DSTREF_MODIFY_ITEM_CLASS(klass) \
47 	(G_TYPE_CHECK_CLASS_TYPE ((klass), \
48 		LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM))
49 #define LASSO_IDWSF2_DSTREF_MODIFY_ITEM_GET_CLASS(o) \
50 	(G_TYPE_INSTANCE_GET_CLASS ((o), \
51 		LASSO_TYPE_IDWSF2_DSTREF_MODIFY_ITEM, \
52 		LassoIdWsf2DstRefModifyItemClass))
53 
54 
55 typedef struct _LassoIdWsf2DstRefModifyItem LassoIdWsf2DstRefModifyItem;
56 typedef struct _LassoIdWsf2DstRefModifyItemClass LassoIdWsf2DstRefModifyItemClass;
57 
58 
59 struct _LassoIdWsf2DstRefModifyItem {
60 	LassoNode parent;
61 
62 	/*< public >*/
63 	/* elements */
64 	char *Select;
65 	LassoIdWsf2DstRefAppData *NewData;
66 	/* attributes */
67 	char *notChangedSince;
68 	gboolean overrideAllowed;
69 	char *id;
70 	char *itemID;
71 };
72 
73 
74 struct _LassoIdWsf2DstRefModifyItemClass {
75 	LassoNodeClass parent;
76 };
77 
78 LASSO_EXPORT GType lasso_idwsf2_dstref_modify_item_get_type(void);
79 LASSO_EXPORT LassoIdWsf2DstRefModifyItem* lasso_idwsf2_dstref_modify_item_new(void);
80 
81 LASSO_EXPORT LassoIdWsf2DstRefModifyItem* lasso_idwsf2_dstref_modify_item_new_full(
82 	const gchar *item_xpath, const gchar *item_id, xmlNode *new_data,
83 	gboolean overrideAllowed);
84 
85 #ifdef __cplusplus
86 }
87 #endif /* __cplusplus */
88 
89 #endif /* __LASSO_IDWSF2_DSTREF_MODIFY_ITEM_H__ */
90