/***************************************************************
* Name: Crypted_Ip2Ip_chatMain.h
* Purpose: Defines Application Frame
* Author: Rada Florin Daniel (florin.rada87@yahoo.com)
* Created: 2012-04-08
* Copyright: Rada Florin Daniel ()
* License:
**************************************************************/
#ifndef CRYPTED_IP2IP_CHATMAIN_H
#define CRYPTED_IP2IP_CHATMAIN_H
//(*Headers(Crypted_Ip2Ip_chatFrame)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/menu.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/frame.h>
#include <wx/statusbr.h>
//*)
#include <wx/socket.h>
class Crypted_Ip2Ip_chatFrame: public wxFrame
{
public:
Crypted_Ip2Ip_chatFrame(wxWindow* parent,wxWindowID id = -1);
virtual ~Crypted_Ip2Ip_chatFrame();
private:
//(*Handlers(Crypted_Ip2Ip_chatFrame)
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void Onbp_sendClick(wxCommandEvent& event);
void Onbp_connectClick(wxCommandEvent& event);
void Onbp_disconnectClick(wxCommandEvent& event);
//*)
void onSeteazaPort(wxCommandEvent& event);
void onAdresaUpdate(wxCommandEvent& event);
void onPortUpdate(wxCommandEvent& event);
void onClasaUpdate(wxCommandEvent& event);
void onServerEvent(wxSocketEvent& event);
void onSocketInput(wxSocketEvent& event);
void onTpInputEnter(wxKeyEvent& event);
void sendData();
//(*Identifiers(Crypted_Ip2Ip_chatFrame)
static const long ID_STATICTEXT1;
static const long ID_TP_CLASA_A;
static const long ID_TP_CLASA_B;
static const long ID_TP_CLASA_C;
static const long ID_TP_CLASA_D;
static const long ID_STATICTEXT2;
static const long ID_TP_PORT;
static const long ID_BP_CONNECT;
static const long ID_BP_DISCONNECT;
static const long ID_TP_OUT;
static const long ID_TP_INPUT;
static const long ID_BP_SEND;
static const long idMenuQuit;
static const long idMenuAbout;
static const long ID_STATUSBAR1;
//*)
static const int SERVER_ID;
static const int CONN_ID;
static const long ID_SETARI_PORT;
static const int MAX_POINTS;
//(*Declarations(Crypted_Ip2Ip_chatFrame)
wxTextCtrl* tp_out;
wxStaticText* StaticText2;
wxTextCtrl* tp_clasaB;
wxTextCtrl* tp_clasaD;
wxButton* bp_connect;
wxTextCtrl* tp_clasaC;
wxStaticText* StaticText1;
wxTextCtrl* tp_clasaA;
wxButton* bp_disconnect;
wxTextCtrl* tp_input;
wxStatusBar* StatusBar1;
wxTextCtrl* tp_port;
wxButton* bp_send;
//*)
wxSocketServer* mp_sockServ;
wxSocketClient* mp_sockClient;
wxString port_local;
wxString port_extern;
wxString adresa;
int points_num;
wxString clasaA;
wxString clasaB;
wxString clasaC;
wxString clasaD;
bool connectat;
DECLARE_EVENT_TABLE()
};
#endif // CRYPTED_IP2IP_CHATMAIN_H