diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-30 11:37:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-30 11:37:47 +0000 |
commit | ce49c84f3a26f016f9232d2bffdc830d7fd6169f (patch) | |
tree | c6bbdab7b5a42f65461a5d495d962c4ff69b9e97 /protocols/Tox/src/tox_instances.cpp | |
parent | beaf93e92827b7bcc77c9f6b2a0c7097d355151c (diff) |
Tox:
- switch to offline when connection is lost
- file transfer support
- code refactoring
- project reordering
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@10340 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_instances.cpp')
-rw-r--r-- | protocols/Tox/src/tox_instances.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/protocols/Tox/src/tox_instances.cpp b/protocols/Tox/src/tox_instances.cpp deleted file mode 100644 index 414cd7b767..0000000000 --- a/protocols/Tox/src/tox_instances.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "common.h"
-
-LIST<CToxProto> CToxProto::instanceList(1, CToxProto::CompareProtos);
-
-int CToxProto::CompareProtos(const CToxProto *p1, const CToxProto *p2)
-{
- return wcscmp(p1->m_tszUserName, p2->m_tszUserName);
-}
-
-CToxProto* CToxProto::InitProtoInstance(const char* protoName, const wchar_t* userName)
-{
- CToxProto *ppro = new CToxProto(protoName, userName);
- instanceList.insert(ppro);
-
- return ppro;
-}
-
-int CToxProto::UninitProtoInstance(CToxProto* ppro)
-{
- instanceList.remove(ppro);
-
- delete ppro;
-
- return 0;
-}
-
-void CToxProto::UninitInstances()
-{
- instanceList.destroy();
-}
-
-CToxProto* CToxProto::GetContactInstance(MCONTACT hContact)
-{
- char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
-
- if (proto == NULL)
- return NULL;
-
- for (int i = 0; i < instanceList.getCount(); i++)
- if ( !::strcmp(proto, instanceList[i]->m_szModuleName))
- return instanceList[i];
-
- return NULL;
-}
\ No newline at end of file |