7c002d8fcc
Explicit room-creation using protocol's own "room" template is now supported. Two new protocol API messages were added― IM_CREATE_ROOM and IM_ROOM_CREATED, which are parallels to IM_CREATE_CHAT and IM_CHAT_CREATED. Rather than the latter two, though, these are wholy based on the "room" template― their slots are completely determined by the protocol. A generic "TemplateWindow" was created, which allows catch-all creation of windows that leverage protocols' templates. It's used for the room-creation window (Chat->New Room / Alt+N), for example. At some point, it ideally should replace even the JoinRoom window, and maybe others.
22 lines
380 B
C++
22 lines
380 B
C++
/*
|
|
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _TEMPLATE_VIEW_H
|
|
#define _TEMPLATE_VIEW_H
|
|
|
|
#include <View.h>
|
|
|
|
|
|
const uint32 kChanged = 'CHGD';
|
|
|
|
|
|
class TemplateView : public BView {
|
|
public:
|
|
TemplateView(const char* name);
|
|
|
|
virtual void AttachedToWindow();
|
|
};
|
|
|
|
#endif // _TEMPLATE_VIEW_H
|