Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ArchLogWindows.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "arch/IArchLog.h"
11
12#define WIN32_LEAN_AND_MEAN
13#include <Windows.h>
14
15#define ARCH_LOG ArchLogWindows
16
19{
20public:
22 ~ArchLogWindows() override = default;
23
24 // IArchLog overrides
25 void openLog(const char *name) override;
26 void closeLog() override;
27 void showLog(bool showIfEmpty) override;
28 void writeLog(LogLevel, const char *) override;
29
30private:
31 HANDLE m_eventLog;
32};
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:27
LogLevel
Log levels.
Definition LogLevel.h:15
void showLog(bool showIfEmpty) override
Show the log.
Definition ArchLogWindows.cpp:36
void openLog(const char *name) override
Open the log.
Definition ArchLogWindows.cpp:21
void closeLog() override
Close the log.
Definition ArchLogWindows.cpp:28
ArchLogWindows()
Definition ArchLogWindows.cpp:16
~ArchLogWindows() override=default
void writeLog(LogLevel, const char *) override
Write to the log.
Definition ArchLogWindows.cpp:41
Interface for architecture dependent logging.
Definition IArchLog.h:19