diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-06 18:55:34 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-06 18:55:34 +0000 |
commit | dea767bfe91ba408b09e4f9bcd503dd2150276a7 (patch) | |
tree | d44ac7a5e0460144feee1c2996dac5a1d02e67f5 /protocols/Steam/src/steam_proto.h | |
parent | 8457a7c95db2775bd977ba8de5091f5d5d9277eb (diff) |
Steam: server polling, status changing, messaging
git-svn-id: http://svn.miranda-ng.org/main/trunk@8873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.h')
-rw-r--r-- | protocols/Steam/src/steam_proto.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h index 853654fd37..e3cc2ea3d2 100644 --- a/protocols/Steam/src/steam_proto.h +++ b/protocols/Steam/src/steam_proto.h @@ -14,6 +14,13 @@ struct CaptchaParam char text[10];
};
+struct SendMessageParam
+{
+ MCONTACT hContact;
+ HANDLE hMessage;
+ const char *text;
+};
+
class CSteamProto : public PROTO<CSteamProto>
{
public:
@@ -75,6 +82,7 @@ public: protected:
bool m_bTerminated;
HANDLE m_hPollingThread;
+ ULONG hMessageProcess;
CRITICAL_SECTION contact_search_lock;
// instances
@@ -86,15 +94,26 @@ protected: void __cdecl PollingThread(void*);
// account
+ static WORD SteamToMirandaStatus(int state);
+ static int MirandaToSteamState(int status);
+
bool IsOnline();
void Authorize(SteamWebApi::AuthorizationApi::AuthResult *authResult);
void __cdecl LogInThread(void*);
void __cdecl LogOutThread(void*);
+ void __cdecl SetServerStatusThread(void*);
// contacts
+ void SetContactStatus(MCONTACT hContact, WORD status);
+ void SetAllContactsStatus(WORD status);
+
MCONTACT FindContact(const char *steamId);
MCONTACT AddContact(const SteamWebApi::FriendApi::Friend &contact);
+ // messages
+ void __cdecl SendMessageThread(void*);
+ void __cdecl SendTypingThread(void*);
+
//events
int OnModulesLoaded(WPARAM, LPARAM);
int OnPreShutdown(WPARAM, LPARAM);
|