Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 943b1476818e5ec34d7058ed3b879448 > files > 187

libmapi-devel-0.8.2-1.1481.3mdv2010.0.i586.rpm

<html>
  <head>
    <title>OpenChange Property Files 0.8 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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;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="contents">
<h1>sample_task.ocpf</h1>This example shows a sample OCPF file designed to create a task with the following details:<ul>
<li>Task starting the 6th of March at 8:00PM and ending at 11:00PM</li><li>Importance set to High</li><li>Waiting for someone else</li><li>Subject, Body and Private flag set</li></ul>
<p>
<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 task</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 &lt;http://www.gnu.org/licenses/&gt;</span>
<span class="comment"> */</span>

TYPE    <span class="stringliteral">"IPM.Task"</span>
FOLDER  <span class="stringliteral">"olFolderTasks"</span>

OLEGUID PSETID_Task             <span class="stringliteral">"00062003-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] Sample Task"</span>
SET     $body           =       <span class="stringliteral">"This is the sample task body"</span>
SET     $start_date     =       T2008-03-06 20:00:00
SET     $end_date       =       T2008-03-06 23:00:00
SET     $importance     =       2 <span class="comment">/* IMPORTANCE_HIGH */</span>
SET     $task_status    =       3 <span class="comment">/* Waiting */</span>

PROPERTY {
         PR_CONVERSATION_TOPIC = $subject
         PR_NORMALIZED_SUBJECT = $subject
         PR_BODY = $body
         PR_IMPORTANCE = $importance
         PR_SENSITIVITY = 2     <span class="comment">/* needed to have private box ticked */</span>
};

NPROPERTY {
          OOM:Companies:PSETID_Common = {<span class="stringliteral">"OpenChange Project"</span>, <span class="stringliteral">"Samba Project"</span> }
          OOM:StartDate:PSETID_Task = $start_date
          OOM:DueDate:PSETID_Task = $end_date
          OOM:Status:PSETID_Task = $task_status
          OOM:Private:PSETID_Common = B<span class="stringliteral">"true"</span>
          MNID_STRING:<span class="stringliteral">"Keywords"</span>:PS_PUBLIC_STRINGS = { <span class="stringliteral">"Category1"</span>, <span class="stringliteral">"Category2"</span> }
};
</pre></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>