Deskflow 1.22.0.197
Keyboard and mouse sharing utility
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) 2025 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QFile>
10#include <QObject>
11
12class QFileSystemWatcher;
13
14namespace deskflow::gui {
15
16class FileTail : public QObject
17{
18 Q_OBJECT
19
20public:
21 FileTail(const QString &filePath, QObject *parent = nullptr);
22
23Q_SIGNALS:
24 void newLine(const QString &line);
25
26private Q_SLOTS:
27 void handleFileChanged(const QString &);
28
29private:
30 QFile m_file;
31 QFileSystemWatcher *m_watcher = nullptr;
32 qint64 m_lastPos;
33};
34
35} // namespace deskflow::gui
FileTail(const QString &filePath, QObject *parent=nullptr)
Definition FileTail.cpp:17
void newLine(const QString &line)
Definition IServerConfig.h:14