summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skype_runtime.cpp')
-rw-r--r--protocols/Skype/src/skype_runtime.cpp18
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