00001
#ifndef FTPPUT_HPP
00002
#define FTPPUT_HPP
00003
00004
#ifdef HAVE_CONFIG_H
00005
#include "config.h"
00006
#endif
00007
00008
#include <qapplication.h>
00009
#include <qlist.h>
00010
#include <qvariant.h>
00011
00012
#include "lib/FTPClient.h"
00013
00014 class CFTPPut:
public QApplication
00015 {
00016 Q_OBJECT
00017
private:
00018
struct CommandStruct
00019 {
00020
int Command;
00021 QString Param[4];
00022 };
00023
00024
CFTPClient *pClient;
00025
bool Done;
00026
00027 QList<struct CommandStruct> CommandList;
00028
int m_CurrentCommand;
00029
00030 QString User, Pass, Server, Path;
00031
00032
void Usage();
00033
bool ParseUPSP(
char *s);
00034
00035
void TriggerNext();
00036
00037
private slots:
00038
void ProcessNextCommand();
00039
void Action(
int cmd,
int status,
int result,
const QString &resp_string);
00040
void Progress(
int);
00041
00042
public:
00043
CFTPPut(
int argc,
char **argv);
00044
~CFTPPut();
00045
00046
public slots:
00047
void Run();
00048 };
00049
00050
#endif