*/
class Horde_ActiveSync
{
- /* SYNC Status response codes */
- const STATUS_SYNC_SUCCESS = 1;
- const STATUS_SYNC_VERSIONMISM = 2;
- const STATUS_SYNC_KEYMISM = 3;
- const STATUS_SYNC_PROTERROR = 4;
- const STATUS_SYNC_SERVERERROR = 5;
-
- const STATUS_PING_NOCHANGES = 1;
- const STATUS_PING_NEEDSYNC = 2;
- const STATUS_PING_MISSING = 3;
- const STATUS_PING_PROTERROR = 4;
- // Hearbeat out of bounds (TODO)
- const STATUS_PING_HBOUTOFBOUNDS = 5;
-
- // Requested more then the max folders (TODO)
- const STATUS_PING_MAXFOLDERS = 6;
-
- // Folder sync is required, hierarchy out of date.
- const STATUS_PING_FOLDERSYNCREQD = 7;
- const STATUS_PING_SERVERERROR = 8;
-
-
- /**
+ /**
* DTD
*/
static public $zpushdtd = array(
return false;
}
+ /* Obtain all the collections we are getting estimates for */
while ($this->_decoder->getElementStartTag(SYNC_GETITEMESTIMATE_FOLDER)) {
/* Status - Assume success */
$this->_encoder->startWBXML();
+ /* Start getting the actual esitmates and outputting the results */
$this->_encoder->startTag(SYNC_GETITEMESTIMATE_GETITEMESTIMATE);
foreach ($collections as $collection) {
$this->_encoder->startTag(SYNC_GETITEMESTIMATE_RESPONSE);