• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# SkypeKit.SktSkype类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SkypeKit.SktSkype的典型用法代码示例。如果您正苦于以下问题:C# SktSkype类的具体用法?C# SktSkype怎么用?C# SktSkype使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SktSkype类属于SkypeKit命名空间,在下文中一共展示了SktSkype类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, false, false, 8963);

            skype.NewConversation   = (oid, skp) => { return new Conversation(oid, skp); };
            skype.NewMessage        = (oid, skp) => { return new Message(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnSkypeMessage += OnSkypeMessage;
            skype.events.OnSkypeConversationListChange += OnSkypeConversationListChange;

            skype.events.OnParticipantTextStatus += OnParticipantTextStatus;

            conversationListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            conversationListBox.MouseDoubleClick += conversationListBox_MouseDoubleClick;

            this.FormClosing += Form1_FormClosing;

            this.AcceptButton = sendButton;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:34,代码来源:Chat.cs


示例2: NewContacts

        public NewContacts()
        {
            InitializeComponent();
            feedbackLabel.Text = "";

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.NewContact = (oid, skp) => { return new MyContact(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnContactGroupChange += OnContactGroupChange;

            skype.events.OnContactSearchContactSearchStatus += OnContactSearchContactSearchStatus;
            skype.events.OnContactSearchNewResult += OnContactSearchNewResult;

            // Adding enter key to execute search for all the input lines
            skypeNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);
            fullNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);
            emailTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);

            this.FormClosing += Form1_FormClosing;
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "");

            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:33,代码来源:NewContacts.cs


示例3: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, false, false, 8963);

            // Registration of our MyConversation class
            skype.NewConversation = (oid, skp) => { return new MyConversation(oid, skp); };

            // skype callbacks
            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            // other necessary callbacks
            conversationListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            this.FormClosing += Form1_FormClosing;

            // this will cause OnConnect to fire, some time later..
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "-d timezone");
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:29,代码来源:Conversations.cs


