diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-03 19:45:30 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-03 19:45:30 +0000 |
commit | 9149e4c655c6e810ed9cb7a85b8be0eedb201a66 (patch) | |
tree | 4bd6238c79eb60cf7502ac47a858c961b35cfc17 /protocols/Steam/src/steam_accounts.cpp | |
parent | ce6e09d0d0d42580b6d1ad6747ac54d82dc821da (diff) |
Steam: first approach of server polling
git-svn-id: http://svn.miranda-ng.org/main/trunk@8843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_accounts.cpp')
-rw-r--r-- | protocols/Steam/src/steam_accounts.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/protocols/Steam/src/steam_accounts.cpp b/protocols/Steam/src/steam_accounts.cpp deleted file mode 100644 index 7c77af01c7..0000000000 --- a/protocols/Steam/src/steam_accounts.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "steam.h"
-
-int CSteamProto::CompareProtos(const CSteamProto *p1, const CSteamProto *p2)
-{
- return lstrcmp(p1->m_tszUserName, p2->m_tszUserName);
-}
-
-LIST<CSteamProto> CSteamProto::InstanceList(1, CSteamProto::CompareProtos);
-
-CSteamProto* CSteamProto::InitAccount(const char* protoName, const wchar_t* userName)
-{
- CSteamProto *ppro = new CSteamProto(protoName, userName);
- InstanceList.insert(ppro);
-
- return ppro;
-}
-
-int CSteamProto::UninitAccount(CSteamProto* ppro)
-{
- InstanceList.remove(ppro);
- delete ppro;
-
- return 0;
-}
-
-void CSteamProto::UninitAccounts()
-{
- for (int i = InstanceList.getCount(); i > 0; i--)
- UninitAccount(InstanceList[i]);
- InstanceList.destroy();
-}
-
-CSteamProto* CSteamProto::GetContactAccount(MCONTACT hContact)
-{
- char *proto = (char *)::CallService(MS_PROTO_GETCONTACTBASEPROTO, 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 |