diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-03-30 20:04:12 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-03-30 20:04:12 +0300 |
| commit | 351a4ae54f9d6e2c1a5b9a6dee08961fbb51e92a (patch) | |
| tree | 8c0416992e12074612afdf86d33e2c5f85f51bba /protocols/Teams/src/stdafx.h | |
| parent | 5b036d1ae27b1ab12623778fec0aa90b239496c6 (diff) | |
Teams: synced with existing Skype code base
Diffstat (limited to 'protocols/Teams/src/stdafx.h')
| -rw-r--r-- | protocols/Teams/src/stdafx.h | 99 |
1 files changed, 76 insertions, 23 deletions
diff --git a/protocols/Teams/src/stdafx.h b/protocols/Teams/src/stdafx.h index 9ef202a899..de676dace4 100644 --- a/protocols/Teams/src/stdafx.h +++ b/protocols/Teams/src/stdafx.h @@ -2,49 +2,102 @@ #define _COMMON_H_ #include <windows.h> -#include <commctrl.h> + #include <malloc.h> #include <time.h> - -#include <map> -#include <regex> -#include <vector> #include <string> -#include <algorithm> +#include <vector> +#include <regex> +#include <map> +#include <memory> +#include <functional> #include <newpluginapi.h> -#include <m_chat_int.h> -#include <m_contacts.h> + +#include <m_protoint.h> +#include <m_protosvc.h> + #include <m_database.h> #include <m_langpack.h> -#include <m_message.h> -#include <m_netlib.h> +#include <m_clistint.h> #include <m_options.h> +#include <m_netlib.h> #include <m_popup.h> -#include <m_json.h> -#include <m_avatars.h> #include <m_icolib.h> +#include <m_userinfo.h> +#include <m_timezones.h> +#include <m_contacts.h> +#include <m_message.h> +#include <m_avatars.h> #include <m_skin.h> -#include <m_clist.h> +#include <m_chat_int.h> #include <m_genmenu.h> -#include <m_imgsrvc.h> -#include <m_protocols.h> -#include <m_protosvc.h> -#include <m_protoint.h> -#include <m_idle.h> -#include <m_xstatus.h> -#include <m_extraicons.h> +#include <m_clc.h> +#include <m_json.h> #include <m_gui.h> -#include <m_http.h> -#include <m_system.h> +#include <m_imgsrvc.h> +#include <m_xml.h> +#include <m_assocmgr.h> +#include <m_file.h> + +extern char g_szMirVer[]; +extern HANDLE g_hCallEvent; + +struct MessageId +{ + ULONGLONG id; + HANDLE handle; +}; #include "resource.h" #include "version.h" +#include "teams_menus.h" +#include "teams_utils.h" #define MODULENAME "Teams" class CTeamsProto; -#include "proto.h" +///////////////////////////////////////////////////////////////////////////////////////// + +#define SKYPEWEB_CLIENTINFO_NAME "swx-skype.com" +#define SKYPEWEB_CLIENTINFO_VERSION "908/1.85.0.29" + +enum SkypeHost +{ + HOST_API, + HOST_CONTACTS, + HOST_DEFAULT, + HOST_GRAPH, + HOST_LOGIN, + HOST_PEOPLE, + HOST_TEAMS, + HOST_OTHER +}; + +struct AsyncHttpRequest : public MTHttpRequest<CTeamsProto> +{ + SkypeHost m_host; + MCONTACT hContact = 0; + + AsyncHttpRequest(int type, SkypeHost host, LPCSTR url = nullptr, MTHttpRequestHandler pFunc = nullptr); + + void AddRegister(CTeamsProto *ppro); + void AddAuthentication(CTeamsProto *ppro); +}; + +#include "teams_proto.h" + +#include "requests/capabilities.h" +#include "requests/chatrooms.h" +#include "requests/contacts.h" +#include "requests/history.h" +#include "requests/poll.h" +#include "requests/profile.h" +#include "requests/search.h" +#include "requests/status.h" +#include "requests/subscriptions.h" + +#define POLLING_ERRORS_LIMIT 3 #endif //_COMMON_H_
\ No newline at end of file |
