File indexing completed on 2024-04-21 16:17:05

0001 /*
0002     kwrited is a write(1) receiver for KDE.
0003     SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de>
0004     SPDX-FileCopyrightText: 2008 George Kiagiadakis <gkiagia@users.sourceforge.net>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KWRITED_H
0010 #define KWRITED_H
0011 
0012 #include <QObject>
0013 #include <config-kwrited.h>
0014 class KPtyDevice;
0015 
0016 class KWrited : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     KWrited();
0021     ~KWrited() override;
0022 
0023 private Q_SLOTS:
0024     void block_in();
0025 
0026 private:
0027     KPtyDevice *pty;
0028 };
0029 
0030 #if !BUILD_AS_EXECUTABLE
0031 #include <kdedmodule.h>
0032 
0033 class KWritedModule : public KDEDModule
0034 {
0035 public:
0036     KWritedModule(QObject *parent, const QList<QVariant> &);
0037     ~KWritedModule() override;
0038 
0039 private:
0040     KWrited *pro;
0041 };
0042 
0043 #endif
0044 
0045 #endif