Package Skype4Py :: Module application :: Class Application
[frames] | no frames]

Class Application

source code

  object --+    
           |    
utils.Cached --+
               |
              Application

Represents an application in APP2APP protocol. Use skype.Skype.Application to instantiate.
Instance Methods
 
__repr__(self)
repr(x)
source code
ApplicationStream or None
Connect(self, Username, WaitConnected=False)
Connects application to user.
source code
 
Create(self)
Creates the APP2APP application in Skype client.
source code
 
Delete(self)
Deletes the APP2APP application in Skype client.
source code
 
SendDatagram(self, Text, Streams=None)
Sends datagram to application streams.
source code

Inherited from utils.Cached: __copy__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from utils.Cached: __new__

Properties
UserCollection ConnectableUsers
All connectible users.
UserCollection ConnectingUsers
All users connecting at the moment.
unicode Name
Name of the application.
ApplicationStreamCollection ReceivedStreams
All streams that received data and can be read.
ApplicationStreamCollection SendingStreams
All streams that send data and at the moment.
ApplicationStreamCollection Streams
All currently connected application streams.

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Connect(self, Username, WaitConnected=False)

source code 
Connects application to user.
Parameters:
  • Username (str) - Name of the user to connect to.
  • WaitConnected (bool) - If True, causes the method to wait until the connection is established.
Returns: ApplicationStream or None
If WaitConnected is True, returns the stream which can be used to send the data. Otherwise returns None.

SendDatagram(self, Text, Streams=None)

source code 
Sends datagram to application streams.
Parameters:
  • Text (unicode) - Text to send.
  • Streams (sequence of ApplicationStream) - Streams to send the datagram to or None if all currently connected streams should be used.

Property Details

ConnectableUsers

All connectible users.
Get Method:
_GetConnectableUsers(self)
Type:
UserCollection

ConnectingUsers

All users connecting at the moment.
Get Method:
_GetConnectingUsers(self)
Type:
UserCollection

Name

Name of the application.
Get Method:
_GetName(self)
Type:
unicode

ReceivedStreams

All streams that received data and can be read.
Get Method:
_GetReceivedStreams(self)
Type:
ApplicationStreamCollection

SendingStreams

All streams that send data and at the moment.
Get Method:
_GetSendingStreams(self)
Type:
ApplicationStreamCollection

Streams

All currently connected application streams.
Get Method:
_GetStreams(self)
Type:
ApplicationStreamCollection