summaryrefslogtreecommitdiff
path: root/include/m_protoint.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-29 17:27:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-29 17:27:08 +0300
commitf16cf071e51f4768f20692c99414cb39521fa413 (patch)
tree7dd3cc512fe65fdd546f7753937261c518e5008c /include/m_protoint.h
parent939048b7ebce6a70c8e243fec36983de7d931e8b (diff)
PROTO_INTERFACE::setAllContactStatuses - common code moved to the core
Diffstat (limited to 'include/m_protoint.h')
-rw-r--r--include/m_protoint.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h
index d8367fb312..d0a40c5587 100644
--- a/include/m_protoint.h
+++ b/include/m_protoint.h
@@ -99,21 +99,6 @@ struct MIR_APP_EXPORT PROTO_INTERFACE : public MZeroedObject
//////////////////////////////////////////////////////////////////////////////////////
// Helpers
- __inline void debugLogA(LPCSTR szFormat, ...)
- {
- va_list args;
- va_start(args, szFormat);
- ProtoLogA(this, szFormat, args);
- va_end(args);
- }
- __inline void debugLogW(LPCWSTR wszFormat, ...)
- {
- va_list args;
- va_start(args, wszFormat);
- ProtoLogW(this, wszFormat, args);
- va_end(args);
- }
-
__forceinline void WindowSubscribe(HWND hwnd) {
::ProtoWindowAdd(this, hwnd); }
__forceinline void WindowUnsubscribe(HWND hwnd) {
@@ -183,6 +168,14 @@ struct MIR_APP_EXPORT PROTO_INTERFACE : public MZeroedObject
__forceinline void setWString(MCONTACT hContact, const char *name, const wchar_t* value) { db_set_ws(hContact, m_szModuleName, name, value); }
//////////////////////////////////////////////////////////////////////////////////////
+ // Service functions
+
+ void debugLogA(const char *szFormat, ...);
+ void debugLogW(const wchar_t *wszFormat, ...);
+
+ void setAllContactStatuses(int iStatus, bool bSkipChats = true);
+
+ //////////////////////////////////////////////////////////////////////////////////////
// Virtual functions
virtual MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr);