Package Skype4Py :: Module callchannel :: Class CallChannelManager
[frames] | no frames]

Class CallChannelManager

source code

             object --+    
                      |    
utils.EventHandlingBase --+
                          |
                         CallChannelManager

Instantiate this class to create a call channel manager. A call channel manager will automatically create a data channel (based on the APP2APP protocol) for voice calls.

Usage

You should access this class using the alias at the package level:

import Skype4Py

skype = Skype4Py.Skype()

ccm = Skype4Py.CallChannelManager()
ccm.Connect(skype)

Read the constructor (CallChannelManager.__init__) documentation for a list of accepted arguments.

Events

This class provides events.

The events names and their arguments lists can be found in the CallChannelManagerEvents class in this module.

The use of events is explained in EventHandlingBase class which is a superclass of this class.

Instance Methods
 
__del__(self) source code
 
__init__(self, Events=None, Skype=None)
Initializes the object.
source code
 
Connect(self, Skype)
Connects this call channel manager instance to Skype.
source code
 
CreateApplication(self, ApplicationName=None)
Creates an APP2APP application context.
source code
 
Disconnect(self)
Disconnects from the Skype instance.
source code

Inherited from utils.EventHandlingBase: RegisterEventHandler, UnregisterEventHandler

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

Properties
tuple of CallChannel Channels
All call data channels.
enums.cct* ChannelType
Queries/sets the default channel type.
bool Created
Returns True if the application context has been created.
unicode Name
Queries/sets the application context name.
  OnChannels
  OnCreated
  OnMessage

Inherited from object: __class__

Method Details

__init__(self, Events=None, Skype=None)
(Constructor)

source code 
Initializes the object.
Parameters:
  • Events - An optional object with event handlers. See EventHandlingBase for more information on events.
Overrides: object.__init__

Connect(self, Skype)

source code 
Connects this call channel manager instance to Skype. This is the first thing you should do after creating this object.
Parameters:
  • Skype (Skype) - The Skype object.

See Also: Disconnect

CreateApplication(self, ApplicationName=None)

source code 
Creates an APP2APP application context. The application is automatically created using application.Application.Create method.
Parameters:
  • ApplicationName (unicode) - Application name. Initial name, when the manager is created, is u'CallChannelManager'.

Disconnect(self)

source code 
Disconnects from the Skype instance.

See Also: Connect


Property Details

Channels

All call data channels.
Get Method:
_GetChannels(self)
Type:
tuple of CallChannel

ChannelType

Queries/sets the default channel type.
Get Method:
_GetChannelType(self)
Set Method:
_SetChannelType(self, Value)
Type:
enums.cct*

Created

Returns True if the application context has been created.
Get Method:
_GetCreated(self)
Type:
bool

Name

Queries/sets the application context name.
Get Method:
_GetName(self)
Set Method:
_SetName(self, Value)
Type:
unicode

OnChannels

Get Method:
unreachable(self)
Set Method:
unreachable(self, Value)

OnCreated

Get Method:
unreachable(self)
Set Method:
unreachable(self, Value)

OnMessage

Get Method:
unreachable(self)
Set Method:
unreachable(self, Value)