SF.net SVN: fclient: [140] trunk/sandbox/fcp/fcp2_0_events.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <ju...@us...> - 2008-02-04 11:55:31
|
Revision: 140 http://fclient.svn.sourceforge.net/fclient/?rev=140&view=rev Author: jurner Date: 2008-02-04 03:55:35 -0800 (Mon, 04 Feb 2008) Log Message: ----------- separated events Added Paths: ----------- trunk/sandbox/fcp/fcp2_0_events.py Added: trunk/sandbox/fcp/fcp2_0_events.py =================================================================== --- trunk/sandbox/fcp/fcp2_0_events.py (rev 0) +++ trunk/sandbox/fcp/fcp2_0_events.py 2008-02-04 11:55:35 UTC (rev 140) @@ -0,0 +1,93 @@ +"""Fcp events + +""" + + +from fcp_lib import events +import fcp2_0_consts as consts +#******************************************************************************* +# +#******************************************************************************* +class Events(events.Events): + """All events the client may trigger""" + + class ConfigData(events.Event): + """Config data has arrived as requested or some value of the config has changed""" + + class ClientConnected(events.Event): + """The client is now connected to the node""" + + class ClientDisconnected(events.Event): + """The client has disconnected from the node""" + + class EndListPeers(events.Event): + """""" + + class Idle(events.Event): + """Client is idele currently""" + + class KeypairGenerated(events.Event): + """A public / private keypair has been generated""" + + + class NodeData(events.Event): + """Node data has arrived as requested or some value of the node has changed""" + + class Peer(events.Event): + """Information about a peer has arrived as requested or some value of a peer has changed + """ + + class PeerRemoved(events.Event): + """A peer has been removed""" + + class EndListPeerNotes(events.Event): + """Listing of peer notes is done""" + + class PeerNote(events.Event): + """A peer note has arrived""" + + class PeerUnknown(events.Event): + """Unknown peer""" + + class PluginInfo(events.Event): + """Plugin info has arrived""" + + class PluginInfoFailed(events.Event): + """Request for plugin info failed""" + + class PluginMessage(events.Event): + """A message from a plugin has arrived""" + + class PluginMessageFailed(events.Event): + """Sending of a plugin message failed""" + + #TODO: not used currently + class ProtocolError(events.Event): + """A protocol error was encountered""" + + class RequestCompleted(events.Event): + """A request has been completed""" + + class RequestFailed(events.Event): + """A request failed""" + + class RequestFetchable(events.Event): + """An upload is fetchable""" + + class RequestModified(events.Event): + """A request has been modified""" + + class RequestProgress(events.Event): + """A request has made some progress""" + + class RequestRestored(events.Event): + """A request has been restored""" + + class RequestStarted(events.Event): + """A request has been started""" + + class USKUpdated(events.Event): + """An update of an Usk has arrived""" + + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |