#include <QtNetwork/qftp.h> #ifndef QFTP_H #ifndef QT_NO_FTP class QFtp: public QObject{ /* Some contents are skipped to improve readability */ public: enum State{ Unconnected = 0, HostLookup = 1, Connecting = 2, Connected = 3, LoggedIn = 4, Closing = 5, }; /* ... */ }; #endif // QT_NO_FTP #endif // QFTP_H