diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-12-28 14:27:17 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-12-28 14:27:17 +0000 |
commit | f1000598cfdd80dc4dc0eb9bb1a0e3e142137856 (patch) | |
tree | 807d47b213577381d36dd0bc608a4ab7b9c9426c /protocols/Skype/src/skype_runtime.cpp | |
parent | 564aadb3ff4757c2d5af86dc00f606e96b2c7ae4 (diff) |
- code refactoring
- added account registration
- temporary disabled chatrooms
git-svn-id: http://svn.miranda-ng.org/main/trunk@2869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_runtime.cpp')
-rw-r--r-- | protocols/Skype/src/skype_runtime.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_runtime.cpp b/protocols/Skype/src/skype_runtime.cpp new file mode 100644 index 0000000000..ea2f11b835 --- /dev/null +++ b/protocols/Skype/src/skype_runtime.cpp @@ -0,0 +1,18 @@ +#include "skype_proto.h"
+
+void CSkypeProto::InitSkype()
+{
+ int port = 8963;
+
+ wchar_t *profileName = ::Utils_ReplaceVarsT(L"%miranda_profilename%");
+ wchar_t *dbPath = ::Utils_ReplaceVarsT(L"%miranda_userdata%\\SkypeKit\\");
+
+ this->skype = CSkype::GetInstance(g_hInstance, profileName, dbPath);
+ this->skype->SetOnMessageCallback((CSkype::OnMessaged)&CSkypeProto::OnMessage, this);
+}
+
+void CSkypeProto::UninitSkype()
+{
+ this->skype->stop();
+ delete this->skype;
+}
\ No newline at end of file |