<html> <head> <title>OpenChange Property Files 0.9 API Documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"/> <link href="apidocs.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="website"> <div class="header"></div> <div id="middle_side"> <div id="right_side_home"> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <h1>sample_appointment.ocpf</h1> </div> </div> <div class="contents"> <p>This example shows a sample OCPF file designed to create a calendar with the following details:</p> <ul> <li>Event starting the 6th of March at 10:00PM and ending at 11:45PM</li> <li>Reminder set 45 minutes before the beginning of event</li> <li>Label set to Anniversary</li> <li>Subject, Body, Location and Private flag set</li> </ul> <div class="fragment"><pre class="fragment"><span class="comment">/*</span> <span class="comment"> * OpenChange Property File</span> <span class="comment"> *</span> <span class="comment"> * Copyright (C) Julien Kerihuel 2008.</span> <span class="comment"> *</span> <span class="comment"> * Sample appointment</span> <span class="comment"> *</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span> <span class="comment"> * the Free Software Foundation; either version 3 of the License, or</span> <span class="comment"> * (at your option) any later version.</span> <span class="comment"> * </span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <span class="comment"> * GNU General Public License for more details.</span> <span class="comment"> * </span> <span class="comment"> * You should have received a copy of the GNU General Public License</span> <span class="comment"> * along with this program. If not, see <http://www.gnu.org/licenses/></span> <span class="comment"> */</span> TYPE <span class="stringliteral">"IPM.Appointment"</span> FOLDER <span class="stringliteral">"olFolderCalendar"</span> OLEGUID PSETID_Appointment <span class="stringliteral">"00062002-0000-0000-c000-000000000046"</span> OLEGUID PSETID_Common <span class="stringliteral">"00062008-0000-0000-c000-000000000046"</span> OLEGUID PS_PUBLIC_STRINGS <span class="stringliteral">"00020329-0000-0000-c000-000000000046"</span> SET $subject = <span class="stringliteral">"[OCPF] Julien Kerihuel Birthday"</span> SET $start_date = T2008-03-06 22:00:00 SET $end_date = T2008-03-06 23:45:00 SET $reminder = 45 SET $keywords = { <span class="stringliteral">"candles"</span>, <span class="stringliteral">"friends"</span>, <span class="stringliteral">"family"</span> } SET $private = B<span class="stringliteral">"true"</span> SET $wrong = 0 PROPERTY { PR_CONVERSATION_TOPIC = $subject PR_NORMALIZED_SUBJECT = $subject PR_BODY = <span class="stringliteral">"Another year, another pleasure"</span> PR_START_DATE = $start_date PR_END_DATE = $end_date PR_SENSITIVITY = 2 }; NPROPERTY { OOM:Label:PSETID_Appointment = 9 OOM:Start:PSETID_Appointment = $start_date OOM:CommonStart:PSETID_Common = $start_date OOM:End:PSETID_Appointment = $end_date OOM:CommonEnd:PSETID_Common = $end_date OOM:Location:PSETID_Appointment = <span class="stringliteral">"Home Sweet Home"</span> <span class="comment">/* MeetingStatus */</span> MNID_ID:0x8217:PSETID_Appointment = $wrong OOM:Private:PSETID_Common = $private <span class="comment">/* Set a reminder */</span> MNID_ID:0x8501:PT_LONG:PSETID_Common = $reminder <span class="comment">/* Add categories */</span> MNID_STRING:<span class="stringliteral">"Keywords"</span>:PS_PUBLIC_STRINGS = $keywords }; </pre></div> </div> </div> </div> <br/> <table style="clear:both; margin: 0.5em auto; width:80%; text-align: center; background-color:#f8f8f8; border:2px solid #e0e0e0; padding:5px;"> <tr> <td> <img alt="Creative Commons License" src="CC_SomeRightsReserved.png" width="90" height="30" border="0" /><br /> <img alt="Creative Commons Attribution icon" src="24px-Cc-by_white.svg.png" width="24" height="24" border="0" /> <img alt="Creative Commons Share Alike icon" src="24px-Cc-sa_white.svg.png" width="24" height="24" border="0" /> </td> <td> <i><strong class="selflink">This content</strong> is licensed under the Creative Commons<br /> Attribution ShareAlike License v. 3.0:<br /> <a href="http://creativecommons.org/licenses/by-sa/3.0/" class="external free" title="http://creativecommons.org/licenses/by-sa/3.0/" rel="nofollow">http://creativecommons.org/licenses/by-sa/3.0/</a></i> </td></tr></table> <br/> </div> </div> </body> </html>