Chat-O-Matic/application/views/ConversationAccountItem.h
Jaidyn Ann 057e7fba9b Add "system buffer" per protocol
Now, per each account, there is a read-only chat view associated with
it, accessible through its item in the conversations list. This can be
used to place system messages, MOTDs, insignificant errors, etc.

Protocols can send text to this buffer by specifying no "chat_id" in
an IM_MESSAGE_RECEIVED message.
2021-08-12 15:43:52 -05:00

30 lines
566 B
C++

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef CONVERSATIONACCITEM_H
#define CONVERSATIONACCITEM_H
#include <StringItem.h>
class Conversation;
class ProtocolLooper;
class ConversationAccountItem : public BStringItem {
public:
ConversationAccountItem(const char* name, int64 instance,
ProtocolLooper* looper);
int64 GetInstance();
ProtocolLooper* GetLooper();
private:
int64 fInstance;
ProtocolLooper* fProtocolLooper;
};
#endif // CONVERSATIONACCITEM_H