057e7fba9b
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.
30 lines
566 B
C++
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
|
|
|