summaryrefslogtreecommitdiff
path: root/src/libical/icalproperty_cxx.cpp
blob: 404dfa8d1c1a66fe9e18a6ccb2152606bddbefb0 (plain)
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
/* -*- Mode: C++ -*- */

/**
 * @file    icalproperty_cxx.cpp
 * @author  fnguyen (12/10/01)
 * @brief   Implementation of C++ Wrapper for icalproperty.c
 *
 * (C) COPYRIGHT 2001, Critical Path

 This program is free software; you can redistribute it and/or modify
 it under the terms of either: 

    The LGPL as published by the Free Software Foundation, version
    2.1, available at: http://www.fsf.org/copyleft/lesser.html

  Or:

    The Mozilla Public License Version 1.0. You may obtain a copy of
    the License at http://www.mozilla.org/MPL/
 */


#ifndef ICALPROPERTY_CXX_H
#include "icalproperty_cxx.h"
#endif

#ifndef ICALPARAMETER_CXX_H
#include "icalparameter_cxx.h"
#endif

#ifndef ICALVALUE_CXX_H
#include "icalvalue_cxx.h"
#endif

ICalProperty::ICalProperty() : imp(icalproperty_new(ICAL_ANY_PROPERTY)){
}

ICalProperty::ICalProperty(const ICalProperty& v) throw(icalerrorenum){
	imp = icalproperty_new_clone(v.imp);
	if (!imp) throw icalerrno;
}

ICalProperty& ICalProperty::operator=(const ICalProperty& v) throw(icalerrorenum) {
	if (this == &v) return *this;

	if (imp != NULL)
	{
		icalproperty_free(imp);
		imp = icalproperty_new_clone(v.imp);
		if (!imp) throw icalerrno;
	}

	return *this;
}
ICalProperty::~ICalProperty(){
	if (imp != NULL) icalproperty_free(imp);
}

ICalProperty::ICalProperty(icalproperty* v) : imp(v) {
}

ICalProperty::ICalProperty(string str){
	imp = icalproperty_new_from_string(str);
}

ICalProperty::ICalProperty(icalproperty_kind kind){
	imp = icalproperty_new(kind);
}

string ICalProperty::as_ical_string(){
	return (string)icalproperty_as_ical_string(imp);
}
icalproperty_kind ICalProperty::isa(){
	return icalproperty_isa(imp);
}
int ICalProperty::isa_property(void* property){
	return icalproperty_isa_property(property);
}

int ICalProperty::operator==(ICalProperty& rhs){
	icalparameter_xliccomparetype  result;
	ICalValue*  thisPropValue = this->get_value();
	ICalValue*  rhsPropValue  = rhs.get_value();
	result = icalvalue_compare((icalvalue*)*thisPropValue, (icalvalue*)*rhsPropValue);
	return (result ==  ICAL_XLICCOMPARETYPE_EQUAL);
}

void ICalProperty::add_parameter(ICalParameter& parameter){
	icalproperty_add_parameter(imp, parameter);
}
void ICalProperty::set_parameter(ICalParameter &parameter){
	icalproperty_set_parameter(imp, parameter);
}
void ICalProperty::set_parameter_from_string(string name, string val){
	icalproperty_set_parameter_from_string(imp, name, val);
}
string ICalProperty::get_parameter_as_string(string name){
	return (string)icalproperty_get_parameter_as_string(imp, name);
}
void ICalProperty::remove_parameter(icalparameter_kind kind){
	icalproperty_remove_parameter(imp, kind);
}
int ICalProperty::count_parameters(){
	return icalproperty_count_parameters(imp);
}

/** Iterate through the parameters */
ICalParameter* ICalProperty::get_first_parameter(icalparameter_kind kind){
	icalparameter* p = icalproperty_get_first_parameter(imp, kind);
	return (p != NULL)? new ICalParameter(p): NULL;
}
ICalParameter* ICalProperty::get_next_parameter(icalparameter_kind kind){
	icalparameter* p = icalproperty_get_next_parameter(imp, kind);
	return (p != NULL)? new ICalParameter(p): NULL;
}

/** Access the value of the property */
void ICalProperty::set_value(const ICalValue& val){
	icalproperty_set_value(imp, (ICalValue&)val);
}
void ICalProperty::set_value_from_string(string val, string kind){
	icalproperty_set_value_from_string(imp, val, kind);
}

ICalValue* ICalProperty::get_value(){
	return new ICalValue(icalproperty_get_value(imp));
}
string ICalProperty::get_value_as_string(){
	return (string)icalproperty_get_value_as_string(imp);
}

/** Return the name of the property -- the type name converted to a
 *  string, or the value of get_x_name if the type is X property
 */
string ICalProperty::get_name(){
	return (string)icalproperty_get_property_name(imp);
}

/* Deal with X properties */
void ICalProperty::set_x_name(ICalProperty &prop, string name){
	icalproperty_set_x_name(prop, name);
}
string ICalProperty::get_x_name(ICalProperty &prop){
	return (string)icalproperty_get_x_name(prop);
}

icalvalue_kind ICalProperty::icalparameter_value_to_value_kind(icalparameter_value val){
	return icalparameter_value_to_value_kind(val);
}

/* Convert kinds to string and get default value type */
icalvalue_kind ICalProperty::kind_to_value_kind(icalproperty_kind kind){
	return icalproperty_kind_to_value_kind(kind);
}
icalproperty_kind ICalProperty::value_kind_to_kind(icalvalue_kind kind){
	return icalproperty_value_kind_to_kind(kind);
}
string ICalProperty::kind_to_string(icalproperty_kind kind){
	return (string)icalproperty_kind_to_string(kind);
}
icalproperty_kind ICalProperty::string_to_kind(string str){
	return icalproperty_string_to_kind(str);
}

string ICalProperty::method_to_string(icalproperty_method method){
	return (string)icalproperty_method_to_string(method);
}
icalproperty_method ICalProperty::string_to_method(string str){
	return icalproperty_string_to_method(str);
}

string ICalProperty::enum_to_string(int e){
	return (string)icalproperty_enum_to_string(e);
}
int ICalProperty::string_to_enum(string str){
	return icalproperty_string_to_enum(str);
}

string ICalProperty::status_to_string(icalproperty_status s){
	return (string)icalproperty_status_to_string(s);
}
icalproperty_status ICalProperty::string_to_status(string str){
	return icalproperty_string_to_status(str);
}

int ICalProperty::enum_belongs_to_property(icalproperty_kind kind, int e){
	return icalproperty_enum_belongs_to_property(kind, e);
}

/* ACTION */
void ICalProperty::set_action(enum icalproperty_action val){
	icalproperty_set_action(imp, val);
}
enum icalproperty_action ICalProperty::get_action(){
	return icalproperty_get_action(imp);
}

/* ATTACH */
void ICalProperty::set_attach(icalattach *val){
	icalproperty_set_attach(imp, val);
}
icalattach * ICalProperty::get_attach(){
	return icalproperty_get_attach(imp);
}

/* ATTENDEE */
void ICalProperty::set_attendee(string val){
	icalproperty_set_attendee(imp, val);
}
string ICalProperty::get_attendee(){
	return (string)icalproperty_get_attendee(imp);
}

/* CALSCALE */
void ICalProperty::set_calscale(string val){
	icalproperty_set_calscale(imp, val);
}
string ICalProperty::get_calscale(){
	return (string)icalproperty_get_calscale(imp);
}

/* CATEGORIES */
void ICalProperty::set_categories(string val){
	icalproperty_set_categories(imp, val);
}
string ICalProperty::get_categories(){
	return (string)icalproperty_get_categories(imp);
}

/* CLASS */
void ICalProperty::set_class(enum icalproperty_class val){
	icalproperty_set_class(imp, val);
}
enum icalproperty_class ICalProperty::get_class(){
	return (enum icalproperty_class)icalproperty_get_class(imp);
}

/* COMMENT */
void ICalProperty::set_comment(string val){
	icalproperty_set_comment(imp, val);
}
string ICalProperty::get_comment(){
	return (string)icalproperty_get_comment(imp);
}

/* COMPLETED */
void ICalProperty::set_completed(struct icaltimetype val){
	icalproperty_set_completed(imp, val);
}
struct icaltimetype ICalProperty::get_completed(){
	return icalproperty_get_completed(imp);
}

/* CONTACT */
void ICalProperty::set_contact(string val){
	icalproperty_set_contact(imp, val);
}
string ICalProperty::get_contact(){
	return (string)icalproperty_get_contact(imp);
}

/* CREATED */
void ICalProperty::set_created(struct icaltimetype val){
	icalproperty_set_created(imp, val);
}
struct icaltimetype ICalProperty::get_created(){
	return icalproperty_get_created(imp);
}

/* DESCRIPTION */
void ICalProperty::set_description(string val){
	icalproperty_set_description(imp, val);
}
string ICalProperty::get_description(){
	return (string)icalproperty_get_description(imp);
}

/* DTEND */
void ICalProperty::set_dtend(struct icaltimetype val){
	icalproperty_set_dtend(imp, val);
}
struct icaltimetype ICalProperty::get_dtend(){
	return icalproperty_get_dtend(imp);
}

/* DTSTAMP */
void ICalProperty::set_dtstamp(struct icaltimetype val){
	icalproperty_set_dtstamp(imp, val);
}
struct icaltimetype ICalProperty::get_dtstamp(){
	return icalproperty_get_dtstamp(imp);
}

/* DTSTART */
void ICalProperty::set_dtstart(struct icaltimetype val){
	icalproperty_set_dtstart(imp, val);
}
struct icaltimetype ICalProperty::get_dtstart(){
	return icalproperty_get_dtstart(imp);
}

/* DUE */
void ICalProperty::set_due(struct icaltimetype val){
	icalproperty_set_due(imp, val);
}
struct icaltimetype ICalProperty::get_due(){
	return icalproperty_get_due(imp);
}

/* DURATION */
void ICalProperty::set_duration(struct icaldurationtype val){
	icalproperty_set_duration(imp, val);
}
struct icaldurationtype ICalProperty::get_duration(){
	return icalproperty_get_duration(imp);
}

/* EXDATE */
void ICalProperty::set_exdate(struct icaltimetype val){
	icalproperty_set_exdate(imp, val);
}
struct icaltimetype ICalProperty::get_exdate(){
	return icalproperty_get_exdate(imp);
}

/* EXPAND */
void ICalProperty::set_expand(int val){
        icalproperty_set_expand(imp, val);
}
int ICalProperty::get_expand(){
        return icalproperty_get_expand(imp);
}

/* EXRULE */
void ICalProperty::set_exrule(struct icalrecurrencetype val){
	icalproperty_set_exrule(imp, val);
}
struct icalrecurrencetype ICalProperty::get_exrule(){
	return icalproperty_get_exrule(imp);
}

/* FREEBUSY */
void ICalProperty::set_freebusy(struct icalperiodtype val){
	icalproperty_set_freebusy(imp, val);
}
struct icalperiodtype ICalProperty::get_freebusy(){
	return icalproperty_get_freebusy(imp);
}

/* GEO */
void ICalProperty::set_geo(struct icalgeotype val){
	icalproperty_set_geo(imp, val);
}
struct icalgeotype ICalProperty::get_geo(){
	return icalproperty_get_geo(imp);
}

/* LAST-MODIFIED */
void ICalProperty::set_lastmodified(struct icaltimetype val){
	icalproperty_set_lastmodified(imp, val);
}
struct icaltimetype ICalProperty::get_lastmodified(){
	return icalproperty_get_lastmodified(imp);
}

/* LOCATION */
void ICalProperty::set_location(string val){
	icalproperty_set_location(imp, val);
}
string ICalProperty::get_location(){
	return (string)icalproperty_get_location(imp);
}

/* MAXRESULTS */
void ICalProperty::set_maxresults(int val){
	icalproperty_set_maxresults(imp, val);
}
int ICalProperty::get_maxresults(){
	return icalproperty_get_maxresults(imp);
}

/* MAXRESULTSSIZE */
void ICalProperty::set_maxresultsize(int val){
	icalproperty_set_maxresultssize(imp, val);
}
int ICalProperty::get_maxresultsize(){
	return icalproperty_get_maxresultssize(imp);
}

/* METHOD */
void ICalProperty::set_method(enum icalproperty_method val){
	icalproperty_set_method(imp, val);
}
enum icalproperty_method ICalProperty::get_method(){
	return icalproperty_get_method(imp);
}

/* ORGANIZER */
void ICalProperty::set_organizer(string val){
	icalproperty_set_organizer(imp, val);
}
string ICalProperty::get_organizer(){
	return (string)icalproperty_get_organizer(imp);
}

/* OWNER */
void ICalProperty::set_owner(string val){
	icalproperty_set_owner(imp, val);
}
string ICalProperty::get_owner(){
	return (string)icalproperty_get_owner(imp);
}

/* PERCENT-COMPLETE */
void ICalProperty::set_percentcomplete(int val){
	icalproperty_set_percentcomplete(imp, val);
}
int ICalProperty::get_percentcomplete(){
	return icalproperty_get_percentcomplete(imp);
}

