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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
/********************************************************************************
** Form generated from reading UI file 'sslclient.ui'
**
** Created: Thu Jul 10 09:47:35 2008
** by: Qt User Interface Compiler version 4.5.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef SSLCLIENT_H
#define SSLCLIENT_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSpinBox>
#include <QtGui/QTextEdit>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QVBoxLayout *vboxLayout;
QGridLayout *gridLayout;
QLabel *hostNameLabel;
QLineEdit *hostNameEdit;
QLabel *portLabel;
QSpinBox *portBox;
QPushButton *connectButton;
QGroupBox *sessionBox;
QVBoxLayout *vboxLayout1;
QHBoxLayout *hboxLayout;
QLabel *cipherText;
QLabel *cipherLabel;
QTextEdit *sessionOutput;
QHBoxLayout *hboxLayout1;
QLabel *sessionInputLabel;
QLineEdit *sessionInput;
QPushButton *sendButton;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName(QString::fromUtf8("Form"));
Form->resize(343, 320);
vboxLayout = new QVBoxLayout(Form);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
gridLayout = new QGridLayout();
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
hostNameLabel = new QLabel(Form);
hostNameLabel->setObjectName(QString::fromUtf8("hostNameLabel"));
gridLayout->addWidget(hostNameLabel, 0, 0, 1, 1);
hostNameEdit = new QLineEdit(Form);
hostNameEdit->setObjectName(QString::fromUtf8("hostNameEdit"));
gridLayout->addWidget(hostNameEdit, 0, 1, 1, 1);
portLabel = new QLabel(Form);
portLabel->setObjectName(QString::fromUtf8("portLabel"));
gridLayout->addWidget(portLabel, 1, 0, 1, 1);
portBox = new QSpinBox(Form);
portBox->setObjectName(QString::fromUtf8("portBox"));
portBox->setMinimum(1);
portBox->setMaximum(65535);
portBox->setValue(993);
gridLayout->addWidget(portBox, 1, 1, 1, 1);
vboxLayout->addLayout(gridLayout);
connectButton = new QPushButton(Form);
connectButton->setObjectName(QString::fromUtf8("connectButton"));
connectButton->setEnabled(true);
connectButton->setDefault(true);
vboxLayout->addWidget(connectButton);
sessionBox = new QGroupBox(Form);
sessionBox->setObjectName(QString::fromUtf8("sessionBox"));
sessionBox->setEnabled(false);
vboxLayout1 = new QVBoxLayout(sessionBox);
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
cipherText = new QLabel(sessionBox);
cipherText->setObjectName(QString::fromUtf8("cipherText"));
hboxLayout->addWidget(cipherText);
cipherLabel = new QLabel(sessionBox);
cipherLabel->setObjectName(QString::fromUtf8("cipherLabel"));
cipherLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
hboxLayout->addWidget(cipherLabel);
vboxLayout1->addLayout(hboxLayout);
sessionOutput = new QTextEdit(sessionBox);
sessionOutput->setObjectName(QString::fromUtf8("sessionOutput"));
sessionOutput->setEnabled(false);
sessionOutput->setFocusPolicy(Qt::NoFocus);
sessionOutput->setReadOnly(true);
vboxLayout1->addWidget(sessionOutput);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
sessionInputLabel = new QLabel(sessionBox);
sessionInputLabel->setObjectName(QString::fromUtf8("sessionInputLabel"));
hboxLayout1->addWidget(sessionInputLabel);
sessionInput = new QLineEdit(sessionBox);
sessionInput->setObjectName(QString::fromUtf8("sessionInput"));
sessionInput->setEnabled(false);
hboxLayout1->addWidget(sessionInput);
sendButton = new QPushButton(sessionBox);
sendButton->setObjectName(QString::fromUtf8("sendButton"));
sendButton->setEnabled(false);
sendButton->setFocusPolicy(Qt::TabFocus);
sendButton->setDefault(true);
hboxLayout1->addWidget(sendButton);
vboxLayout1->addLayout(hboxLayout1);
vboxLayout->addWidget(sessionBox);
retranslateUi(Form);
QObject::connect(hostNameEdit, SIGNAL(returnPressed()), connectButton, SLOT(animateClick()));
QObject::connect(sessionInput, SIGNAL(returnPressed()), sendButton, SLOT(animateClick()));
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QApplication::translate("Form", "Secure Socket Client", 0, QApplication::UnicodeUTF8));
hostNameLabel->setText(QApplication::translate("Form", "Host name:", 0, QApplication::UnicodeUTF8));
hostNameEdit->setText(QApplication::translate("Form", "imap.example.com", 0, QApplication::UnicodeUTF8));
portLabel->setText(QApplication::translate("Form", "Port:", 0, QApplication::UnicodeUTF8));
connectButton->setText(QApplication::translate("Form", "Connect to host", 0, QApplication::UnicodeUTF8));
sessionBox->setTitle(QApplication::translate("Form", "Active session", 0, QApplication::UnicodeUTF8));
cipherText->setText(QApplication::translate("Form", "Cryptographic Cipher:", 0, QApplication::UnicodeUTF8));
cipherLabel->setText(QApplication::translate("Form", "<none>", 0, QApplication::UnicodeUTF8));
sessionOutput->setHtml(QApplication::translate("Form", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p></body></html>", 0, QApplication::UnicodeUTF8));
sessionInputLabel->setText(QApplication::translate("Form", "Input:", 0, QApplication::UnicodeUTF8));
sendButton->setText(QApplication::translate("Form", "&Send", 0, QApplication::UnicodeUTF8));
Q_UNUSED(Form);
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // SSLCLIENT_H
|