-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.cpp
More file actions
33 lines (29 loc) · 779 Bytes
/
error.cpp
File metadata and controls
33 lines (29 loc) · 779 Bytes
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
#include "error.h"
#include <QMessageBox>
Error::Error()
{
}
void Error::loginFailed()
{
QMessageBox msgBox;
msgBox.setText("Login failed!\nThe username and/or password is wrong");
msgBox.setWindowTitle("Infomation");
msgBox.setIcon(QMessageBox::Information);
msgBox.exec();
}
void Error::registrationFailed()
{
QMessageBox msgBox;
msgBox.setText("Registration failed!\nThe email is already used");
msgBox.setWindowTitle("Infomation");
msgBox.setIcon(QMessageBox::Information);
msgBox.exec();
}
void Error::sendFileFailedOffline()
{
QMessageBox msgBox;
msgBox.setText("Send File to User failed!\nThe user is offline");
msgBox.setWindowTitle("Infomation");
msgBox.setIcon(QMessageBox::Information);
msgBox.exec();
}