Add CLion proj files, and try starting debugging issues in Qt
This commit is contained in:
parent
e4cf140f8a
commit
13f5fbf8b0
5 changed files with 26 additions and 6 deletions
4
.idea/misc.xml
generated
Normal file
4
.idea/misc.xml
generated
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||||
|
</project>
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/oksirc.iml" filepath="$PROJECT_DIR$/.idea/oksirc.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
2
.idea/oksirc.iml
generated
Normal file
2
.idea/oksirc.iml
generated
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module classpath="CMake" type="CPP_MODULE" version="4" />
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
12
main.cpp
12
main.cpp
|
@ -171,8 +171,6 @@ int main(int argc, char *argv[]) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui *uiInstance = new ui(argc, argv);
|
|
||||||
|
|
||||||
char netBuf[8192];
|
char netBuf[8192];
|
||||||
|
|
||||||
// TEMP: Retreiving test file from HTTP daemon w/ TLS
|
// TEMP: Retreiving test file from HTTP daemon w/ TLS
|
||||||
|
@ -182,7 +180,7 @@ int main(int argc, char *argv[]) {
|
||||||
if(ret < 0) {
|
if(ret < 0) {
|
||||||
const PRErrorCode err = PR_GetError();
|
const PRErrorCode err = PR_GetError();
|
||||||
fprintf(stderr, "Error writing data to socket, code %d: %s\n", err, PR_ErrorToName(err));
|
fprintf(stderr, "Error writing data to socket, code %d: %s\n", err, PR_ErrorToName(err));
|
||||||
uiInstance->mainLog->appendPlainText("Error writing data to socket, see stderr.");
|
// uiInstance->mainLog->appendPlainText("Error writing data to socket, see stderr.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the response
|
// Get the response
|
||||||
|
@ -190,9 +188,10 @@ int main(int argc, char *argv[]) {
|
||||||
if(ret < 0) {
|
if(ret < 0) {
|
||||||
const PRErrorCode err = PR_GetError();
|
const PRErrorCode err = PR_GetError();
|
||||||
fprintf(stderr, "Error reading data from socket, code %d: %s\n", err, PR_ErrorToName(err));
|
fprintf(stderr, "Error reading data from socket, code %d: %s\n", err, PR_ErrorToName(err));
|
||||||
uiInstance->mainLog->appendPlainText("Error writing data from socket, see stderr.");
|
// uiInstance->mainLog->appendPlainText("Error writing data from socket, see stderr.");
|
||||||
} else {
|
} else {
|
||||||
uiInstance->mainLog->appendPlainText(netBuf);
|
printf("%s\n", netBuf);
|
||||||
|
// uiInstance->mainLog->appendPlainText(netBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(PR_Shutdown(nssSocket, PR_SHUTDOWN_BOTH) != PR_SUCCESS) {
|
if(PR_Shutdown(nssSocket, PR_SHUTDOWN_BOTH) != PR_SUCCESS) {
|
||||||
|
@ -205,8 +204,9 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
char messageBuf[1024];
|
char messageBuf[1024];
|
||||||
sprintf(messageBuf, "Found IP Address: %s", ipString);
|
sprintf(messageBuf, "Found IP Address: %s", ipString);
|
||||||
uiInstance->mainLog->appendPlainText(messageBuf);
|
// uiInstance->mainLog->appendPlainText(messageBuf);
|
||||||
|
|
||||||
|
ui *uiInstance = new ui(argc, argv);
|
||||||
int qAppRetCode = uiInstance->exec();
|
int qAppRetCode = uiInstance->exec();
|
||||||
|
|
||||||
// Shutdown of NSS
|
// Shutdown of NSS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue