Initial documentation of presence service overview.
Fix weird indent in server_plugin module
This commit is contained in:
parent
76e375749a
commit
79d17c14f4
@ -0,0 +1,36 @@
|
|||||||
|
"""Service to track buddies and activities on the network
|
||||||
|
|
||||||
|
Model objects:
|
||||||
|
|
||||||
|
activity.Activity -- tracks a (shared/shareable) activity
|
||||||
|
with many properties and observable events
|
||||||
|
|
||||||
|
buddy.Buddy -- tracks a reference to a particular actor
|
||||||
|
on the network
|
||||||
|
|
||||||
|
buddy.GenericOwner -- actor who owns a particular
|
||||||
|
activity on the network
|
||||||
|
|
||||||
|
buddy.ShellOwner -- actor who owns the local machine
|
||||||
|
connects to the owner module (on the server)
|
||||||
|
|
||||||
|
Controller objects:
|
||||||
|
|
||||||
|
presenceservice.PresenceService -- controller which connects
|
||||||
|
a networking plugin to a DBUS service. Generates events
|
||||||
|
for networking events, forwards updates/requests to the
|
||||||
|
server plugin.
|
||||||
|
|
||||||
|
server_plugin.ServerPlugin -- implementation of networking
|
||||||
|
plugin using telepathy Python (Jabber) to provide the
|
||||||
|
underlying communications layer. Generates GObject
|
||||||
|
events that the PresenceService observes to forward onto
|
||||||
|
the DBUS clients.
|
||||||
|
|
||||||
|
Utility machinery:
|
||||||
|
|
||||||
|
buddyiconcache.BuddyIconCache -- caches buddy icons on disk
|
||||||
|
based on the "jid" XXX Jabber ID? of the buddy.
|
||||||
|
|
||||||
|
psutils -- trivial function to decode int-list to characters
|
||||||
|
"""
|
@ -548,7 +548,7 @@ class ServerPlugin(gobject.GObject):
|
|||||||
# are handled locally
|
# are handled locally
|
||||||
return
|
return
|
||||||
if self._online_contacts.has_key(handle) and self._online_contacts[handle]:
|
if self._online_contacts.has_key(handle) and self._online_contacts[handle]:
|
||||||
self.emit("buddy-properties-changed", handle, properties)
|
self.emit("buddy-properties-changed", handle, properties)
|
||||||
|
|
||||||
def _buddy_activities_changed_cb(self, handle, activities):
|
def _buddy_activities_changed_cb(self, handle, activities):
|
||||||
if handle == self._conn[CONN_INTERFACE].GetSelfHandle():
|
if handle == self._conn[CONN_INTERFACE].GetSelfHandle():
|
||||||
|
Loading…
Reference in New Issue
Block a user