summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-03 20:53:10 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-03 20:53:10 +0000
commit77633ec5799b374a1899d05ae69a2e5f978f2a7c (patch)
tree495918b4f9fe4afabd3327bd31ded2b51c99cc1d /protocols/Steam/src/steam_proto.h
parent62d9ae35f2621f77a8f5c2bd34bef66553ac6036 (diff)
Steam: moved to core ui
git-svn-id: http://svn.miranda-ng.org/main/trunk@12594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.h')
-rw-r--r--protocols/Steam/src/steam_proto.h29
1 files changed, 8 insertions, 21 deletions
diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h
index 34560349e8..0c06e708ca 100644
--- a/protocols/Steam/src/steam_proto.h
+++ b/protocols/Steam/src/steam_proto.h
@@ -11,20 +11,6 @@ struct PasswordParam
char timestamp[16];
};
-
-struct GuardParam
-{
- char code[10];
- char domain[32];
-};
-
-struct CaptchaParam
-{
- BYTE *data;
- size_t size;
- char text[10];
-};
-
struct SendAuthParam
{
MCONTACT hContact;
@@ -118,6 +104,9 @@ struct QueueItem
class CSteamProto : public PROTO<CSteamProto>
{
+ friend CSteamPasswordEditor;
+ friend CSteamOptionsMain;
+
public:
// PROTO_INTERFACE
CSteamProto(const char *protoName, const wchar_t *userName);
@@ -154,6 +143,7 @@ public:
static void UninitMenus();
protected:
+ TCHAR *password;
bool isTerminated;
time_t m_idleTS;
HANDLE m_evRequestsQueue, m_hQueueThread;
@@ -256,6 +246,10 @@ protected:
void OnInitStatusMenu();
+ // options
+ CSteamDlgBase::CreateParam SteamMainOptionsParam;
+ CSteamDlgBase::CreateParam SteamBlockListOptionsParam;
+
// avatars
TCHAR* GetAvatarFilePath(MCONTACT hContact);
bool GetDbAvatarInfo(PROTO_AVATAR_INFORMATIONT &pai);
@@ -290,13 +284,6 @@ protected:
static void CSteamProto::ShowNotification(const wchar_t *message, int flags = 0, MCONTACT hContact = NULL);
static void CSteamProto::ShowNotification(const wchar_t *caption, const wchar_t *message, int flags = 0, MCONTACT hContact = NULL);
- // dialog procs
- static INT_PTR CALLBACK GuardProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
- static INT_PTR CALLBACK CaptchaProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
- static INT_PTR CALLBACK MainOptionsProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
- static LRESULT CALLBACK BlockListOptionsSubProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
- static INT_PTR CALLBACK BlockListOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-
// helpers
inline int IdleSeconds() {
// Based on idle time we report Steam server will mark us as online/away/snooze