/* PRIORITY */
void ICalProperty::set_priority(int val){
	icalproperty_set_priority(imp, val);
}
int ICalProperty::get_priority(){
	return icalproperty_get_priority(imp);
}

/* PRODID */
void ICalProperty::set_prodid(string val){
	icalproperty_set_prodid(imp, val);
}
string ICalProperty::get_prodid(){
	return (string)icalproperty_get_prodid(imp);
}

/* QUERY */
void ICalProperty::set_query(string val){
	icalproperty_set_query(imp, val);
}
string ICalProperty::get_query(){
	return (string)icalproperty_get_query(imp);
}

/* QUERYNAME */
void ICalProperty::set_queryname(string val){
	icalproperty_set_queryname(imp, val);
}
string ICalProperty::get_queryname(){
	return (string)icalproperty_get_queryname(imp);
}

/* RDATE */
void ICalProperty::set_rdate(struct icaldatetimeperiodtype val){
	icalproperty_set_rdate(imp, val);
}
struct icaldatetimeperiodtype ICalProperty::get_rdate(){
	return icalproperty_get_rdate(imp);
}

/* RECURRENCE-ID */
void ICalProperty::set_recurrenceid(struct icaltimetype val){
	icalproperty_set_recurrenceid(imp, val);
}
struct icaltimetype ICalProperty::get_recurrenceid(){
	return icalproperty_get_recurrenceid(imp);
}

/* RELATED-TO */
void ICalProperty::set_relatedto(string val){
	icalproperty_set_relatedto(imp, val);
}
string ICalProperty::get_relatedto(){
	return (string)icalproperty_get_relatedto(imp);
}

/* RELCALID */
void ICalProperty::set_relcalid(string val){
        icalproperty_set_relcalid(imp, val);
}
string ICalProperty::get_relcalid(){
        return (string)icalproperty_get_relcalid(imp);
}

/* REPEAT */
void ICalProperty::set_repeat(int val){
	icalproperty_set_repeat(imp, val);
}
int ICalProperty::get_repeat(){
	return icalproperty_get_repeat(imp);
}

/* REQUEST-STATUS */
void ICalProperty::set_requeststatus(string val){
  icalreqstattype v;
  
  v = icalreqstattype_from_string((char*)val);

  icalproperty_set_requeststatus(imp, v);
}

string ICalProperty::get_requeststatus(){
  icalreqstattype v;
  v =   icalproperty_get_requeststatus(imp);
  return (string)(icalreqstattype_as_string(v));
}

/* RESOURCES */
void ICalProperty::set_resources(string val){
	icalproperty_set_resources(imp, val);
}
string ICalProperty::get_resources(){
	return (string)icalproperty_get_resources(imp);
}

/* RRULE */
void ICalProperty::set_rrule(struct icalrecurrencetype val){
	icalproperty_set_rrule(imp, val);
}
struct icalrecurrencetype ICalProperty::get_rrule(){
	return icalproperty_get_rrule(imp);
}

/* SCOPE */
void ICalProperty::set_scope(string val){
	icalproperty_set_scope(imp, val);
}
string ICalProperty::get_scope(){
	return (string)icalproperty_get_scope(imp);
}

/* SEQUENCE */
void ICalProperty::set_sequence(int val){
	icalproperty_set_sequence(imp, val);
}
int ICalProperty::get_sequence(){
	return icalproperty_get_sequence(imp);
}

/* STATUS */
void ICalProperty::set_status(enum icalproperty_status val){
	icalproperty_set_status(imp, val);
}
enum icalproperty_status ICalProperty::get_status(){
	return icalproperty_get_status(imp);
}

/* SUMMARY */
void ICalProperty::set_summary(string val){
	icalproperty_set_summary(imp, val);
}
string ICalProperty::get_summary(){
	return (string)icalproperty_get_summary(imp);
}

/* TARGET */
void ICalProperty::set_target(string val){
	icalproperty_set_target(imp, val);
}
string ICalProperty::get_target(){
	return (string)icalproperty_get_target(imp);
}

/* TRANSP */
void ICalProperty::set_transp(enum icalproperty_transp val){
	icalproperty_set_transp(imp, val);
}
enum icalproperty_transp ICalProperty::get_transp(){
	return icalproperty_get_transp(imp);
}

/* TRIGGER */
void ICalProperty::set_trigger(struct icaltriggertype val){
	icalproperty_set_trigger(imp, val);
}
struct icaltriggertype ICalProperty::get_trigger(){
	return icalproperty_get_trigger(imp);
}

/* TZID */
void ICalProperty::set_tzid(string val){
	icalproperty_set_tzid(imp, val);
}
string ICalProperty::get_tzid(){
	return (string)icalproperty_get_tzid(imp);
}

/* TZNAME */
void ICalProperty::set_tzname(string val){
	icalproperty_set_tzname(imp, val);
}
string ICalProperty::get_tzname(){
	return (string)icalproperty_get_tzname(imp);
}

/* TZOFFSETFROM */
void ICalProperty::set_tzoffsetfrom(int val){
	icalproperty_set_tzoffsetfrom(imp, val);
}
int ICalProperty::get_tzoffsetfrom(){
	return icalproperty_get_tzoffsetfrom(imp);
}

/* TZOFFSETTO */
void ICalProperty::set_tzoffsetto(int val){
	icalproperty_set_tzoffsetto(imp, val);
}
int ICalProperty::get_tzoffsetto(){
	return icalproperty_get_tzoffsetto(imp);
}

/* TZURL */
void ICalProperty::set_tzurl(string val){
	icalproperty_set_tzurl(imp, val);
}
string ICalProperty::get_tzurl(){
	return (string)icalproperty_get_tzurl(imp);
}

/* UID */
void ICalProperty::set_uid(string val){
	icalproperty_set_uid(imp, val);
}
string ICalProperty::get_uid(){
	return (string)icalproperty_get_uid(imp);
}

/* URL */
void ICalProperty::set_url(string val){
	icalproperty_set_url(imp, val);
}
string ICalProperty::get_url(){
	return (string)icalproperty_get_url(imp);
}

/* VERSION */
void ICalProperty::set_version(string val){
	icalproperty_set_version(imp, val);
}
string ICalProperty::get_version(){
	return (string)icalproperty_get_version(imp);
}

/* X */
void ICalProperty::set_x(string val){
	icalproperty_set_x(imp, val);
}
string ICalProperty::get_x(){
	return (string)icalproperty_get_x(imp);
}

/* X-LIC-CLUSTERCOUNT */
void ICalProperty::set_xlicclustercount(string val){
	icalproperty_set_xlicclustercount(imp, val);
}
string ICalProperty::get_xlicclustercount(){
	return (string)icalproperty_get_xlicclustercount(imp);
}

/* X-LIC-ERROR */
void ICalProperty::set_xlicerror(string val){
	icalproperty_set_xlicerror(imp, val);
}
string ICalProperty::get_xlicerror(){
	return (string)icalproperty_get_xlicerror(imp);
}

/* X-LIC-MIMECHARSET */
void ICalProperty::set_xlicmimecharset(string val){
	icalproperty_set_xlicmimecharset(imp, val);
}
string ICalProperty::get_xlicmimecharset(){
	return (string)icalproperty_get_xlicmimecharset(imp);
}

/* X-LIC-MIMECID */
void ICalProperty::set_xlicmimecid(string val){
	icalproperty_set_xlicmimecid(imp, val);
}
string ICalProperty::get_xlicmimecid(){
	return (string)icalproperty_get_xlicmimecid(imp);
}

/* X-LIC-MIMECONTENTTYPE */
void ICalProperty::set_xlicmimecontenttype(string val){
	icalproperty_set_xlicmimecontenttype(imp, val);
}
string ICalProperty::get_xlicmimecontenttype(){
	return (string)icalproperty_get_xlicmimecontenttype(imp);
}

/* X-LIC-MIMEENCODING */
void ICalProperty::set_xlicmimeencoding(string val){
	icalproperty_set_xlicmimeencoding(imp, val);
}
string ICalProperty::get_xlicmimeencoding(){
	return (string)icalproperty_get_xlicmimeencoding(imp);
}

/* X-LIC-MIMEFILENAME */
void ICalProperty::set_xlicmimefilename(string val){
	icalproperty_set_xlicmimefilename(imp, val);
}
string ICalProperty::get_xlicmimefilename(){
	return (string)icalproperty_get_xlicmimefilename(imp);
}

/* X-LIC-MIMEOPTINFO */
void ICalProperty::set_xlicmimeoptinfo(string val){
	icalproperty_set_xlicmimeoptinfo(imp, val);
}
string ICalProperty::get_xlicmimeoptinfo(){
	return (string)icalproperty_get_xlicmimeoptinfo(imp);
}