Chat-O-Matic/application/ChatWindow.h

38 lines
834 B
C
Raw Normal View History

/*
* Copyright 2009, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*/
2010-05-20 16:31:55 -05:00
#ifndef _CHAT_WINDOW_H
#define _CHAT_WINDOW_H
#include <Window.h>
#include <TextView.h>
#include "Observer.h"
2010-05-20 16:31:55 -05:00
#include "CayaConstants.h"
class ContactLinker;
class CayaRenderView;
2010-05-20 16:31:55 -05:00
class ChatWindow: public BWindow, public Observer {
public:
ChatWindow(ContactLinker* cl);
2010-05-20 16:31:55 -05:00
virtual void MessageReceived(BMessage* message);
virtual bool QuitRequested();
void ImMessage(BMessage* msg);
2010-05-20 16:31:55 -05:00
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;
};
2010-05-20 16:31:55 -05:00
#endif // _CHAT_WINDOW_H