From 1732a6b13f52b573cc4af91c2d9120c596e6bf78 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 May 2018 17:50:35 +0200 Subject: PROTOACCOUNT::bIsLocked: lock status to be stored in memory PROTOACCOUNT became a normal class with constructor & destructor --- include/m_protocols.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_protocols.h b/include/m_protocols.h index ff364d3e7e..e72b31de72 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -243,9 +243,10 @@ EXTERN_C MIR_APP_DLL(int) Proto_IsProtoOnContact(MCONTACT hContact, const char * #define ME_PROTO_CONTACTISTYPING "Proto/ContactIsTypingEvent" -// -------------- accounts support --------------------- 0.8.0+ +///////////////////////////////////////////////////////////////////////////////////////// +// Accounts support -struct MIR_APP_EXPORT PROTOACCOUNT +struct MIR_APP_EXPORT PROTOACCOUNT : public MZeroedObject { char* szModuleName; // unique physical account name (matches database module name) wchar_t* tszAccountName; // user-defined account name @@ -253,6 +254,7 @@ struct MIR_APP_EXPORT PROTOACCOUNT bool bIsEnabled; // is account enabled? bool bIsVisible; // is account visible? bool bIsVirtual; // is account virtual? + bool bIsLocked; // is locked in the contacts list? bool bOldProto; // old-styled account (one instance per dll) bool bDynDisabled; // dynamic disable flag, is never written to db @@ -270,6 +272,10 @@ struct MIR_APP_EXPORT PROTOACCOUNT int protostatus[MAX_STATUS_COUNT]; HGENMENU menuhandle[MAX_STATUS_COUNT]; + //---- methods ------------ + PROTOACCOUNT(const char *szProto); + ~PROTOACCOUNT(); + bool IsEnabled(void) const; bool IsLocked(void) const; bool IsVisible(void) const; -- cgit v1.2.3