#include #include #include "vcaltmp.h" #if 0 This testcase would generate a file call "frankcal.vcf" with the following content: BEGIN:VCALENDAR DCREATED:19960523T100522 GEO:37.24,-17.87 PRODID:-//Frank Dawson/Hand Crafted In North Carolina//NONSGML Made By Hand//EN VERSION:0.3 BEGIN:VEVENT DTSTART:19960523T120000 DTEND:19960523T130000 DESCRIPTION;QUOTED-PRINTABLE:VERSIT PDI PR Teleconference/Interview =0A= With Tom Streeter and Frank Dawson - Discuss VERSIT PDI project and vCard and vCalendar=0A= activities with European Press representatives. SUMMARY:VERSIT PDI PR Teleconference/Interview SUBTYPE:PHONE CALL STATUS:CONFIRMED TRANSP:19960523T100522-4000F100582713-009251 UID:http://www.ibm.com/raleigh/fdawson/~c:\or2\orgfiles\versit.or2 DALARM:19960523T114500;5;3;Your Telecon Starts At Noon!!!; MALARM:19960522T120000;;;fdawson@raleigh.ibm.com;Remember 05/23 Noon Telecon!!!; PALARM:19960523T115500;;;c:\or2\organize.exe c:\or2\orgfiles\versit.or2; X-LDC-OR2-OLE:c:\temp\agenda.doc END:VEVENT BEGIN:VTODO DUE:19960614T0173000 DESCRIPTION:Review VCalendar helper API. END:VTODO END:VCALENDAR #endif FILE *cfp; void testVcalAPIs() { FILE *fp; VObject *vcal, *vevent; #if _CONSOLE cfp = stdout; #else cfp = fopen("vcaltest.out","w"); #endif if (cfp == 0) return; vcal = vcsCreateVCal( "19960523T100522", "37.24,-17.87", "-//Frank Dawson/Hand Crafted In North Carolina//NONSGML Made By Hand//EN", 0, "0.3" ); vevent = vcsAddEvent( vcal, "19960523T120000", "19960523T130000", "VERSIT PDI PR Teleconference/Interview \nWith Tom Streeter and Frank Dawson - Discuss VERSIT PDI project and vCard and vCalendar\nactivities with European Press representatives.", "VERSIT PDI PR Teleconference/Interview", "PHONE CALL", 0, "CONFIRMED", "19960523T100522-4000F100582713-009251", "http://www.ibm.com/raleigh/fdawson/~c:\\or2\\orgfiles\\versit.or2", 0 ); vcsAddDAlarm(vevent, "19960523T114500", "5", "3", "Your Telecon Starts At Noon!!!"); vcsAddMAlarm(vevent, "19960522T120000", 0, 0, "fdawson@raleigh.ibm.com", "Remember 05/23 Noon Telecon!!!"); vcsAddPAlarm(vevent, "19960523T115500", 0 ,0, "c:\\or2\\organize.exe c:\\or2\\orgfiles\\versit.or2"); addPropValue(vevent, "X-LDC-OR2-OLE", "c:\\temp\\agenda.doc"); vcsAddTodo( vcal, 0, "19960614T0173000", 0, "Review VCalendar helper API.", 0, 0, 0, 0, 0, 0 ); /* now do something to the resulting VObject */ /* pretty print on stdout for fun */ printVObject(cfp,vcal); /* open the output text file */ #define OUTFILE "frankcal.vcf" fp = fopen(OUTFILE, "w"); if (fp) { /* write it in text form */ writeVObject(fp,vcal); fclose(fp); } else { fprintf(cfp,"open output file '%s' failed\n", OUTFILE); } if (cfp != stdout) fclose(cfp); } void main() { testVcalAPIs(); } /devel/electron4/files/serve-10.1.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update to Python-2.3.1, the lastest Bugfix release.perky2003-09-243-14/+9
* BUILD_STATIC by default because it's better.perky2003-08-221-1/+2
* Add md5 digest for python 2.4a0.20030801perky2003-08-011-0/+1
* - Update to Python-2.3perky2003-08-015-451/+882
* Set per-thread stack size to 0x20000 (default) or 0x100000perky2003-07-091-1/+6
* o Utilize MASTER_SITE_PYTHON.perky2003-07-042-4/+9
* Take maintainerships from alane's python ports.perky2003-06-091-1/+1
* REST IN PEACEwill2003-06-091-1/+1
* Update to 2.2.3perky2003-06-043-4/+62
* Destroy pkg-comment for some of the stranger uses in the tree,ade2003-03-072-1/+1
* PORTREVSION => 2.alane2002-11-222-170/+2
* PORTREVISION => 1alane2002-11-221-0/+12
* PORTREVISION => 1alane2002-11-222-2/+168
* Simplified threads configuration.alane2002-11-211-3/+5
* Take over as maintainer since tg is taking a leave of absence from portalane2002-11-161-1/+1
* Upgrade to Python-2.2.2.perky2002-10-175-30/+44
* Use new PYTHONPREFIX_*DIR variables to make these ports PREFIX-clean.tg2002-06-141-6/+6
* Fix building on the Alpha.tg2002-05-162-4/+10
* Add patch from SF PR #541980. This fixes 4suite.tg2002-04-171-0/+14
* Upgrade to Python-2.2.tg2002-04-124-64/+6
* Add SourceForge as a well connected secondary MASTER_SITES location.tg2002-04-021-0/+2
* Explicitly enable IPv6 support.tg2002-04-021-2/+8
* Fix sizeof(wchar_t) calculation.tg2002-01-211-0/+10
* Implement PyObject_DelItemString(), which was obviously forgotten fortg2002-01-162-0/+57
* Upgrade lang/python to 2.2. Adjust bsd.python.mk accordingly.tg2002-01-074-134/+346
* Re-add fpectl.so to the plist to fix packaging. Re-enable supporttg2001-11-202-2/+2
* Don't build mpz extension, it's moved to a separate port.tg2001-10-193-10/+3
* Depend on math/libgmp when running a recent -current.tg2001-09-251-0/+6
* Upgrade to 2.1.1.tg2001-07-253-2/+10
* Upgrade to 2.1.tg2001-05-0212-1169/+876
* Fix building on -current.tg2001-04-261-0/+38
* -pthread --> ${PTHREAD_LIBS}sobomax2001-03-301-2/+2
* Allow MAINTAINER to be redefined in a slave port.sobomax2001-03-291-1/+1
* MASTER_SITE changed.tg2000-12-071-1/+2
* Install Demo/ dir to $PREFIX/share/examples/python.tg2000-11-292-3/+325
* Fix compilation on FreeBSD-3.x.tg2000-11-131-0/+6
* Upgrade to 2.0.tg2000-10-187-133/+302
* Rename PLIST.{Tools,gmp} to pkg-plist.{Tools,gmp}.asami2000-10-081-3/+3
* Use USE_PYTHON.tg2000-09-281-0/+1
* Upgrade to 1.6.tg2000-09-089-1239/+1726
* Don't create group-writable directories.tg2000-08-141-5/+12
* Clarify comment even further.tg2000-07-281-1/+1
* - Clarify comment on thread support.tg2000-07-271-6/+10
* Standardize all user defined options to the booleans WITH_FOO andreg2000-04-171-5/+3
* Convert to the PORTNAME - PORTVERSION syntax.obrien2000-04-121-3/+3
* Separate the Python Tk module from the main port. I've beentg2000-04-041-15/+1
* Fix packaging on -current.tg2000-03-242-5/+22
* move IPv6-enable python to python+ipv6 and revert origial pythonsumikawa2000-01-273-21/+3
* Add 'ipv6' on CATEGORIES.sumikawa2000-01-181-1/+1
* Oops, forgot to update the checksum file.tg2000-01-181-2/+2
* On second thought, put back DIST_SUBDIR. It's not only used for thetg2000-01-181-0/+1
* - Support IPv6.sumikawa2000-01-133-3/+20
* s/X11_BASE/X11BASE/.tg2000-01-101-1/+1
* - Install python-mode.el.tg2000-01-062-1/+7
* Use Tk-8.2.tg1999-11-031-2/+2
* Link against libxpg4.tg1999-10-271-1/+1
* FreeBSD.ORG -> FreeBSD.orgmharo1999-08-311-1/+1
* Change Id->FreeBSD.obrien1999-08-251-1/+1
* Add the SHA module to the build.tg1999-07-282-1/+8
* Fix package building when you're leaving out optional parts, like Tk.tg1999-07-154-207/+211
* Install the contents of the Tools directory by default. This can betg1999-07-062-1/+215
* Commit #3/4 to enforce caps, no period.hoek1999-06-271-1/+1
* Link some modules against libmytinfo to pick up a working tputs().tg1999-06-181-2/+2
* Enable the parser module.tg1999-05-212-1/+2
* Better support for local $CFLAGS.tg1999-05-191-3/+3
* Remove ``NO_LATEST_LINK''nectar1999-04-221-2/+1