Chat-O-Matic/application/ChatWindow.h
2010-05-07 09:47:10 +00:00

41 lines
814 B
C++

/*
* Copyright 2009, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef ChatWindow_H_
#define ChatWindow_H_
#include <Window.h>
#include <TextView.h>
#include "Observer.h"
#include "CayaConstants.h"
class ContactLinker;
class CayaRenderView;
class ChatWindow: public BWindow , public Observer
{
public:
ChatWindow(ContactLinker* cl);
virtual void MessageReceived(BMessage* message);
void ImMessage(BMessage *msg);
virtual bool QuitRequested();
void ObserveString(int32 what, BString str);
void ObservePointer(int32 what, void* ptr);
void ObserveInteger(int32 what, int32 val);
void AppendStatus(CayaStatus status);
private:
BTextView* fSendView;
ContactLinker* fContactLinker;
CayaRenderView *fReceiveView;
};
#endif
//--