Files
RedBear-OS/recipes/wip/qt/qtscxml/source/examples/scxml/ftpclient/ftpcontrolchannel.h
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

51 lines
1.2 KiB
C++

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef FTPCONTROLCHANNEL_H
#define FTPCONTROLCHANNEL_H
#include <QtNetwork/qhostaddress.h>
#include <QtNetwork/qtcpsocket.h>
#include <QtCore/qobject.h>
class FtpControlChannel : public QObject
{
Q_OBJECT
public:
explicit FtpControlChannel(QObject *parent = nullptr);
// Connect to an FTP server
void connectToServer(const QString &server);
// Send a command to the server
void command(const QByteArray &command, const QByteArray &params);
public slots:
void error(QAbstractSocket::SocketError);
signals:
// Connection established. Local address and port are known.
void opened(const QHostAddress &localAddress, int localPort);
// Connection closed
void closed();
// Informational message
void info(const QByteArray &info);
// Reply to a previously sent command
void reply(int code, const QByteArray &parameters);
// Something is wrong
void invalidReply(const QByteArray &reply);
private:
void onReadyRead();
QTcpSocket m_socket;
QByteArray m_buffer;
};
#endif // FTPCONTROLCHANNEL_H