diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-12-17 23:24:44 +0300 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-12-17 23:24:44 +0300 | 
| commit | 4c3d77032316bc8814cddc00d020ba00d4533999 (patch) | |
| tree | 1862e30966a69bf94a7288b95baed5b04a040d80 /protocols/Steam/src/steam_utils.cpp | |
| parent | 4b5082aef3817173bc254755c0ec352da064a440 (diff) | |
Steam:
- contact statuses are back;
- contact info is back too;
- Miranda's account status is passed to the server;
- some old code removed;
Diffstat (limited to 'protocols/Steam/src/steam_utils.cpp')
| -rw-r--r-- | protocols/Steam/src/steam_utils.cpp | 14 | 
1 files changed, 10 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index ebc3c2b6f8..912f84318f 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -75,8 +75,9 @@ void CSteamProto::SetId(const char *pszSetting, int64_t id)  }
  /////////////////////////////////////////////////////////////////////////////////////////
 +// Statuses
 -uint16_t CSteamProto::SteamToMirandaStatus(PersonaState state)
 +int SteamToMirandaStatus(PersonaState state)
  {
  	switch (state) {
  	case PersonaState::Offline:
 @@ -99,7 +100,7 @@ uint16_t CSteamProto::SteamToMirandaStatus(PersonaState state)  	}
  }
 -PersonaState CSteamProto::MirandaToSteamState(int status)
 +PersonaState MirandaToSteamState(int status)
  {
  	switch (status) {
  	case ID_STATUS_OFFLINE:
 @@ -121,7 +122,10 @@ PersonaState CSteamProto::MirandaToSteamState(int status)  	}
  }
 -void CSteamProto::ShowNotification(const wchar_t *caption, const wchar_t *message, int flags, MCONTACT hContact)
 +/////////////////////////////////////////////////////////////////////////////////////////
 +// Popups
 +
 +void ShowNotification(const wchar_t *caption, const wchar_t *message, int flags, MCONTACT hContact)
  {
  	if (Miranda_IsTerminated())
  		return;
 @@ -140,11 +144,13 @@ void CSteamProto::ShowNotification(const wchar_t *caption, const wchar_t *messag  	MessageBox(nullptr, message, caption, MB_OK | flags);
  }
 -void CSteamProto::ShowNotification(const wchar_t *message, int flags, MCONTACT hContact)
 +void ShowNotification(const wchar_t *message, int flags, MCONTACT hContact)
  {
  	ShowNotification(_A2W(MODULE), message, flags, hContact);
  }
 +/////////////////////////////////////////////////////////////////////////////////////////
 +
  INT_PTR CSteamProto::OnGetEventTextChatStates(WPARAM pEvent, LPARAM datatype)
  {
  	// Retrieves a chat state description from an event
  | 
