deskflow/src/lib/platform/MSWindowsDebugOutputter.cpp

41 lines
798 B
C++
Raw Normal View History

2012-06-10 16:50:54 +00:00
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2012 Nick Bolton
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#include "platform/MSWindowsDebugOutputter.h"
2012-06-10 16:50:54 +00:00
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <QString>
void MSWindowsDebugOutputter::open(const QString &title)
{
// do nothing
}
2012-06-10 16:50:54 +00:00
void MSWindowsDebugOutputter::close()
{
// do nothing
}
2012-06-10 16:50:54 +00:00
void MSWindowsDebugOutputter::show(bool showIfEmpty)
{
// do nothing
}
2012-06-10 16:50:54 +00:00
bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg)
{
std::wstring out = msg.toStdWString() + L"\n";
OutputDebugString(out.c_str());
return true;
2012-06-10 16:50:54 +00:00
}
void MSWindowsDebugOutputter::flush()
{
// do nothing
}