source: trunk/zpush/lib/syncobjects/syncmailflags.php @ 7589

Revision 7589, 5.4 KB checked in by douglas, 11 years ago (diff)

Ticket #3209 - Integrar módulo de sincronização Z-push ao Expresso

Line 
1<?php
2/***********************************************
3* File      :   syncmailflags.php
4* Project   :   Z-Push
5* Descr     :   WBXML AirSyncBase body entities that can be parsed
6*               directly (as a stream) from WBXML.
7*               It is automatically decoded according to $mapping,
8*               and the Sync WBXML mappings.
9*
10* Created   :   09.09.2011
11*
12* Copyright 2007 - 2012 Zarafa Deutschland GmbH
13*
14* This program is free software: you can redistribute it and/or modify
15* it under the terms of the GNU Affero General Public License, version 3,
16* as published by the Free Software Foundation with the following additional
17* term according to sec. 7:
18*
19* According to sec. 7 of the GNU Affero General Public License, version 3,
20* the terms of the AGPL are supplemented with the following terms:
21*
22* "Zarafa" is a registered trademark of Zarafa B.V.
23* "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
24* The licensing of the Program under the AGPL does not imply a trademark license.
25* Therefore any rights, title and interest in our trademarks remain entirely with us.
26*
27* However, if you propagate an unmodified version of the Program you are
28* allowed to use the term "Z-Push" to indicate that you distribute the Program.
29* Furthermore you may use our trademarks where it is necessary to indicate
30* the intended purpose of a product or service provided you use it in accordance
31* with honest practices in industrial or commercial matters.
32* If you want to propagate modified versions of the Program under the name "Z-Push",
33* you may only do so if you have a written permission by Zarafa Deutschland GmbH
34* (to acquire a permission please contact Zarafa at trademark@zarafa.com).
35*
36* This program is distributed in the hope that it will be useful,
37* but WITHOUT ANY WARRANTY; without even the implied warranty of
38* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39* GNU Affero General Public License for more details.
40*
41* You should have received a copy of the GNU Affero General Public License
42* along with this program.  If not, see <http://www.gnu.org/licenses/>.
43*
44* Consult LICENSE file for details
45************************************************/
46
47class SyncMailFlags extends SyncObject {
48    public $subject;
49    public $flagstatus;
50    public $flagtype; //Possible types are clear, complete, active
51    public $datecompleted;
52    public $completetime;
53    public $startdate;
54    public $duedate;
55    public $utcstartdate;
56    public $utcduedate;
57    public $reminderset;
58    public $remindertime;
59    public $ordinaldate;
60    public $subordinaldate;
61
62
63    function SyncMailFlags() {
64        $mapping = array(
65                    SYNC_POOMTASKS_SUBJECT                              => array (  self::STREAMER_VAR      => "subject"),
66                    SYNC_POOMMAIL_FLAGSTATUS                            => array (  self::STREAMER_VAR      => "flagstatus"),
67                    SYNC_POOMMAIL_FLAGTYPE                              => array (  self::STREAMER_VAR      => "flagtype"),
68                    SYNC_POOMTASKS_DATECOMPLETED                        => array (  self::STREAMER_VAR      => "datecompleted",
69                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
70
71                    SYNC_POOMMAIL_COMPLETETIME                          => array (  self::STREAMER_VAR      => "completetime",
72                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
73
74                    SYNC_POOMTASKS_STARTDATE                            => array (  self::STREAMER_VAR      => "startdate",
75                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
76
77                    SYNC_POOMTASKS_DUEDATE                              => array (  self::STREAMER_VAR      => "duedate",
78                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
79
80                    SYNC_POOMTASKS_UTCSTARTDATE                         => array (  self::STREAMER_VAR      => "utcstartdate",
81                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
82
83                    SYNC_POOMTASKS_UTCDUEDATE                           => array (  self::STREAMER_VAR      => "utcduedate",
84                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
85
86                    SYNC_POOMTASKS_REMINDERSET                          => array (  self::STREAMER_VAR      => "reminderset"),
87                    SYNC_POOMTASKS_REMINDERTIME                         => array (  self::STREAMER_VAR      => "remindertime",
88                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
89
90                    SYNC_POOMTASKS_ORDINALDATE                          => array (  self::STREAMER_VAR      => "ordinaldate",
91                                                                                    self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
92
93                    SYNC_POOMTASKS_SUBORDINALDATE                       => array (  self::STREAMER_VAR      => "subordinaldate"),
94        );
95
96        parent::SyncObject($mapping);
97    }
98}
99?>
Note: See TracBrowser for help on using the repository browser.