2008-03-03 22:52:07 +00:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
// Blabber [SendTalkWindow.h]
|
|
|
|
// Send a talk request without need for the
|
|
|
|
// user to be on the buddy list.
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef SEND_TALK_WINDOW_H
|
|
|
|
#define SEND_TALK_WINDOW_H
|
|
|
|
|
2020-08-21 09:49:53 +00:00
|
|
|
#include <interface/MenuField.h>
|
|
|
|
#include <interface/MenuItem.h>
|
|
|
|
#include <interface/PopUpMenu.h>
|
|
|
|
#include <interface/TextControl.h>
|
|
|
|
#include <interface/Window.h>
|
|
|
|
#include "../ui/TalkView.h"
|
2008-03-03 22:52:07 +00:00
|
|
|
|
2019-09-29 20:12:10 +00:00
|
|
|
#include <string>
|
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
class SendTalkWindow : public BWindow {
|
|
|
|
public:
|
2019-07-14 10:26:38 +00:00
|
|
|
SendTalkWindow(gloox::Message::MessageType type);
|
2008-03-03 22:52:07 +00:00
|
|
|
~SendTalkWindow();
|
|
|
|
|
|
|
|
void MessageReceived(BMessage *msg);
|
|
|
|
|
|
|
|
bool ValidateGroupRoom();
|
2019-09-29 20:12:10 +00:00
|
|
|
std::string ValidateUser();
|
2008-03-03 22:52:07 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
BBox *_surrounding;
|
2019-07-14 10:26:38 +00:00
|
|
|
gloox::Message::MessageType _type;
|
2008-03-03 22:52:07 +00:00
|
|
|
BMenuField *_chat_services;
|
|
|
|
BPopUpMenu *_chat_services_selection;
|
|
|
|
BTextControl *_handle;
|
|
|
|
BTextControl *_name;
|
|
|
|
BView *_full_view;
|
|
|
|
};
|
|
|
|
|
2019-07-14 10:26:38 +00:00
|
|
|
#endif
|