summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-23 19:47:32 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-23 19:47:32 +0000
commita2184eb00d2b02d48ec14e72615736281b9d5f81 (patch)
tree94ade86705cd11d5868d6b33675773642a05f199 /protocols/Skype/src/skype_proto.h
parentbfeb3b2b1088278afb247d82085174aaf97e2cc6 (diff)
- changed project file structure
- skype runtime initialization moved to plugin load func - fixed password encription - disabled message sync git-svn-id: http://svn.miranda-ng.org/main/trunk@4518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index 017e3b7af9..4f72dc8096 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -1,7 +1,7 @@
#pragma once
#include "skype.h"
-#include <time.h>
+#include "skypekit\skype.h"
typedef void (__cdecl CSkypeProto::* SkypeThreadFunc) (void*);
typedef int (__cdecl CSkypeProto::* SkypeEventFunc)(WPARAM, LPARAM);
@@ -119,7 +119,7 @@ struct InviteChatParam
struct PasswordRequestBoxParam
{
wchar_t *login;
- wchar_t *password;
+ char *password;
bool rememberPassword;
bool showRememberPasswordBox;
@@ -138,8 +138,8 @@ struct PasswordRequestBoxParam
struct PasswordChangeBoxParam
{
- wchar_t *password;
- wchar_t *password2;
+ char *password;
+ char *password2;
PasswordChangeBoxParam() { }
@@ -153,7 +153,7 @@ struct PasswordChangeBoxParam
struct CSkypeProto : public PROTO_INTERFACE
{
public:
- CSkypeProto(const char *, const wchar_t *);
+ CSkypeProto(const char *protoName, const wchar_t *userName);
~CSkypeProto();
// PROTO_INTERFACE
@@ -242,7 +242,6 @@ public:
bool IsOnline();
protected:
- CSkype *skype;
CAccount::Ref account;
CContact::Refs contactList;
CTransfer::Refs transferList;
@@ -253,7 +252,7 @@ protected:
void OnAccountChanged(int prop);
wchar_t *login;
- wchar_t *password;
+ char *password;
bool rememberPassword;
bool RequestPassword(PasswordRequestBoxParam &param);
@@ -279,12 +278,12 @@ protected:
// messages
void OnMessage(CConversation::Ref conversation, CMessage::Ref message);
- void OnMessageSended(CConversation::Ref conversation, CMessage::Ref message);
- void OnMessageReceived(CConversation::Ref conversation, CMessage::Ref message);
+ void OnMessageSended(CConversation::Ref &conversation, CMessage::Ref &message);
+ void OnMessageReceived(CConversation::Ref &conversation, CMessage::Ref &message);
// transfer
- void OnFile(CConversation::Ref conversation, CMessage::Ref message);
- void OnTransferChanged(int prop, CTransfer::Ref transfer);
+ void OnFile(CConversation::Ref &conversation, CMessage::Ref &message);
+ void OnTransferChanged(CTransfer::Ref transfer, int prop);
// chat
static wchar_t* Groups[];
@@ -329,7 +328,7 @@ protected:
void UpdateContactLastEventDate(SEObject *obj, HANDLE hContact);
void OnSearchCompleted(HANDLE hSearch);
- void OnContactFinded(HANDLE hSearch, CContact::Ref contact);
+ void OnContactFinded(CContact::Ref contact, HANDLE hSearch);
void OnContactChanged(CContact::Ref contact, int prop);
void OnContactListChanged(const ContactRef& contact);
@@ -396,10 +395,6 @@ protected:
SEBinary GetAvatarBinary(wchar_t *path);
- // runtime
- void InitSkype();
- void UninitSkype();
-
// instances
static LIST<CSkypeProto> instanceList;
static int CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2);