示例4: Form1

        public Form1()
        {
            InitializeComponent();
            LoadIcons();
            videoDeviceSelector.Enabled = false;

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            // Note that MakeVideoRendererControl uses our skype field.
            // Thus it needs come after constructing skype.
            MakeVideoRendererControl();

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnSkypeAvailableVideoDeviceListChange += OnSkypeAvailableVideoDeviceListChange;

            this.FormClosing += Form1_FormClosing;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:28,代码来源:VideoPreview.cs


示例5: Form1

        public Form1()
        {
            InitializeComponent();
            LoadImages();
            UiToWaitingMode();
            this.AcceptButton = sendButton;

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, true, false, 8963);

            skype.NewVideo = (oid, skp) => { return new Video(oid, skp); };
            skype.NewParticipant = (oid, skp) => { return new Participant(oid, skp); };
            skype.NewConversation = (oid, skp) => { return new Conversation(oid, skp); };
            skype.NewMessage = (oid, skp) => { return new Message(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnParticipantSoundLevel += OnParticipantSoundLevel;
            skype.events.OnParticipantVoiceStatus += OnParticipantVoiceStatus;
            skype.events.OnSkypeMessage += OnSkypeMessage;
            skype.events.OnConversationLocalLivestatus += OnConversationLocalLiveStatus;
            skype.events.OnConversationSpawnConference += OnConversationSpawnConference;
            skype.events.OnSkypeConversationListChange += OnSkypeConversationListChange;
            skype.events.OnSkypeAvailableDeviceListChange += OnSkypeAvailableDeviceListChange;
            skype.events.OnSkypeAvailableVideoDeviceListChange += OnSkypeAvailableVideoDeviceListChange;
            skype.events.OnParticipantVideoStatus += OnParticipantVideoStatus;
            skype.events.OnVideoStatus += OnVideoStatus;

            convListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            this.FormClosing += Form1_FormClosing;
            sendButton.Click += sendButton_Click;
            callButton.Click += callButton_Click;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();

            convUpdateTimer = new System.Windows.Forms.Timer();
            convUpdateTimer.Interval = 300;
            convUpdateTimer.Tick += OnDelayedUpdate;

            //tutorials_common.tutorials.ShowLogWindow(this, skype);
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:48,代码来源:VideoCalls.cs


示例6: PublicChatBlobs

        public PublicChatBlobs()
        {
            InitializeComponent();
            feedbackLabel.Text = "";

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            this.FormClosing += Form1_FormClosing;
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "");

            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:22,代码来源:PublicChatBlobs.cs


示例7: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, true, true, 8963);
            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            this.FormClosing += Form1_FormClosing;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "-x");

            // Once connection happens, OnConnect will fire
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:23,代码来源:Login.cs


示例8: FireOnSkypeProxyAuthFailure

 internal void FireOnSkypeProxyAuthFailure(SktSkype sender, OnSkypeProxyAuthFailureArgs e)
 {
     if (OnSkypeProxyAuthFailure == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeProxyAuthFailureInNewThread); return; }
     gui.BeginInvoke(OnSkypeProxyAuthFailure, new object[] { sender, e }); // Synchronizing to gui thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:6,代码来源:skt_skypekit_2010.cs


示例9: FireOnSkypeH264Activated

 internal void FireOnSkypeH264Activated(SktSkype sender, OnSkypeH264ActivatedArgs e)
 {
     if (OnSkypeH264Activated == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeH264ActivatedInNewThread); return; }
     gui.BeginInvoke(OnSkypeH264Activated, new object[] { sender, e }); // Synchronizing to gui thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:6,代码来源:skt_skypekit_2010.cs


示例10: FireOnSkypeContactOnlineAppearance

 internal void FireOnSkypeContactOnlineAppearance(SktSkype sender, OnSkypeContactOnlineAppearanceArgs e)
 {
     if (OnSkypeContactOnlineAppearance == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeContactOnlineAppearanceInNewThread); return; }
     gui.BeginInvoke(OnSkypeContactOnlineAppearance, new object[] { sender, e }); // Synchronizing to gui thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:6,代码来源:skt_skypekit_2010.cs


示例11: FireOnParticipantLiveType

 internal void FireOnParticipantLiveType(SktParticipant sender, SktSkype.IDENTITYTYPE value)
 {
     if (OnParticipantLiveType == null) return; // Event not assigned
     OnParticipantLiveTypeArgs args = new OnParticipantLiveTypeArgs(sender, value);
     if (gui == null) { FireCallbackInSeparateThread(args, OnParticipantLiveTypeInNewThread); return; } // No gui firing in separate thread
     gui.BeginInvoke(OnParticipantLiveType, new object[] { sender, args }); // Syncing to GUI thread
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:7,代码来源:skt_skypekit_2010.cs


示例12: SktEvents

 public SktEvents(Form form, SktSkype skype)
     : base(form, skype)
 {
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


示例13: SktConversation

 /** All derived classes should call this base from their own constructors.
 <b>Warning!</b> You cannot access class properties from within constructors.
  */
 public SktConversation(uint ObjectID, SktSkype Skype)
     : base(ObjectID, Skype)
 {
     cache = new BitArray(32);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:8,代码来源:skt_skypekit_2010.cs


示例14: DefaultNewSms

 internal SktSms DefaultNewSms(uint oid, SktSkype skype)
 {
     return new SktSms(oid, skype);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


示例15: DefaultNewParticipant

 internal SktParticipant DefaultNewParticipant(uint oid, SktSkype skype)
 {
     return new SktParticipant(oid, skype);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


示例16: SktContactGroup

 /** All derived classes should call this base from their own constructors.
 <b>Warning!</b> You cannot access class properties from within constructors.
  */
 public SktContactGroup(uint ObjectID, SktSkype Skype)
     : base(ObjectID, Skype)
 {
     cache = new BitArray(5);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:8,代码来源:skt_skypekit_2010.cs


示例17: SktContactSearch

 /** All derived classes should call this base from their own constructors.
 <b>Warning!</b> You cannot access class properties from within constructors.
  */
 public SktContactSearch(uint ObjectID, SktSkype Skype)
     : base(ObjectID, Skype)
 {
     cache = new BitArray(1);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:8,代码来源:skt_skypekit_2010.cs


示例18: DefaultNewTransfer

 internal SktTransfer DefaultNewTransfer(uint oid, SktSkype skype)
 {
     return new SktTransfer(oid, skype);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs


示例19: PostFiles

 /**  Takes a list of fully-qualified filenames and initiates corresponding file transfers in the conversation.
   From the remote side, incoming file transfers will appear as a conversation message with type POSTED_FILES.
   Once such a message is detected, the list of file transfer objects can be retrieved with SktMessage.GetTransfers.
   At that point, remote participants will need to accept or decline those transfers.
 @param [out] error_code Error code, possible values come from the TRANSFER_SENDFILE_ERROR enumerator. This will be set for the first failed fail. The failed file is identified in the error_file return argument.
 @param [out] error_file Filename of the file that triggered error.
 @param [in] paths - list of fully-qualified filenames to be transferred
 @param [in] body - Optional BODY_XML property for POSTED_FILES type messages that show up in remote UI.
  */
 public void PostFiles(
 out SktSkype.TRANSFER_SENDFILE_ERROR error_code,
 out String        error_file,
 List<String>      paths,
 String            body)
 {
     if (skypeRef.logging) skypeRef.Log("Executing Conversation.PostFiles");
     uint RequestId = skypeRef.encoder.AddMethodHeader(ClassId, 21, OID);
     skypeRef.encoder.AddFilenameListParam(1, paths);
     skypeRef.encoder.AddStringParam(2, body);
     skypeRef.transport.SubmitMethodRequest (RequestId);
     Dictionary<uint, uint> tagMap = new Dictionary<uint, uint> { {1, 1}, {2, 2} };
     object[] args = new object[2];
     args[0] = 0;
     args[1] = "";
     skypeRef.decoder.DecodeMethodResponseArguments(2, ref args, new uint[2]{0,0}, ref tagMap, "SktConversation.PostFiles");
     error_code = (SktSkype.TRANSFER_SENDFILE_ERROR)args[0];
     error_file = (String)args[1];
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:28,代码来源:skt_skypekit_2010.cs


示例20: DefaultNewVideo

 internal SktVideo DefaultNewVideo(uint oid, SktSkype skype)
 {
     return new SktVideo(oid, skype);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:4,代码来源:skt_skypekit_2010.cs



注:本文中的SkypeKit.SktSkype类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Geometric.Box类代码示例发布时间:2022-05-26
下一篇:
C# SkypeKit.SktConversation类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap