* @revision 03 * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @homepage http://oss.tiggerswelt.net/oscar/ * @copyright Copyright © 2009 tiggersWelt.net */ require_once ("oscar/snac/helper/error.php"); class Oscar_SNAC_Usage extends Oscar_SNAC { const SNAC_FAMILY = 0x000B; const SNAC_VERSION = 0x0001; const SNAC_TOOLID = 0x0110; const SNAC_TOOL_VERSION = 0x164F; } class Oscar_SNAC_Usage_Error extends Oscar_SNAC_Helper_Error { /* About this class */ const SNAC_FAMILY = 0x000B; const SNAC_SERVICE = 0x0001; } class Oscar_SNAC_Usage_Report_MinInterval extends Oscar_SNAC { /* About this class */ const SNAC_FAMILY = 0x000B; const SNAC_SERVICE = 0x0002; public $MinInterval = 0; // {{{ parse /** * Parse packet when received from server * * @access public * @return void */ public function parse () { $this->MinInterval = Oscar_Common::str2int16 ($this->Data); } // }}} // {{{ generate /** * Generate string from object * * @access public * @return string */ public function generate () { $this->Data = Oscar_Common::int16tostr ($this->MinInterval); return parent::generate (); } // }}} } class Oscar_SNAC_Usage_Report extends Oscar_SNAC { /* About this class */ const SNAC_FAMILY = 0x000B; const SNAC_SERVICE = 0x0003; /* NOT IMPLEMENTED (yet?) */ } class Oscar_SNAC_Usage_Report_ACK extends Oscar_SNAC { /* About this class */ const SNAC_FAMILY = 0x000B; const SNAC_SERVICE = 0x0004; } ?>