mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 13:41:13 +00:00
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
20 lines
459 B
C++
20 lines
459 B
C++
/**
|
|
* @file main.cpp
|
|
* @brief Main file.
|
|
* @author Michal Policht
|
|
*/
|
|
|
|
#include <QCoreApplication>
|
|
#include "PortListener.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication app(argc, argv);
|
|
|
|
QString portName = QLatin1String("COM1"); // update this to use your port of choice
|
|
PortListener listener(portName); // signals get hooked up internally
|
|
|
|
// start the event loop and wait for signals
|
|
return app.exec();
|
|
}
|