Repository navigation
Expand file tree
/
Copy pathjoinserver.cpp
More file actions
82 lines (78 loc) · 1.41 KB
/
Copy pathjoinserver.cpp
File metadata and controls
82 lines (78 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
-- SOURCE FILE: joinserver.cpp
--
-- PROGRAM: Pelican Chat Program
--
-- FUNCTIONS:
-- explicit JoinServer(QWidget *parent = 0);
-- ~JoinServer();
--
-- DATE: March 13, 2011
--
-- REVISIONS: (Date and Description)
--
-- DESIGNER: Luke Queenan
--
-- PROGRAMMER: Luke Queenan
--
-- NOTES:
-- This file contains the logic for receiving information regarding the desired
-- server. The user is prompted for an IP address and a user name.
*/
#include "joinserver.h"
#include "ui_joinserver.h"
/*
-- FUNCTION: JoinServer
--
-- DATE: March 13, 2011
--
-- REVISIONS: (Date and Description)
--
-- DESIGNER: Qt
--
-- PROGRAMMER: Qt
--
-- INTERFACE: explicit JoinServer(QWidget *parent = 0);
--
-- RETURNS:
--
-- NOTES:
-- This is the constructor for the server input window of the chat client.
*/
JoinServer::JoinServer(QWidget *parent) :
QDialog(parent),
ui(new Ui::JoinServer)
{
ui->setupUi(this);
QWidget::setWindowIcon(style()->standardIcon(QStyle::SP_MediaPlay));
}
/*
-- FUNCTION: ~JoinServer
--
-- DATE: March 13, 2011
--
-- REVISIONS: (Date and Description)
--
-- DESIGNER: Qt
--
-- PROGRAMMER: Qt
--
-- INTERFACE: ~JoinServer();
--
-- RETURNS:
--
-- NOTES:
-- This is the destructor for the join server window of the chat client.
*/
JoinServer::~JoinServer()
{
delete ui;
}
QString JoinServer::getIp()
{
return ui->lineEditIp->text();
}
int JoinServer::getPort()
{
return ui->lineEditPort->text().toInt();
}