* used wstring in FilePath constructor where easily possible * added FilePath concatenate method that accepts string parameter * implemented using only wstring in MessageStatus * used wstring in config
27 lines
486 B
C++
27 lines
486 B
C++
#include "qt/QtCoreApplication.h"
|
|
|
|
#include <iostream>
|
|
|
|
QtCoreApplication::QtCoreApplication(int argc, char **argv )
|
|
: QCoreApplication(argc, argv)
|
|
{
|
|
}
|
|
|
|
QtCoreApplication::~QtCoreApplication()
|
|
{
|
|
}
|
|
|
|
void QtCoreApplication::handleMessage(MessageQuitApplication* message)
|
|
{
|
|
std::cout << "quit" << std::endl;
|
|
emit quit();
|
|
}
|
|
|
|
void QtCoreApplication::handleMessage(MessageStatus* message)
|
|
{
|
|
for (const std::wstring& status : message->stati())
|
|
{
|
|
std::wcout << status << std::endl;
|
|
}
|
|
}
|