Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
FileTail.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
4
* SPDX-FileCopyrightText: (C) 2025 Synergy App Ltd
5
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6
*/
7
8
#pragma once
9
10
#include <QFile>
11
#include <QObject>
12
13
class
QFileSystemWatcher;
14
15
namespace
deskflow::gui
{
16
17
class
FileTail
:
public
QObject
18
{
19
Q_OBJECT
20
21
public
:
22
explicit
FileTail
(
const
QString &filePath, QObject *parent =
nullptr
);
23
void
setWatchedFile
(
const
QString &filePath);
24
25
Q_SIGNALS:
26
void
newLine
(
const
QString &line);
27
28
private
Q_SLOTS:
29
void
handleFileChanged(
const
QString &);
30
31
private
:
32
QFile m_file;
33
QFileSystemWatcher *m_watcher =
nullptr
;
34
qint64 m_lastPos;
35
};
36
37
}
// namespace deskflow::gui
deskflow::gui::FileTail::FileTail
FileTail(const QString &filePath, QObject *parent=nullptr)
Definition
FileTail.cpp:18
deskflow::gui::FileTail::newLine
void newLine(const QString &line)
deskflow::gui::FileTail::setWatchedFile
void setWatchedFile(const QString &filePath)
Definition
FileTail.cpp:24
deskflow::gui
Definition
CoreProcess.cpp:30
src
lib
gui
FileTail.h
Generated by
1.18.0