PageRenderTime 59ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/bin/ScriptEngines/PythonScript/mumble/MurmurControl/Murmur_ice.py

https://bitbucket.org/VirtualReality/taiga
Python | 3747 lines | 3722 code | 8 blank | 17 comment | 52 complexity | 65c89fd1d630fc1b3bbb33fb26afb381 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. # **********************************************************************
  2. #
  3. # Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
  4. #
  5. # This copy of Ice is licensed to you under the terms described in the
  6. # ICE_LICENSE file included in this distribution.
  7. #
  8. # **********************************************************************
  9. # Ice version 3.4.1
  10. # <auto-generated>
  11. #
  12. # Generated from file `Murmur.ice'
  13. #
  14. # Warning: do not edit this file.
  15. #
  16. # </auto-generated>
  17. import Ice, IcePy, __builtin__
  18. # Start of module Murmur
  19. _M_Murmur = Ice.openModule('Murmur')
  20. __name__ = 'Murmur'
  21. _M_Murmur.__doc__ = '''Information and control of the murmur server. Each server has
  22. one [Meta] interface that controls global information, and
  23. each virtual server has a [Server] interface.'''
  24. if not _M_Murmur.__dict__.has_key('_t_NetAddress'):
  25. _M_Murmur._t_NetAddress = IcePy.defineSequence('::Murmur::NetAddress', ('python:seq:tuple',), IcePy._t_byte)
  26. if not _M_Murmur.__dict__.has_key('User'):
  27. _M_Murmur.User = Ice.createTempClass()
  28. class User(object):
  29. '''A connected user.'''
  30. def __init__(self, session=0, userid=0, mute=False, deaf=False, suppress=False, selfMute=False, selfDeaf=False, channel=0, name='', onlinesecs=0, bytespersec=0, version=0, release='', os='', osversion='', identity='', context='', comment='', address=None, tcponly=False, idlesecs=0):
  31. self.session = session
  32. self.userid = userid
  33. self.mute = mute
  34. self.deaf = deaf
  35. self.suppress = suppress
  36. self.selfMute = selfMute
  37. self.selfDeaf = selfDeaf
  38. self.channel = channel
  39. self.name = name
  40. self.onlinesecs = onlinesecs
  41. self.bytespersec = bytespersec
  42. self.version = version
  43. self.release = release
  44. self.os = os
  45. self.osversion = osversion
  46. self.identity = identity
  47. self.context = context
  48. self.comment = comment
  49. self.address = address
  50. self.tcponly = tcponly
  51. self.idlesecs = idlesecs
  52. def __hash__(self):
  53. _h = 0
  54. _h = 5 * _h + __builtin__.hash(self.session)
  55. _h = 5 * _h + __builtin__.hash(self.userid)
  56. _h = 5 * _h + __builtin__.hash(self.mute)
  57. _h = 5 * _h + __builtin__.hash(self.deaf)
  58. _h = 5 * _h + __builtin__.hash(self.suppress)
  59. _h = 5 * _h + __builtin__.hash(self.selfMute)
  60. _h = 5 * _h + __builtin__.hash(self.selfDeaf)
  61. _h = 5 * _h + __builtin__.hash(self.channel)
  62. _h = 5 * _h + __builtin__.hash(self.name)
  63. _h = 5 * _h + __builtin__.hash(self.onlinesecs)
  64. _h = 5 * _h + __builtin__.hash(self.bytespersec)
  65. _h = 5 * _h + __builtin__.hash(self.version)
  66. _h = 5 * _h + __builtin__.hash(self.release)
  67. _h = 5 * _h + __builtin__.hash(self.os)
  68. _h = 5 * _h + __builtin__.hash(self.osversion)
  69. _h = 5 * _h + __builtin__.hash(self.identity)
  70. _h = 5 * _h + __builtin__.hash(self.context)
  71. _h = 5 * _h + __builtin__.hash(self.comment)
  72. if self.address:
  73. for _i0 in self.address:
  74. _h = 5 * _h + __builtin__.hash(_i0)
  75. _h = 5 * _h + __builtin__.hash(self.tcponly)
  76. _h = 5 * _h + __builtin__.hash(self.idlesecs)
  77. return _h % 0x7fffffff
  78. def __lt__(self, other):
  79. if isinstance(other, _M_Murmur.User):
  80. return self.session < other.session or self.userid < other.userid or self.mute < other.mute or self.deaf < other.deaf or self.suppress < other.suppress or self.selfMute < other.selfMute or self.selfDeaf < other.selfDeaf or self.channel < other.channel or self.name < other.name or self.onlinesecs < other.onlinesecs or self.bytespersec < other.bytespersec or self.version < other.version or self.release < other.release or self.os < other.os or self.osversion < other.osversion or self.identity < other.identity or self.context < other.context or self.comment < other.comment or self.address < other.address or self.tcponly < other.tcponly or self.idlesecs < other.idlesecs
  81. elif other == None:
  82. return False
  83. return NotImplemented
  84. def __le__(self, other):
  85. if isinstance(other, _M_Murmur.User):
  86. return self.session <= other.session or self.userid <= other.userid or self.mute <= other.mute or self.deaf <= other.deaf or self.suppress <= other.suppress or self.selfMute <= other.selfMute or self.selfDeaf <= other.selfDeaf or self.channel <= other.channel or self.name <= other.name or self.onlinesecs <= other.onlinesecs or self.bytespersec <= other.bytespersec or self.version <= other.version or self.release <= other.release or self.os <= other.os or self.osversion <= other.osversion or self.identity <= other.identity or self.context <= other.context or self.comment <= other.comment or self.address <= other.address or self.tcponly <= other.tcponly or self.idlesecs <= other.idlesecs
  87. elif other == None:
  88. return False
  89. return NotImplemented
  90. def __eq__(self, other):
  91. if isinstance(other, _M_Murmur.User):
  92. return self.session == other.session and self.userid == other.userid and self.mute == other.mute and self.deaf == other.deaf and self.suppress == other.suppress and self.selfMute == other.selfMute and self.selfDeaf == other.selfDeaf and self.channel == other.channel and self.name == other.name and self.onlinesecs == other.onlinesecs and self.bytespersec == other.bytespersec and self.version == other.version and self.release == other.release and self.os == other.os and self.osversion == other.osversion and self.identity == other.identity and self.context == other.context and self.comment == other.comment and self.address == other.address and self.tcponly == other.tcponly and self.idlesecs == other.idlesecs
  93. elif other == None:
  94. return False
  95. return NotImplemented
  96. def __ne__(self, other):
  97. if isinstance(other, _M_Murmur.User):
  98. return self.session != other.session or self.userid != other.userid or self.mute != other.mute or self.deaf != other.deaf or self.suppress != other.suppress or self.selfMute != other.selfMute or self.selfDeaf != other.selfDeaf or self.channel != other.channel or self.name != other.name or self.onlinesecs != other.onlinesecs or self.bytespersec != other.bytespersec or self.version != other.version or self.release != other.release or self.os != other.os or self.osversion != other.osversion or self.identity != other.identity or self.context != other.context or self.comment != other.comment or self.address != other.address or self.tcponly != other.tcponly or self.idlesecs != other.idlesecs
  99. elif other == None:
  100. return True
  101. return NotImplemented
  102. def __gt__(self, other):
  103. if isinstance(other, _M_Murmur.User):
  104. return self.session > other.session or self.userid > other.userid or self.mute > other.mute or self.deaf > other.deaf or self.suppress > other.suppress or self.selfMute > other.selfMute or self.selfDeaf > other.selfDeaf or self.channel > other.channel or self.name > other.name or self.onlinesecs > other.onlinesecs or self.bytespersec > other.bytespersec or self.version > other.version or self.release > other.release or self.os > other.os or self.osversion > other.osversion or self.identity > other.identity or self.context > other.context or self.comment > other.comment or self.address > other.address or self.tcponly > other.tcponly or self.idlesecs > other.idlesecs
  105. elif other == None:
  106. return False
  107. return NotImplemented
  108. def __ge__(self, other):
  109. if isinstance(other, _M_Murmur.User):
  110. return self.session >= other.session or self.userid >= other.userid or self.mute >= other.mute or self.deaf >= other.deaf or self.suppress >= other.suppress or self.selfMute >= other.selfMute or self.selfDeaf >= other.selfDeaf or self.channel >= other.channel or self.name >= other.name or self.onlinesecs >= other.onlinesecs or self.bytespersec >= other.bytespersec or self.version >= other.version or self.release >= other.release or self.os >= other.os or self.osversion >= other.osversion or self.identity >= other.identity or self.context >= other.context or self.comment >= other.comment or self.address >= other.address or self.tcponly >= other.tcponly or self.idlesecs >= other.idlesecs
  111. elif other == None:
  112. return False
  113. return NotImplemented
  114. def __str__(self):
  115. return IcePy.stringify(self, _M_Murmur._t_User)
  116. __repr__ = __str__
  117. _M_Murmur._t_User = IcePy.defineStruct('::Murmur::User', User, (), (
  118. ('session', (), IcePy._t_int),
  119. ('userid', (), IcePy._t_int),
  120. ('mute', (), IcePy._t_bool),
  121. ('deaf', (), IcePy._t_bool),
  122. ('suppress', (), IcePy._t_bool),
  123. ('selfMute', (), IcePy._t_bool),
  124. ('selfDeaf', (), IcePy._t_bool),
  125. ('channel', (), IcePy._t_int),
  126. ('name', (), IcePy._t_string),
  127. ('onlinesecs', (), IcePy._t_int),
  128. ('bytespersec', (), IcePy._t_int),
  129. ('version', (), IcePy._t_int),
  130. ('release', (), IcePy._t_string),
  131. ('os', (), IcePy._t_string),
  132. ('osversion', (), IcePy._t_string),
  133. ('identity', (), IcePy._t_string),
  134. ('context', (), IcePy._t_string),
  135. ('comment', (), IcePy._t_string),
  136. ('address', (), _M_Murmur._t_NetAddress),
  137. ('tcponly', (), IcePy._t_bool),
  138. ('idlesecs', (), IcePy._t_int)
  139. ))
  140. _M_Murmur.User = User
  141. del User
  142. if not _M_Murmur.__dict__.has_key('_t_IntList'):
  143. _M_Murmur._t_IntList = IcePy.defineSequence('::Murmur::IntList', (), IcePy._t_int)
  144. if not _M_Murmur.__dict__.has_key('Channel'):
  145. _M_Murmur.Channel = Ice.createTempClass()
  146. class Channel(object):
  147. '''A channel.'''
  148. def __init__(self, id=0, name='', parent=0, links=None, description='', temporary=False, position=0):
  149. self.id = id
  150. self.name = name
  151. self.parent = parent
  152. self.links = links
  153. self.description = description
  154. self.temporary = temporary
  155. self.position = position
  156. def __hash__(self):
  157. _h = 0
  158. _h = 5 * _h + __builtin__.hash(self.id)
  159. _h = 5 * _h + __builtin__.hash(self.name)
  160. _h = 5 * _h + __builtin__.hash(self.parent)
  161. if self.links:
  162. for _i0 in self.links:
  163. _h = 5 * _h + __builtin__.hash(_i0)
  164. _h = 5 * _h + __builtin__.hash(self.description)
  165. _h = 5 * _h + __builtin__.hash(self.temporary)
  166. _h = 5 * _h + __builtin__.hash(self.position)
  167. return _h % 0x7fffffff
  168. def __lt__(self, other):
  169. if isinstance(other, _M_Murmur.Channel):
  170. return self.id < other.id or self.name < other.name or self.parent < other.parent or self.links < other.links or self.description < other.description or self.temporary < other.temporary or self.position < other.position
  171. elif other == None:
  172. return False
  173. return NotImplemented
  174. def __le__(self, other):
  175. if isinstance(other, _M_Murmur.Channel):
  176. return self.id <= other.id or self.name <= other.name or self.parent <= other.parent or self.links <= other.links or self.description <= other.description or self.temporary <= other.temporary or self.position <= other.position
  177. elif other == None:
  178. return False
  179. return NotImplemented
  180. def __eq__(self, other):
  181. if isinstance(other, _M_Murmur.Channel):
  182. return self.id == other.id and self.name == other.name and self.parent == other.parent and self.links == other.links and self.description == other.description and self.temporary == other.temporary and self.position == other.position
  183. elif other == None:
  184. return False
  185. return NotImplemented
  186. def __ne__(self, other):
  187. if isinstance(other, _M_Murmur.Channel):
  188. return self.id != other.id or self.name != other.name or self.parent != other.parent or self.links != other.links or self.description != other.description or self.temporary != other.temporary or self.position != other.position
  189. elif other == None:
  190. return True
  191. return NotImplemented
  192. def __gt__(self, other):
  193. if isinstance(other, _M_Murmur.Channel):
  194. return self.id > other.id or self.name > other.name or self.parent > other.parent or self.links > other.links or self.description > other.description or self.temporary > other.temporary or self.position > other.position
  195. elif other == None:
  196. return False
  197. return NotImplemented
  198. def __ge__(self, other):
  199. if isinstance(other, _M_Murmur.Channel):
  200. return self.id >= other.id or self.name >= other.name or self.parent >= other.parent or self.links >= other.links or self.description >= other.description or self.temporary >= other.temporary or self.position >= other.position
  201. elif other == None:
  202. return False
  203. return NotImplemented
  204. def __str__(self):
  205. return IcePy.stringify(self, _M_Murmur._t_Channel)
  206. __repr__ = __str__
  207. _M_Murmur._t_Channel = IcePy.defineStruct('::Murmur::Channel', Channel, (), (
  208. ('id', (), IcePy._t_int),
  209. ('name', (), IcePy._t_string),
  210. ('parent', (), IcePy._t_int),
  211. ('links', (), _M_Murmur._t_IntList),
  212. ('description', (), IcePy._t_string),
  213. ('temporary', (), IcePy._t_bool),
  214. ('position', (), IcePy._t_int)
  215. ))
  216. _M_Murmur.Channel = Channel
  217. del Channel
  218. if not _M_Murmur.__dict__.has_key('Group'):
  219. _M_Murmur.Group = Ice.createTempClass()
  220. class Group(object):
  221. '''A group. Groups are defined per channel, and can inherit members from parent channels.'''
  222. def __init__(self, name='', inherited=False, inherit=False, inheritable=False, add=None, remove=None, members=None):
  223. self.name = name
  224. self.inherited = inherited
  225. self.inherit = inherit
  226. self.inheritable = inheritable
  227. self.add = add
  228. self.remove = remove
  229. self.members = members
  230. def __hash__(self):
  231. _h = 0
  232. _h = 5 * _h + __builtin__.hash(self.name)
  233. _h = 5 * _h + __builtin__.hash(self.inherited)
  234. _h = 5 * _h + __builtin__.hash(self.inherit)
  235. _h = 5 * _h + __builtin__.hash(self.inheritable)
  236. if self.add:
  237. for _i0 in self.add:
  238. _h = 5 * _h + __builtin__.hash(_i0)
  239. if self.remove:
  240. for _i1 in self.remove:
  241. _h = 5 * _h + __builtin__.hash(_i1)
  242. if self.members:
  243. for _i2 in self.members:
  244. _h = 5 * _h + __builtin__.hash(_i2)
  245. return _h % 0x7fffffff
  246. def __lt__(self, other):
  247. if isinstance(other, _M_Murmur.Group):
  248. return self.name < other.name or self.inherited < other.inherited or self.inherit < other.inherit or self.inheritable < other.inheritable or self.add < other.add or self.remove < other.remove or self.members < other.members
  249. elif other == None:
  250. return False
  251. return NotImplemented
  252. def __le__(self, other):
  253. if isinstance(other, _M_Murmur.Group):
  254. return self.name <= other.name or self.inherited <= other.inherited or self.inherit <= other.inherit or self.inheritable <= other.inheritable or self.add <= other.add or self.remove <= other.remove or self.members <= other.members
  255. elif other == None:
  256. return False
  257. return NotImplemented
  258. def __eq__(self, other):
  259. if isinstance(other, _M_Murmur.Group):
  260. return self.name == other.name and self.inherited == other.inherited and self.inherit == other.inherit and self.inheritable == other.inheritable and self.add == other.add and self.remove == other.remove and self.members == other.members
  261. elif other == None:
  262. return False
  263. return NotImplemented
  264. def __ne__(self, other):
  265. if isinstance(other, _M_Murmur.Group):
  266. return self.name != other.name or self.inherited != other.inherited or self.inherit != other.inherit or self.inheritable != other.inheritable or self.add != other.add or self.remove != other.remove or self.members != other.members
  267. elif other == None:
  268. return True
  269. return NotImplemented
  270. def __gt__(self, other):
  271. if isinstance(other, _M_Murmur.Group):
  272. return self.name > other.name or self.inherited > other.inherited or self.inherit > other.inherit or self.inheritable > other.inheritable or self.add > other.add or self.remove > other.remove or self.members > other.members
  273. elif other == None:
  274. return False
  275. return NotImplemented
  276. def __ge__(self, other):
  277. if isinstance(other, _M_Murmur.Group):
  278. return self.name >= other.name or self.inherited >= other.inherited or self.inherit >= other.inherit or self.inheritable >= other.inheritable or self.add >= other.add or self.remove >= other.remove or self.members >= other.members
  279. elif other == None:
  280. return False
  281. return NotImplemented
  282. def __str__(self):
  283. return IcePy.stringify(self, _M_Murmur._t_Group)
  284. __repr__ = __str__
  285. _M_Murmur._t_Group = IcePy.defineStruct('::Murmur::Group', Group, (), (
  286. ('name', (), IcePy._t_string),
  287. ('inherited', (), IcePy._t_bool),
  288. ('inherit', (), IcePy._t_bool),
  289. ('inheritable', (), IcePy._t_bool),
  290. ('add', (), _M_Murmur._t_IntList),
  291. ('remove', (), _M_Murmur._t_IntList),
  292. ('members', (), _M_Murmur._t_IntList)
  293. ))
  294. _M_Murmur.Group = Group
  295. del Group
  296. _M_Murmur.PermissionWrite = 1
  297. _M_Murmur.PermissionTraverse = 2
  298. _M_Murmur.PermissionEnter = 4
  299. _M_Murmur.PermissionSpeak = 8
  300. _M_Murmur.PermissionWhisper = 256
  301. _M_Murmur.PermissionMuteDeafen = 16
  302. _M_Murmur.PermissionMove = 32
  303. _M_Murmur.PermissionMakeChannel = 64
  304. _M_Murmur.PermissionMakeTempChannel = 1024
  305. _M_Murmur.PermissionLinkChannel = 128
  306. _M_Murmur.PermissionTextMessage = 512
  307. _M_Murmur.PermissionKick = 65536
  308. _M_Murmur.PermissionBan = 131072
  309. _M_Murmur.PermissionRegister = 262144
  310. _M_Murmur.PermissionRegisterSelf = 524288
  311. if not _M_Murmur.__dict__.has_key('ACL'):
  312. _M_Murmur.ACL = Ice.createTempClass()
  313. class ACL(object):
  314. '''Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels.'''
  315. def __init__(self, applyHere=False, applySubs=False, inherited=False, userid=0, group='', allow=0, deny=0):
  316. self.applyHere = applyHere
  317. self.applySubs = applySubs
  318. self.inherited = inherited
  319. self.userid = userid
  320. self.group = group
  321. self.allow = allow
  322. self.deny = deny
  323. def __hash__(self):
  324. _h = 0
  325. _h = 5 * _h + __builtin__.hash(self.applyHere)
  326. _h = 5 * _h + __builtin__.hash(self.applySubs)
  327. _h = 5 * _h + __builtin__.hash(self.inherited)
  328. _h = 5 * _h + __builtin__.hash(self.userid)
  329. _h = 5 * _h + __builtin__.hash(self.group)
  330. _h = 5 * _h + __builtin__.hash(self.allow)
  331. _h = 5 * _h + __builtin__.hash(self.deny)
  332. return _h % 0x7fffffff
  333. def __lt__(self, other):
  334. if isinstance(other, _M_Murmur.ACL):
  335. return self.applyHere < other.applyHere or self.applySubs < other.applySubs or self.inherited < other.inherited or self.userid < other.userid or self.group < other.group or self.allow < other.allow or self.deny < other.deny
  336. elif other == None:
  337. return False
  338. return NotImplemented
  339. def __le__(self, other):
  340. if isinstance(other, _M_Murmur.ACL):
  341. return self.applyHere <= other.applyHere or self.applySubs <= other.applySubs or self.inherited <= other.inherited or self.userid <= other.userid or self.group <= other.group or self.allow <= other.allow or self.deny <= other.deny
  342. elif other == None:
  343. return False
  344. return NotImplemented
  345. def __eq__(self, other):
  346. if isinstance(other, _M_Murmur.ACL):
  347. return self.applyHere == other.applyHere and self.applySubs == other.applySubs and self.inherited == other.inherited and self.userid == other.userid and self.group == other.group and self.allow == other.allow and self.deny == other.deny
  348. elif other == None:
  349. return False
  350. return NotImplemented
  351. def __ne__(self, other):
  352. if isinstance(other, _M_Murmur.ACL):
  353. return self.applyHere != other.applyHere or self.applySubs != other.applySubs or self.inherited != other.inherited or self.userid != other.userid or self.group != other.group or self.allow != other.allow or self.deny != other.deny
  354. elif other == None:
  355. return True
  356. return NotImplemented
  357. def __gt__(self, other):
  358. if isinstance(other, _M_Murmur.ACL):
  359. return self.applyHere > other.applyHere or self.applySubs > other.applySubs or self.inherited > other.inherited or self.userid > other.userid or self.group > other.group or self.allow > other.allow or self.deny > other.deny
  360. elif other == None:
  361. return False
  362. return NotImplemented
  363. def __ge__(self, other):
  364. if isinstance(other, _M_Murmur.ACL):
  365. return self.applyHere >= other.applyHere or self.applySubs >= other.applySubs or self.inherited >= other.inherited or self.userid >= other.userid or self.group >= other.group or self.allow >= other.allow or self.deny >= other.deny
  366. elif other == None:
  367. return False
  368. return NotImplemented
  369. def __str__(self):
  370. return IcePy.stringify(self, _M_Murmur._t_ACL)
  371. __repr__ = __str__
  372. _M_Murmur._t_ACL = IcePy.defineStruct('::Murmur::ACL', ACL, (), (
  373. ('applyHere', (), IcePy._t_bool),
  374. ('applySubs', (), IcePy._t_bool),
  375. ('inherited', (), IcePy._t_bool),
  376. ('userid', (), IcePy._t_int),
  377. ('group', (), IcePy._t_string),
  378. ('allow', (), IcePy._t_int),
  379. ('deny', (), IcePy._t_int)
  380. ))
  381. _M_Murmur.ACL = ACL
  382. del ACL
  383. if not _M_Murmur.__dict__.has_key('Ban'):
  384. _M_Murmur.Ban = Ice.createTempClass()
  385. class Ban(object):
  386. '''A single ip mask for a ban.'''
  387. def __init__(self, address=None, bits=0, name='', hash='', reason='', start=0, duration=0):
  388. self.address = address
  389. self.bits = bits
  390. self.name = name
  391. self.hash = hash
  392. self.reason = reason
  393. self.start = start
  394. self.duration = duration
  395. def __hash__(self):
  396. _h = 0
  397. if self.address:
  398. for _i0 in self.address:
  399. _h = 5 * _h + __builtin__.hash(_i0)
  400. _h = 5 * _h + __builtin__.hash(self.bits)
  401. _h = 5 * _h + __builtin__.hash(self.name)
  402. _h = 5 * _h + __builtin__.hash(self.hash)
  403. _h = 5 * _h + __builtin__.hash(self.reason)
  404. _h = 5 * _h + __builtin__.hash(self.start)
  405. _h = 5 * _h + __builtin__.hash(self.duration)
  406. return _h % 0x7fffffff
  407. def __lt__(self, other):
  408. if isinstance(other, _M_Murmur.Ban):
  409. return self.address < other.address or self.bits < other.bits or self.name < other.name or self.hash < other.hash or self.reason < other.reason or self.start < other.start or self.duration < other.duration
  410. elif other == None:
  411. return False
  412. return NotImplemented
  413. def __le__(self, other):
  414. if isinstance(other, _M_Murmur.Ban):
  415. return self.address <= other.address or self.bits <= other.bits or self.name <= other.name or self.hash <= other.hash or self.reason <= other.reason or self.start <= other.start or self.duration <= other.duration
  416. elif other == None:
  417. return False
  418. return NotImplemented
  419. def __eq__(self, other):
  420. if isinstance(other, _M_Murmur.Ban):
  421. return self.address == other.address and self.bits == other.bits and self.name == other.name and self.hash == other.hash and self.reason == other.reason and self.start == other.start and self.duration == other.duration
  422. elif other == None:
  423. return False
  424. return NotImplemented
  425. def __ne__(self, other):
  426. if isinstance(other, _M_Murmur.Ban):
  427. return self.address != other.address or self.bits != other.bits or self.name != other.name or self.hash != other.hash or self.reason != other.reason or self.start != other.start or self.duration != other.duration
  428. elif other == None:
  429. return True
  430. return NotImplemented
  431. def __gt__(self, other):
  432. if isinstance(other, _M_Murmur.Ban):
  433. return self.address > other.address or self.bits > other.bits or self.name > other.name or self.hash > other.hash or self.reason > other.reason or self.start > other.start or self.duration > other.duration
  434. elif other == None:
  435. return False
  436. return NotImplemented
  437. def __ge__(self, other):
  438. if isinstance(other, _M_Murmur.Ban):
  439. return self.address >= other.address or self.bits >= other.bits or self.name >= other.name or self.hash >= other.hash or self.reason >= other.reason or self.start >= other.start or self.duration >= other.duration
  440. elif other == None:
  441. return False
  442. return NotImplemented
  443. def __str__(self):
  444. return IcePy.stringify(self, _M_Murmur._t_Ban)
  445. __repr__ = __str__
  446. _M_Murmur._t_Ban = IcePy.defineStruct('::Murmur::Ban', Ban, (), (
  447. ('address', (), _M_Murmur._t_NetAddress),
  448. ('bits', (), IcePy._t_int),
  449. ('name', (), IcePy._t_string),
  450. ('hash', (), IcePy._t_string),
  451. ('reason', (), IcePy._t_string),
  452. ('start', (), IcePy._t_long),
  453. ('duration', (), IcePy._t_int)
  454. ))
  455. _M_Murmur.Ban = Ban
  456. del Ban
  457. if not _M_Murmur.__dict__.has_key('LogEntry'):
  458. _M_Murmur.LogEntry = Ice.createTempClass()
  459. class LogEntry(object):
  460. '''A entry in the log.'''
  461. def __init__(self, timestamp=0, txt=''):
  462. self.timestamp = timestamp
  463. self.txt = txt
  464. def __hash__(self):
  465. _h = 0
  466. _h = 5 * _h + __builtin__.hash(self.timestamp)
  467. _h = 5 * _h + __builtin__.hash(self.txt)
  468. return _h % 0x7fffffff
  469. def __lt__(self, other):
  470. if isinstance(other, _M_Murmur.LogEntry):
  471. return self.timestamp < other.timestamp or self.txt < other.txt
  472. elif other == None:
  473. return False
  474. return NotImplemented
  475. def __le__(self, other):
  476. if isinstance(other, _M_Murmur.LogEntry):
  477. return self.timestamp <= other.timestamp or self.txt <= other.txt
  478. elif other == None:
  479. return False
  480. return NotImplemented
  481. def __eq__(self, other):
  482. if isinstance(other, _M_Murmur.LogEntry):
  483. return self.timestamp == other.timestamp and self.txt == other.txt
  484. elif other == None:
  485. return False
  486. return NotImplemented
  487. def __ne__(self, other):
  488. if isinstance(other, _M_Murmur.LogEntry):
  489. return self.timestamp != other.timestamp or self.txt != other.txt
  490. elif other == None:
  491. return True
  492. return NotImplemented
  493. def __gt__(self, other):
  494. if isinstance(other, _M_Murmur.LogEntry):
  495. return self.timestamp > other.timestamp or self.txt > other.txt
  496. elif other == None:
  497. return False
  498. return NotImplemented
  499. def __ge__(self, other):
  500. if isinstance(other, _M_Murmur.LogEntry):
  501. return self.timestamp >= other.timestamp or self.txt >= other.txt
  502. elif other == None:
  503. return False
  504. return NotImplemented
  505. def __str__(self):
  506. return IcePy.stringify(self, _M_Murmur._t_LogEntry)
  507. __repr__ = __str__
  508. _M_Murmur._t_LogEntry = IcePy.defineStruct('::Murmur::LogEntry', LogEntry, (), (
  509. ('timestamp', (), IcePy._t_int),
  510. ('txt', (), IcePy._t_string)
  511. ))
  512. _M_Murmur.LogEntry = LogEntry
  513. del LogEntry
  514. if not _M_Murmur.__dict__.has_key('Tree'):
  515. _M_Murmur._t_Tree = IcePy.declareClass('::Murmur::Tree')
  516. _M_Murmur._t_TreePrx = IcePy.declareProxy('::Murmur::Tree')
  517. if not _M_Murmur.__dict__.has_key('_t_TreeList'):
  518. _M_Murmur._t_TreeList = IcePy.defineSequence('::Murmur::TreeList', (), _M_Murmur._t_Tree)
  519. if not _M_Murmur.__dict__.has_key('ChannelInfo'):
  520. _M_Murmur.ChannelInfo = Ice.createTempClass()
  521. class ChannelInfo(object):
  522. def __init__(self, val):
  523. assert(val >= 0 and val < 2)
  524. self.value = val
  525. def __str__(self):
  526. return self._names[self.value]
  527. __repr__ = __str__
  528. def __hash__(self):
  529. return self.value
  530. def __lt__(self, other):
  531. if isinstance(other, _M_Murmur.ChannelInfo):
  532. return self.value < other.value;
  533. elif other == None:
  534. return False
  535. return NotImplemented
  536. def __le__(self, other):
  537. if isinstance(other, _M_Murmur.ChannelInfo):
  538. return self.value <= other.value;
  539. elif other == None:
  540. return False
  541. return NotImplemented
  542. def __eq__(self, other):
  543. if isinstance(other, _M_Murmur.ChannelInfo):
  544. return self.value == other.value;
  545. elif other == None:
  546. return False
  547. return NotImplemented
  548. def __ne__(self, other):
  549. if isinstance(other, _M_Murmur.ChannelInfo):
  550. return self.value != other.value;
  551. elif other == None:
  552. return False
  553. return NotImplemented
  554. def __gt__(self, other):
  555. if isinstance(other, _M_Murmur.ChannelInfo):
  556. return self.value > other.value;
  557. elif other == None:
  558. return False
  559. return NotImplemented
  560. def __ge__(self, other):
  561. if isinstance(other, _M_Murmur.ChannelInfo):
  562. return self.value >= other.value;
  563. elif other == None:
  564. return False
  565. return NotImplemented
  566. _names = ('ChannelDescription', 'ChannelPosition')
  567. ChannelInfo.ChannelDescription = ChannelInfo(0)
  568. ChannelInfo.ChannelPosition = ChannelInfo(1)
  569. _M_Murmur._t_ChannelInfo = IcePy.defineEnum('::Murmur::ChannelInfo', ChannelInfo, (), (ChannelInfo.ChannelDescription, ChannelInfo.ChannelPosition))
  570. _M_Murmur.ChannelInfo = ChannelInfo
  571. del ChannelInfo
  572. if not _M_Murmur.__dict__.has_key('UserInfo'):
  573. _M_Murmur.UserInfo = Ice.createTempClass()
  574. class UserInfo(object):
  575. def __init__(self, val):
  576. assert(val >= 0 and val < 5)
  577. self.value = val
  578. def __str__(self):
  579. return self._names[self.value]
  580. __repr__ = __str__
  581. def __hash__(self):
  582. return self.value
  583. def __lt__(self, other):
  584. if isinstance(other, _M_Murmur.UserInfo):
  585. return self.value < other.value;
  586. elif other == None:
  587. return False
  588. return NotImplemented
  589. def __le__(self, other):
  590. if isinstance(other, _M_Murmur.UserInfo):
  591. return self.value <= other.value;
  592. elif other == None:
  593. return False
  594. return NotImplemented
  595. def __eq__(self, other):
  596. if isinstance(other, _M_Murmur.UserInfo):
  597. return self.value == other.value;
  598. elif other == None:
  599. return False
  600. return NotImplemented
  601. def __ne__(self, other):
  602. if isinstance(other, _M_Murmur.UserInfo):
  603. return self.value != other.value;
  604. elif other == None:
  605. return False
  606. return NotImplemented
  607. def __gt__(self, other):
  608. if isinstance(other, _M_Murmur.UserInfo):
  609. return self.value > other.value;
  610. elif other == None:
  611. return False
  612. return NotImplemented
  613. def __ge__(self, other):
  614. if isinstance(other, _M_Murmur.UserInfo):
  615. return self.value >= other.value;
  616. elif other == None:
  617. return False
  618. return NotImplemented
  619. _names = ('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword')
  620. UserInfo.UserName = UserInfo(0)
  621. UserInfo.UserEmail = UserInfo(1)
  622. UserInfo.UserComment = UserInfo(2)
  623. UserInfo.UserHash = UserInfo(3)
  624. UserInfo.UserPassword = UserInfo(4)
  625. _M_Murmur._t_UserInfo = IcePy.defineEnum('::Murmur::UserInfo', UserInfo, (), (UserInfo.UserName, UserInfo.UserEmail, UserInfo.UserComment, UserInfo.UserHash, UserInfo.UserPassword))
  626. _M_Murmur.UserInfo = UserInfo
  627. del UserInfo
  628. if not _M_Murmur.__dict__.has_key('_t_UserMap'):
  629. _M_Murmur._t_UserMap = IcePy.defineDictionary('::Murmur::UserMap', (), IcePy._t_int, _M_Murmur._t_User)
  630. if not _M_Murmur.__dict__.has_key('_t_ChannelMap'):
  631. _M_Murmur._t_ChannelMap = IcePy.defineDictionary('::Murmur::ChannelMap', (), IcePy._t_int, _M_Murmur._t_Channel)
  632. if not _M_Murmur.__dict__.has_key('_t_ChannelList'):
  633. _M_Murmur._t_ChannelList = IcePy.defineSequence('::Murmur::ChannelList', (), _M_Murmur._t_Channel)
  634. if not _M_Murmur.__dict__.has_key('_t_UserList'):
  635. _M_Murmur._t_UserList = IcePy.defineSequence('::Murmur::UserList', (), _M_Murmur._t_User)
  636. if not _M_Murmur.__dict__.has_key('_t_GroupList'):
  637. _M_Murmur._t_GroupList = IcePy.defineSequence('::Murmur::GroupList', (), _M_Murmur._t_Group)
  638. if not _M_Murmur.__dict__.has_key('_t_ACLList'):
  639. _M_Murmur._t_ACLList = IcePy.defineSequence('::Murmur::ACLList', (), _M_Murmur._t_ACL)
  640. if not _M_Murmur.__dict__.has_key('_t_LogList'):
  641. _M_Murmur._t_LogList = IcePy.defineSequence('::Murmur::LogList', (), _M_Murmur._t_LogEntry)
  642. if not _M_Murmur.__dict__.has_key('_t_BanList'):
  643. _M_Murmur._t_BanList = IcePy.defineSequence('::Murmur::BanList', (), _M_Murmur._t_Ban)
  644. if not _M_Murmur.__dict__.has_key('_t_IdList'):
  645. _M_Murmur._t_IdList = IcePy.defineSequence('::Murmur::IdList', (), IcePy._t_int)
  646. if not _M_Murmur.__dict__.has_key('_t_NameList'):
  647. _M_Murmur._t_NameList = IcePy.defineSequence('::Murmur::NameList', (), IcePy._t_string)
  648. if not _M_Murmur.__dict__.has_key('_t_NameMap'):
  649. _M_Murmur._t_NameMap = IcePy.defineDictionary('::Murmur::NameMap', (), IcePy._t_int, IcePy._t_string)
  650. if not _M_Murmur.__dict__.has_key('_t_IdMap'):
  651. _M_Murmur._t_IdMap = IcePy.defineDictionary('::Murmur::IdMap', (), IcePy._t_string, IcePy._t_int)
  652. if not _M_Murmur.__dict__.has_key('_t_Texture'):
  653. _M_Murmur._t_Texture = IcePy.defineSequence('::Murmur::Texture', (), IcePy._t_byte)
  654. if not _M_Murmur.__dict__.has_key('_t_ConfigMap'):
  655. _M_Murmur._t_ConfigMap = IcePy.defineDictionary('::Murmur::ConfigMap', (), IcePy._t_string, IcePy._t_string)
  656. if not _M_Murmur.__dict__.has_key('_t_GroupNameList'):
  657. _M_Murmur._t_GroupNameList = IcePy.defineSequence('::Murmur::GroupNameList', (), IcePy._t_string)
  658. if not _M_Murmur.__dict__.has_key('_t_CertificateDer'):
  659. _M_Murmur._t_CertificateDer = IcePy.defineSequence('::Murmur::CertificateDer', (), IcePy._t_byte)
  660. if not _M_Murmur.__dict__.has_key('_t_CertificateList'):
  661. _M_Murmur._t_CertificateList = IcePy.defineSequence('::Murmur::CertificateList', (), _M_Murmur._t_CertificateDer)
  662. if not _M_Murmur.__dict__.has_key('_t_UserInfoMap'):
  663. _M_Murmur._t_UserInfoMap = IcePy.defineDictionary('::Murmur::UserInfoMap', (), _M_Murmur._t_UserInfo, IcePy._t_string)
  664. if not _M_Murmur.__dict__.has_key('Tree'):
  665. _M_Murmur.Tree = Ice.createTempClass()
  666. class Tree(Ice.Object):
  667. '''User and subchannel state. Read-only.'''
  668. def __init__(self, c=Ice._struct_marker, children=None, users=None):
  669. if c is Ice._struct_marker:
  670. self.c = _M_Murmur.Channel()
  671. else:
  672. self.c = c
  673. self.children = children
  674. self.users = users
  675. def ice_ids(self, current=None):
  676. return ('::Ice::Object', '::Murmur::Tree')
  677. def ice_id(self, current=None):
  678. return '::Murmur::Tree'
  679. def ice_staticId():
  680. return '::Murmur::Tree'
  681. ice_staticId = staticmethod(ice_staticId)
  682. def __str__(self):
  683. return IcePy.stringify(self, _M_Murmur._t_Tree)
  684. __repr__ = __str__
  685. _M_Murmur.TreePrx = Ice.createTempClass()
  686. class TreePrx(Ice.ObjectPrx):
  687. def checkedCast(proxy, facetOrCtx=None, _ctx=None):
  688. return _M_Murmur.TreePrx.ice_checkedCast(proxy, '::Murmur::Tree', facetOrCtx, _ctx)
  689. checkedCast = staticmethod(checkedCast)
  690. def uncheckedCast(proxy, facet=None):
  691. return _M_Murmur.TreePrx.ice_uncheckedCast(proxy, facet)
  692. uncheckedCast = staticmethod(uncheckedCast)
  693. _M_Murmur._t_TreePrx = IcePy.defineProxy('::Murmur::Tree', TreePrx)
  694. _M_Murmur._t_Tree = IcePy.defineClass('::Murmur::Tree', Tree, (), False, None, (), (
  695. ('c', (), _M_Murmur._t_Channel),
  696. ('children', (), _M_Murmur._t_TreeList),
  697. ('users', (), _M_Murmur._t_UserList)
  698. ))
  699. Tree._ice_type = _M_Murmur._t_Tree
  700. _M_Murmur.Tree = Tree
  701. del Tree
  702. _M_Murmur.TreePrx = TreePrx
  703. del TreePrx
  704. if not _M_Murmur.__dict__.has_key('MurmurException'):
  705. _M_Murmur.MurmurException = Ice.createTempClass()
  706. class MurmurException(Ice.UserException):
  707. def __init__(self):
  708. pass
  709. def __str__(self):
  710. return IcePy.stringifyException(self)
  711. __repr__ = __str__
  712. _ice_name = 'Murmur::MurmurException'
  713. _M_Murmur._t_MurmurException = IcePy.defineException('::Murmur::MurmurException', MurmurException, (), None, ())
  714. MurmurException._ice_type = _M_Murmur._t_MurmurException
  715. _M_Murmur.MurmurException = MurmurException
  716. del MurmurException
  717. if not _M_Murmur.__dict__.has_key('InvalidSessionException'):
  718. _M_Murmur.InvalidSessionException = Ice.createTempClass()
  719. class InvalidSessionException(_M_Murmur.MurmurException):
  720. '''This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to [Server::getUsers]. See [User::session]'''
  721. def __init__(self):
  722. _M_Murmur.MurmurException.__init__(self)
  723. def __str__(self):
  724. return IcePy.stringifyException(self)
  725. __repr__ = __str__
  726. _ice_name = 'Murmur::InvalidSessionException'
  727. _M_Murmur._t_InvalidSessionException = IcePy.defineException('::Murmur::InvalidSessionException', InvalidSessionException, (), _M_Murmur._t_MurmurException, ())
  728. InvalidSessionException._ice_type = _M_Murmur._t_InvalidSessionException
  729. _M_Murmur.InvalidSessionException = InvalidSessionException
  730. del InvalidSessionException
  731. if not _M_Murmur.__dict__.has_key('InvalidChannelException'):
  732. _M_Murmur.InvalidChannelException = Ice.createTempClass()
  733. class InvalidChannelException(_M_Murmur.MurmurException):
  734. '''This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel.'''
  735. def __init__(self):
  736. _M_Murmur.MurmurException.__init__(self)
  737. def __str__(self):
  738. return IcePy.stringifyException(self)
  739. __repr__ = __str__
  740. _ice_name = 'Murmur::InvalidChannelException'
  741. _M_Murmur._t_InvalidChannelException = IcePy.defineException('::Murmur::InvalidChannelException', InvalidChannelException, (), _M_Murmur._t_MurmurException, ())
  742. InvalidChannelException._ice_type = _M_Murmur._t_InvalidChannelException
  743. _M_Murmur.InvalidChannelException = InvalidChannelException
  744. del InvalidChannelException
  745. if not _M_Murmur.__dict__.has_key('InvalidServerException'):
  746. _M_Murmur.InvalidServerException = Ice.createTempClass()
  747. class InvalidServerException(_M_Murmur.MurmurException):
  748. '''This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server.'''
  749. def __init__(self):
  750. _M_Murmur.MurmurException.__init__(self)
  751. def __str__(self):
  752. return IcePy.stringifyException(self)
  753. __repr__ = __str__
  754. _ice_name = 'Murmur::InvalidServerException'
  755. _M_Murmur._t_InvalidServerException = IcePy.defineException('::Murmur::InvalidServerException', InvalidServerException, (), _M_Murmur._t_MurmurException, ())
  756. InvalidServerException._ice_type = _M_Murmur._t_InvalidServerException
  757. _M_Murmur.InvalidServerException = InvalidServerException
  758. del InvalidServerException
  759. if not _M_Murmur.__dict__.has_key('ServerBootedException'):
  760. _M_Murmur.ServerBootedException = Ice.createTempClass()
  761. class ServerBootedException(_M_Murmur.MurmurException):
  762. '''This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server.'''
  763. def __init__(self):
  764. _M_Murmur.MurmurException.__init__(self)
  765. def __str__(self):
  766. return IcePy.stringifyException(self)
  767. __repr__ = __str__
  768. _ice_name = 'Murmur::ServerBootedException'
  769. _M_Murmur._t_ServerBootedException = IcePy.defineException('::Murmur::ServerBootedException', ServerBootedException, (), _M_Murmur._t_MurmurException, ())
  770. ServerBootedException._ice_type = _M_Murmur._t_ServerBootedException
  771. _M_Murmur.ServerBootedException = ServerBootedException
  772. del ServerBootedException
  773. if not _M_Murmur.__dict__.has_key('ServerFailureException'):
  774. _M_Murmur.ServerFailureException = Ice.createTempClass()
  775. class ServerFailureException(_M_Murmur.MurmurException):
  776. '''This is thrown if [Server::start] fails, and should generally be the cause for some concern.'''
  777. def __init__(self):
  778. _M_Murmur.MurmurException.__init__(self)
  779. def __str__(self):
  780. return IcePy.stringifyException(self)
  781. __repr__ = __str__
  782. _ice_name = 'Murmur::ServerFailureException'
  783. _M_Murmur._t_ServerFailureException = IcePy.defineException('::Murmur::ServerFailureException', ServerFailureException, (), _M_Murmur._t_MurmurException, ())
  784. ServerFailureException._ice_type = _M_Murmur._t_ServerFailureException
  785. _M_Murmur.ServerFailureException = ServerFailureException
  786. del ServerFailureException
  787. if not _M_Murmur.__dict__.has_key('InvalidUserException'):
  788. _M_Murmur.InvalidUserException = Ice.createTempClass()
  789. class InvalidUserException(_M_Murmur.MurmurException):
  790. '''This is thrown when you specify an invalid userid.'''
  791. def __init__(self):
  792. _M_Murmur.MurmurException.__init__(self)
  793. def __str__(self):
  794. return IcePy.stringifyException(self)
  795. __repr__ = __str__
  796. _ice_name = 'Murmur::InvalidUserException'
  797. _M_Murmur._t_InvalidUserException = IcePy.defineException('::Murmur::InvalidUserException', InvalidUserException, (), _M_Murmur._t_MurmurException, ())
  798. InvalidUserException._ice_type = _M_Murmur._t_InvalidUserException
  799. _M_Murmur.InvalidUserException = InvalidUserException
  800. del InvalidUserException
  801. if not _M_Murmur.__dict__.has_key('InvalidTextureException'):
  802. _M_Murmur.InvalidTextureException = Ice.createTempClass()
  803. class InvalidTextureException(_M_Murmur.MurmurException):
  804. '''This is thrown when you try to set an invalid texture.'''
  805. def __init__(self):
  806. _M_Murmur.MurmurException.__init__(self)
  807. def __str__(self):
  808. return IcePy.stringifyException(self)
  809. __repr__ = __str__
  810. _ice_name = 'Murmur::InvalidTextureException'
  811. _M_Murmur._t_InvalidTextureException = IcePy.defineException('::Murmur::InvalidTextureException', InvalidTextureException, (), _M_Murmur._t_MurmurException, ())
  812. InvalidTextureException._ice_type = _M_Murmur._t_InvalidTextureException
  813. _M_Murmur.InvalidTextureException = InvalidTextureException
  814. del InvalidTextureException
  815. if not _M_Murmur.__dict__.has_key('InvalidCallbackException'):
  816. _M_Murmur.InvalidCallbackException = Ice.createTempClass()
  817. class InvalidCallbackException(_M_Murmur.MurmurException):
  818. '''This is thrown when you supply an invalid callback.'''
  819. def __init__(self):
  820. _M_Murmur.MurmurException.__init__(self)
  821. def __str__(self):
  822. return IcePy.stringifyException(self)
  823. __repr__ = __str__
  824. _ice_name = 'Murmur::InvalidCallbackException'
  825. _M_Murmur._t_InvalidCallbackException = IcePy.defineException('::Murmur::InvalidCallbackException', InvalidCallbackException, (), _M_Murmur._t_MurmurException, ())
  826. InvalidCallbackException._ice_type = _M_Murmur._t_InvalidCallbackException
  827. _M_Murmur.InvalidCallbackException = InvalidCallbackException
  828. del InvalidCallbackException
  829. if not _M_Murmur.__dict__.has_key('InvalidSecretException'):
  830. _M_Murmur.InvalidSecretException = Ice.createTempClass()
  831. class InvalidSecretException(_M_Murmur.MurmurException):
  832. '''This is thrown when you supply the wrong secret in the calling context.'''
  833. def __init__(self):
  834. _M_Murmur.MurmurException.__init__(self)
  835. def __str__(self):
  836. return IcePy.stringifyException(self)
  837. __repr__ = __str__
  838. _ice_name = 'Murmur::InvalidSecretException'
  839. _M_Murmur._t_InvalidSecretException = IcePy.defineException('::Murmur::InvalidSecretException', InvalidSecretException, (), _M_Murmur._t_MurmurException, ())
  840. InvalidSecretException._ice_type = _M_Murmur._t_InvalidSecretException
  841. _M_Murmur.InvalidSecretException = InvalidSecretException
  842. del InvalidSecretException
  843. if not _M_Murmur.__dict__.has_key('ServerCallback'):
  844. _M_Murmur.ServerCallback = Ice.createTempClass()
  845. class ServerCallback(Ice.Object):
  846. '''Callback interface for servers. You can supply an implementation of this to receive notification
  847. messages from the server.
  848. If an added callback ever throws an exception or goes away, it will be automatically removed.
  849. Please note that all callbacks are done asynchronously; murmur does not wait for the callback to
  850. complete before continuing processing.
  851. Note that callbacks are removed when a server is stopped, so you should have a callback for
  852. [MetaCallback::started] which calls [Server::addCallback].'''
  853. def __init__(self):
  854. if __builtin__.type(self) == _M_Murmur.ServerCallback:
  855. raise RuntimeError('Murmur.ServerCallback is an abstract class')
  856. def ice_ids(self, current=None):
  857. return ('::Ice::Object', '::Murmur::ServerCallback')
  858. def ice_id(self, current=None):
  859. return '::Murmur::ServerCallback'
  860. def ice_staticId():
  861. return '::Murmur::ServerCallback'
  862. ice_staticId = staticmethod(ice_staticId)
  863. def userConnected(self, state, current=None):
  864. '''Called when a user connects to the server.
  865. Arguments:
  866. state State of connected user.'''
  867. pass
  868. def userDisconnected(self, state, current=None):
  869. '''Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like [Server::getState]
  870. to retrieve the user's state.
  871. Arguments:
  872. state State of disconnected user.'''
  873. pass
  874. def userStateChanged(self, state, current=None):
  875. '''Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc.
  876. Arguments:
  877. state New state of user.'''
  878. pass
  879. def channelCreated(self, state, current=None):
  880. '''Called when a new channel is created.
  881. Arguments:
  882. state State of new channel.'''
  883. pass
  884. def channelRemoved(self, state, current=None):
  885. '''Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState]
  886. Arguments:
  887. state State of removed channel.'''
  888. pass
  889. def channelStateChanged(self, state, current=None):
  890. '''Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added.
  891. Arguments:
  892. state New state of channel.'''
  893. pass
  894. def __str__(self):
  895. return IcePy.stringify(self, _M_Murmur._t_ServerCallback)
  896. __repr…

Large files files are truncated, but you can click here to view the full file