application/application.h

changeset 97
5a3d27b8e6b0
parent 95
e92c72705da4
equal deleted inserted replaced
96:493959648de6 97:5a3d27b8e6b0
46 46
47 #define APP_STATE_BROWSER_SESSION 100 47 #define APP_STATE_BROWSER_SESSION 100
48 #define APP_STATE_BROWSER_SELECTION 110 48 #define APP_STATE_BROWSER_SELECTION 110
49 49
50 #define RESOURCEVIEWER_STATE_MODIFIED 2000 50 #define RESOURCEVIEWER_STATE_MODIFIED 2000
51 #define RESOURCEVIEWER_STATE_PROP_SELECTED 2001
52 #define RESOURCEVIEWER_STATE_PROP_XML 2002
51 53
52 typedef struct DavApp { 54 typedef struct DavApp {
53 DavConfig *dav_config; 55 DavConfig *dav_config;
54 UiList *repos; 56 UiList *repos;
55 UiList *transfers; 57 UiList *transfers;
106 * children of the current collection 108 * children of the current collection
107 */ 109 */
108 UiList *resources; 110 UiList *resources;
109 } DavBrowser; 111 } DavBrowser;
110 112
113
114 /*
115 * resource property list entry
116 */
117 typedef struct DavPropertyList {
118 char *ns;
119 char *name;
120 char *value_simplified;
121 char *value_full;
122 DavXmlNode *xml;
123 DavBool update;
124 DavBool isnew;
125 } DavPropertyList;
126
111 /* 127 /*
112 * resource view window document object 128 * resource view window document object
113 */ 129 */
114 typedef struct DavResourceViewer { 130 typedef struct DavResourceViewer {
131 UiObject *obj;
115 UiContext *ctx; 132 UiContext *ctx;
116 DavSession *sn; 133 DavSession *sn;
134 UiThreadpool *dav_queue;
117 DavResource *current; 135 DavResource *current;
118 char *path; 136 char *path;
119 DavResourceViewType type; 137 DavResourceViewType type;
120 138
121 UiInteger *tabview; 139 UiInteger *tabview;
131 UiString *info_type; 149 UiString *info_type;
132 UiString *info_encrypted; 150 UiString *info_encrypted;
133 UiString *info_etag; 151 UiString *info_etag;
134 UiString *info_size; 152 UiString *info_size;
135 153
154 UiInteger *property_type;
155 UiString *property_ns;
156 UiString *property_name;
157 UiString *property_nsdef;
158 UiText *property_value;
159 UiString *property_errormsg;
160
161 DavPropertyList *selected_property;
162 DavPropertyList *edit_property;
163
136 int error; 164 int error;
137 char *message_str; 165 char *message_str;
138 166
139 CxBuffer *text_content; 167 CxBuffer *text_content;
140 char *tmp_file; 168 char *tmp_file;
141 169
170 bool properties_modified;
142 bool loaded; 171 bool loaded;
143 bool window_closed; 172 bool window_closed;
144 } DavResourceViewer; 173 } DavResourceViewer;
145
146 typedef struct DavPropertyList {
147 char *ns;
148 char *name;
149 char *value_simplified;
150 char *value_full;
151 } DavPropertyList;
152 174
153 typedef struct SessionAuthData { 175 typedef struct SessionAuthData {
154 UiObject *obj; 176 UiObject *obj;
155 UiCondVar *cond; 177 UiCondVar *cond;
156 DavSession *sn; 178 DavSession *sn;

mercurial