1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
|
;; -*- scheme -*-
;; Enumerations and flags ...
;;------------------------------------------------------------------------------
;; Boxed type definitions
;;------------------------------------------------------------------------------
(define-enum SourceType
(in-module "ECal")
(c-name "ECalSourceType")
;(gtype-id "E_TYPE_CAL_SOURCE_TYPE")
(values
'("event" "E_CAL_SOURCE_TYPE_EVENT")
'("todo" "E_CAL_SOURCE_TYPE_TODO")
'("journal" "E_CAL_SOURCE_TYPE_JOURNAL")
)
)
(define-enum ComponentVType
(in-module "ECal")
(c-name "ECalComponentVType")
; (gtype-id "E_TYPE_CAL_COMPONENT_VTYPE")
(values
; '("no-type" "E_CAL_COMPONENT_NO_TYPE")
'("event" "E_CAL_COMPONENT_EVENT")
'("todo" "E_CAL_COMPONENT_TODO")
'("journal" "E_CAL_COMPONENT_JOURNAL")
'("freebusy" "E_CAL_COMPONENT_FREEBUSY")
'("timezone" "E_CAL_COMPONENT_TIMEZONE")
)
)
(define-enum icalproperty_status
(in-module "ECal")
(c-name "icalproperty_status")
(values
'("x" "ICAL_STATUS_X")
'("tentative" "ICAL_STATUS_TENTATIVE")
'("confirmed" "ICAL_STATUS_CONFIRMED")
'("completed" "ICAL_STATUS_COMPLETED")
'("needsaction" "ICAL_STATUS_NEEDSACTION")
'("cancelled" "ICAL_STATUS_CANCELLED")
'("inprocess" "ICAL_STATUS_INPROCESS")
'("draft" "ICAL_STATUS_DRAFT")
'("final" "ICAL_STATUS_FINAL")
'("none" "ICAL_STATUS_NONE")
))
;;------------------------------------------------------------------------------
;; Object Definitions
;;------------------------------------------------------------------------------
(define-object ECal
(in-module "ECal")
(parent "GObject")
(c-name "ECal")
(gtype-id "E_TYPE_CAL")
)
(define-object ECalComponent
(in-module "ECal")
(parent "GObject")
(c-name "ECalComponent")
(gtype-id "E_TYPE_CAL_COMPONENT")
)
;;------------------------------------------------------------------------------
;; ECal
;;------------------------------------------------------------------------------
(define-method get_all_objects
(of-object "ECal")
(c-name "evo_cal_source_get_all_objects")
(return-type "GList*")
(parameters
)
)
(define-method remove_object
(of-object "ECal")
(c-name "evo_cal_source_remove_object")
(return-type "gboolean")
(parameters
'("ECalComponent*" "obj")
)
)
(define-method update_object
(of-object "ECal")
(c-name "evo_cal_source_update_object")
(return-type "gboolean")
(parameters
'("ECalComponent*" "obj")
)
)
(define-method add_object
(of-object "ECal")
(c-name "evo_cal_source_add_object")
(return-type "char*")
(parameters
'("ECalComponent*" "obj")
)
)
(define-method get_object
(of-object "ECal")
(c-name "evo_cal_source_get_object")
(return-type "ECalComponent*")
(parameters
'("const-char*" "uid")
'("const-char*" "rid")
)
)
(define-method get_object_as_string
(of-object "ECal")
(c-name "e_cal_get_component_as_string")
(return-type "char*")
(parameters
'("icalcomponent*" "icalcomp")
)
)
(define-method get_uid
(of-object "ECal")
(c-name "evo_cal_source_get_uid")
(return-type "char*")
(parameters
)
)
;;------------------------------------------------------------------------------
;; ECalComponent
;;------------------------------------------------------------------------------
(define-function e_cal_component_new
(c-name "e_cal_component_new")
(is-constructor-of "ECalComponent")
(return-type "ECalComponent*")
(parameters
'("const-char*" "icard")
'("ECalComponentVType" "type")
)
)
(define-method get_as_string
(of-object "ECalComponent")
(c-name "e_cal_component_get_as_string")
(return-type "char*")
)
(define-method get_uid
(of-object "ECalComponent")
(c-name "evo_cal_component_get_uid")
(return-type "char*")
)
;(define-method set_uid
; (of-object "ECalComponent")
; (c-name "e_cal_component_set_uid")
; (return-type "none")
; (parameters
; '("const-char*" "uid")
; )
;)
(define-method get_modified
(of-object "ECalComponent")
(c-name "evo_cal_component_get_modified")
(return-type "glong")
)
(define-method set_modified
(of-object "ECalComponent")
(c-name "evo_cal_component_set_modified")
(return-type "none")
(parameters
'("glong" "seconds")
)
)
(define-method get_due
(of-object "ECalComponent")
(c-name "evo_cal_component_get_due")
(return-type "glong")
)
(define-method set_due
(of-object "ECalComponent")
(c-name "evo_cal_component_set_due")
(return-type "none")
(parameters
'("glong" "seconds" (null-ok))
)
)
(define-method get_categories_list
(of-object "ECalComponent")
(c-name "evo_cal_component_get_categories_list")
(return-type "GSList*")
(parameters
)
)
(define-method set_categories_list
(of-object "ECalComponent")
(c-name "evo_cal_component_set_categories_list")
(return-type "none")
(parameters
'("GSList*" "categories")
)
)
(define-method get_url
(of-object "ECalComponent")
(c-name "evo_cal_component_get_url")
(return-type "char*")
(parameters
)
)
(define-method set_url
(of-object "ECalComponent")
(c-name "evo_cal_component_set_url")
(return-type "none")
(parameters
'("const-char*" "url" (null-ok))
)
)
(define-method get_summary
(of-object "ECalComponent")
(c-name "evo_cal_component_get_summary")
(return-type "char*")
(parameters
)
)
(define-method set_summary
(of-object "ECalComponent")
(c-name "evo_cal_component_set_summary")
(return-type "none")
(parameters
'("const-char*" "summary")
)
)
(define-method get_priority
(of-object "ECalComponent")
(c-name "evo_cal_component_get_priority")
(return-type "int")
(parameters
)
)
(define-method set_priority
(of-object "ECalComponent")
(c-name "evo_cal_component_set_priority")
(return-type "none")
(parameters
'("int" "priority")
)
)
(define-method get_description
(of-object "ECalComponent")
(c-name "evo_cal_component_get_description")
(return-type "char*")
(parameters
)
)
(define-method set_description
(of-object "ECalComponent")
(c-name "evo_cal_component_set_description")
(return-type "none")
(parameters
'("const-char*" "summary")
)
)
(define-method get_status
(of-object "ECalComponent")
(c-name "evo_cal_component_get_status")
(return-type "icalproperty_status")
(parameters
)
)
(define-method set_status
(of-object "ECalComponent")
(c-name "evo_cal_component_set_status")
(return-type "none")
(parameters
'("icalproperty_status" "status")
)
)
;;------------------------------------------------------------------------------
;; evo-environment
;;------------------------------------------------------------------------------
(define-function list_calendars
(c-name "evo_environment_list_calendars")
(return-type "GList*")
(parameters
)
)
(define-function list_task_sources
(c-name "evo_environment_list_task_sources")
(return-type "GList*")
(parameters
)
)
(define-function list_memo_sources
(c-name "evo_environment_list_memo_sources")
(return-type "GList*")
(parameters
)
)
(define-function open_calendar_source
(c-name "evo_cal_source_open_source")
(return-type "ECal*")
(parameters
'("const-char*" "uri")
'("ECalSourceType" "type")
)
)
(define-function open_calendar_source_new_with_absolute_uri
(c-name "evo_cal_source_open_new_with_absolute_uri")
(return-type "ECal*")
(parameters
'("const-char*" "name")
'("const-char*" "uri")
'("ECalSourceType" "type")
)
)
|