Chat-O-Matic/application/Contact.h
Jaidyn Ann 7822ec0449 Split 'Contact' class into two
This dichotomy is useful and necessary in multi-user chats, so I split
Contact into a parent class, User. User should be used for generic
members of rooms, Contact used mainly with the roster.
2021-05-23 15:10:14 -05:00

47 lines
881 B
C++

/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Copyright 2012, Dario Casalinuovo. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _CONTACT_LINKER_H_
#define _CONTACT_LINKER_H_
#include <String.h>
#include <Message.h>
#include <Messenger.h>
#include "CayaConstants.h"
#include "User.h"
class BBitmap;
class ChatWindow;
class ProtocolLooper;
class RosterItem;
class Contact : public User {
public:
Contact(BString id, BMessenger msgn);
ChatWindow* GetChatWindow();
void DeleteWindow();
void ShowWindow(bool typing = false, bool userAction = false);
void HideWindow();
RosterItem* GetRosterItem() const;
void SetNotifyAvatarBitmap(BBitmap* bitmap);
private:
void _CreateChatWindow();
RosterItem* fRosterItem;
ChatWindow* fChatWindow;
bool fNewWindow;
};
#endif // _CONTACT_LINKER_H_