7822ec0449
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.
47 lines
881 B
C++
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_
|