diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_protocols.h | 10 |
1 files changed, 8 insertions, 2 deletions
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;
|
