⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skype4py.callchannel-pysrc.html

📁 基于python的skype的API的说明文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt class="py-docstring">         You should access this class using the alias at the package level::</tt> </tt><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-docstring">             import Skype4Py</tt> </tt><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt class="py-docstring">             skype = Skype4Py.Skype()</tt> </tt><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-docstring">             ccm = Skype4Py.CallChannelManager()</tt> </tt><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-docstring">             ccm.Connect(skype)</tt> </tt><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">         For possible constructor arguments, read the L{ICallChannelManager.__init__} description.</tt> </tt><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt class="py-docstring">      2. Events.</tt> </tt><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"><tt class="py-docstring">         This class provides events.</tt> </tt><a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"><tt class="py-docstring">         The events names and their arguments lists can be found in L{ICallChannelManagerEvents} class.</tt> </tt><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-docstring">         The usage of events is described in L{EventHandlingBase} class which is a superclass of</tt> </tt><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">         this class. Follow the link for more information.</tt> </tt><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">    @ivar OnChannels: Event handler for L{ICallChannelManagerEvents.Channels} event. See L{EventHandlingBase} for more information on events.</tt> </tt><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">    @type OnChannels: callable</tt> </tt><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt class="py-docstring">    @ivar OnMessage: Event handler for L{ICallChannelManagerEvents.Message} event. See L{EventHandlingBase} for more information on events.</tt> </tt><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-docstring">    @type OnMessage: callable</tt> </tt><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-docstring">    @ivar OnCreated: Event handler for L{ICallChannelManagerEvents.Created} event. See L{EventHandlingBase} for more information on events.</tt> </tt><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt class="py-docstring">    @type OnCreated: callable</tt> </tt><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt><a name="ICallChannelManager.__del__"></a><div id="ICallChannelManager.__del__-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="ICallChannelManager.__del__-toggle" onclick="return toggle('ICallChannelManager.__del__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannelManager-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannelManager.__del__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ICallChannelManager.__del__-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Application</tt><tt class="py-op">:</tt> </tt><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Application</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method Skype4Py.application.IApplication.Delete()=Skype4Py.application.IApplication-class.html#Delete,Method Skype4Py.client.IPluginEvent.Delete()=Skype4Py.client.IPluginEvent-class.html#Delete,Method Skype4Py.client.IPluginMenuItem.Delete()=Skype4Py.client.IPluginMenuItem-class.html#Delete,Method Skype4Py.sms.ISmsMessage.Delete()=Skype4Py.sms.ISmsMessage-class.html#Delete,Method Skype4Py.voicemail.IVoicemail.Delete()=Skype4Py.voicemail.IVoicemail-class.html#Delete"><a title="Skype4Py.application.IApplication.DeleteSkype4Py.client.IPluginEvent.DeleteSkype4Py.client.IPluginMenuItem.DeleteSkype4Py.sms.ISmsMessage.DeleteSkype4Py.voicemail.IVoicemail.Delete" class="py-name" href="#" onclick="return doclink('link-27', 'Delete', 'link-27');">Delete</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Application</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Skype</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Method Skype4Py.utils.EventHandlingBase.UnregisterEventHandler()=Skype4Py.utils.EventHandlingBase-class.html#UnregisterEventHandler"><a title="Skype4Py.utils.EventHandlingBase.UnregisterEventHandler" class="py-name" href="#" onclick="return doclink('link-28', 'UnregisterEventHandler', 'link-28');">UnregisterEventHandler</a></tt><tt class="py-op">(</tt><tt class="py-string">'ApplicationStreams'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_OnApplicationStreams</tt><tt class="py-op">)</tt> </tt><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Skype</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="Skype4Py.utils.EventHandlingBase.UnregisterEventHandler" class="py-name" href="#" onclick="return doclink('link-29', 'UnregisterEventHandler', 'link-28');">UnregisterEventHandler</a></tt><tt class="py-op">(</tt><tt class="py-string">'ApplicationReceiving'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_OnApplicationReceiving</tt><tt class="py-op">)</tt> </tt><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_Skype</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="Skype4Py.utils.EventHandlingBase.UnregisterEventHandler" class="py-name" href="#" onclick="return doclink('link-30', 'UnregisterEventHandler', 'link-28');">UnregisterEventHandler</a></tt><tt class="py-op">(</tt><tt class="py-string">'ApplicationDatagram'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_OnApplicationDatagram</tt><tt class="py-op">)</tt> </tt></div><a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"> </tt><a name="ICallChannelManager.__init__"></a><div id="ICallChannelManager.__init__-def"><a name="L128"></a><tt class="py-lineno">128</tt> <a class="py-toggle" href="#" id="ICallChannelManager.__init__-toggle" onclick="return toggle('ICallChannelManager.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Skype4Py.callchannel.ICallChannelManager-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">Events</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt></div><div id="ICallChannelManager.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ICallChannelManager.__init__-expanded"><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-docstring">'''__init__.</tt> </tt><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">        @param Events: Events</tt> </tt><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        @type Events: An optional object with event handlers. See L{EventHandlingBase} for more information on events.</tt> </tt><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt id="link-31" class="py-name" targets="Class Skype4Py.utils.EventHandlingBase=Skype4Py.utils.EventHandlingBase-class.html"><a title="Skype4Py.utils.EventHandlingBase" class="py-name" href="#" onclick="return doclink('link-31', 'EventHandlingBase', 'link-31');">EventHandlingBase</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Method Skype4Py.API.ICommand.__init__()=Skype4Py.API.ICommand-class.html#__init__,Method Skype4Py.API.darwin.CFDictionary.__init__()=Skype4Py.API.darwin.CFDictionary-class.html#__init__,Method Skype4Py.API.darwin.CFDistributedNotificationCenter.__init__()=Skype4Py.API.darwin.CFDistributedNotificationCenter-class.html#__init__,Method Skype4Py.API.darwin.CFNumber.__init__()=Skype4Py.API.darwin.CFNumber-class.html#__init__,Method Skype4Py.API.darwin.CFString.__init__()=Skype4Py.API.darwin.CFString-class.html#__init__,Method Skype4Py.API.darwin.CFType.__init__()=Skype4Py.API.darwin.CFType-class.html#__init__,Method Skype4Py.API.darwin.Carbon.__init__()=Skype4Py.API.darwin.Carbon-class.html#__init__,Method Skype4Py.API.darwin.CoreFoundation.__init__()=Skype4Py.API.darwin.CoreFoundation-class.html#__init__,Method Skype4Py.API.darwin.EventLoop.__init__()=Skype4Py.API.darwin.EventLoop-class.html#__init__,Method Skype4Py.callchannel.ICallChannel.__init__()=Skype4Py.callchannel.ICallChannel-class.html#__init__,Method Skype4Py.callchannel.ICallChannelManager.__init__()=Skype4Py.callchannel.ICallChannelManager-class.html#__init__,Method Skype4Py.callchannel.ICallChannelMessage.__init__()=Skype4Py.callchannel.ICallChannelMessage-class.html#__init__,Method Skype4Py.client.IClient.__init__()=Skype4Py.client.IClient-class.html#__init__,Method Skype4Py.conversion.IConversion.__init__()=Skype4Py.conversion.IConversion-class.html#__init__,Method Skype4Py.errors.ISkypeAPIError.__init__()=Skype4Py.errors.ISkypeAPIError-class.html#__init__,Method Skype4Py.errors.ISkypeError.__init__()=Skype4Py.errors.ISkypeError-class.html#__init__,Method Skype4Py.profile.IProfile.__init__()=Skype4Py.profile.IProfile-class.html#__init__,Method Skype4Py.settings.ISettings.__init__()=Skype4Py.settings.ISettings-class.html#__init__,Method Skype4Py.skype.ISkype.__init__()=Skype4Py.skype.ISkype-class.html#__init__,Method Skype4Py.utils.EventHandlingBase.__init__()=Skype4Py.utils.EventHandlingBase-class.html#__init__"><a title="Skype4Py.API.ICommand.__init__Skype4Py.API.darwin.CFDictionary.__init__Skype4Py.API.darwin.CFDistributedNotificationCenter.__init__Skype4Py.API.darwin.CFNumber.__init__Skype4Py.API.darwin.CFString.__init__Skype4Py.API.darwin.CFType.__init__Skype4Py.API.darwin.Carbon.__init__Skype4Py.API.darwin.CoreFoundation.__init__Skype4Py.API.darwin.EventLoop.__init__Skype4Py.callchannel.ICallChannel.__init__Skype4Py.callchannel.ICallChannelManager.__init__Skype4Py.callchannel.ICallChannelMessage.__init__Skype4Py.client.IClient.__init__Skype4Py.conversion.IConversion.__init__Skype4Py.errors.ISkypeAPIError.__init__Skype4Py.errors.ISkypeError.__init__Skype4Py.profile.IProfile.__init__Skype4Py.settings.ISettings.__init__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -