65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
/*
|
|
* Copyright 2009, Andrea Anzani. 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 "Notifier.h"
|
|
#include "CayaConstants.h"
|
|
|
|
class BBitmap;
|
|
|
|
class ChatWindow;
|
|
class ContactPopUp;
|
|
class RosterItem;
|
|
|
|
class ContactLinker : public Notifier {
|
|
public:
|
|
ContactLinker(BString id, BMessenger msgn);
|
|
|
|
ChatWindow* GetChatWindow();
|
|
void DeleteWindow();
|
|
|
|
void ShowWindow();
|
|
void HideWindow();
|
|
|
|
void ShowPopUp(BPoint where);
|
|
void DeletePopUp();
|
|
void HidePopUp();
|
|
|
|
RosterItem* GetRosterItem() { return fRosterItem; }
|
|
|
|
BString GetId() { return fID; }
|
|
|
|
BMessenger GetMessenger() { return fMessenger; }
|
|
|
|
BString GetName() { return fName; }
|
|
BBitmap* AvatarBitmap() { return fAvatarBitmap; }
|
|
|
|
void SetNotifyName(BString name);
|
|
void SetNotifyAvatarBitmap(BBitmap* bitmap);
|
|
void SetNotifyStatus(CayaStatus status);
|
|
void SetNotifyPersonalStatus(BString personalStatus);
|
|
|
|
private:
|
|
void CreateChatWindow();
|
|
|
|
RosterItem* fRosterItem;
|
|
ChatWindow* fChatWindow;
|
|
BMessenger fMessenger;
|
|
|
|
BString fID;
|
|
BString fName;
|
|
BString fPersonalStatus;
|
|
BBitmap* fAvatarBitmap;
|
|
CayaStatus fStatus;
|
|
ContactPopUp* fPopUp;
|
|
};
|
|
|
|
#endif // _CONTACT_LINKER_H_
|