Qt 4.8
Public Functions | Public Variables | Static Public Variables | List of all members
QFtpCommand Class Reference

Public Functions

 QFtpCommand (QFtp::Command cmd, QStringList raw, const QByteArray &ba)
 
 QFtpCommand (QFtp::Command cmd, QStringList raw, QIODevice *dev=0)
 
 ~QFtpCommand ()
 

Public Variables

QFtp::Command command
 
union {
   QByteArray *   ba
 
   QIODevice *   dev
 
data
 
int id
 
bool is_ba
 
QStringList rawCmds
 

Static Public Variables

static QBasicAtomicInt idCounter = Q_BASIC_ATOMIC_INITIALIZER(1)
 

Detailed Description

Definition at line 233 of file qftp.cpp.

Constructors and Destructors

◆ QFtpCommand() [1/2]

QFtpCommand::QFtpCommand ( QFtp::Command  cmd,
QStringList  raw,
const QByteArray ba 
)

Definition at line 257 of file qftp.cpp.

258  : command(cmd), rawCmds(raw), is_ba(true)
259 {
261  data.ba = new QByteArray(ba);
262 }
QFtp::Command command
Definition: qftp.cpp:241
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
static QBasicAtomicInt idCounter
Definition: qftp.cpp:252
bool is_ba
Definition: qftp.cpp:250
QStringList rawCmds
Definition: qftp.cpp:242
int fetchAndAddRelaxed(int valueToAdd)
union QFtpCommand::@311 data

◆ QFtpCommand() [2/2]

QFtpCommand::QFtpCommand ( QFtp::Command  cmd,
QStringList  raw,
QIODevice dev = 0 
)

Definition at line 264 of file qftp.cpp.

265  : command(cmd), rawCmds(raw), is_ba(false)
266 {
268  data.dev = dev;
269 }
QFtp::Command command
Definition: qftp.cpp:241
static QBasicAtomicInt idCounter
Definition: qftp.cpp:252
bool is_ba
Definition: qftp.cpp:250
QIODevice * dev
Definition: qftp.cpp:248
QStringList rawCmds
Definition: qftp.cpp:242
int fetchAndAddRelaxed(int valueToAdd)
union QFtpCommand::@311 data

◆ ~QFtpCommand()

QFtpCommand::~QFtpCommand ( )

Definition at line 271 of file qftp.cpp.

272 {
273  if (is_ba)
274  delete data.ba;
275 }
bool is_ba
Definition: qftp.cpp:250
union QFtpCommand::@311 data

Properties

◆ ba

QByteArray* QFtpCommand::ba

Definition at line 247 of file qftp.cpp.

Referenced by QFtpPrivate::_q_startNextCommand().

◆ command

QFtp::Command QFtpCommand::command

◆ data

union { ... } QFtpCommand::data

◆ dev

QIODevice* QFtpCommand::dev

Definition at line 248 of file qftp.cpp.

Referenced by QFtpPrivate::_q_startNextCommand(), QFtp::currentDevice(), and QFtpCommand().

◆ id

int QFtpCommand::id

◆ idCounter

QBasicAtomicInt QFtpCommand::idCounter = Q_BASIC_ATOMIC_INITIALIZER(1)
static

Definition at line 252 of file qftp.cpp.

Referenced by QFtpCommand().

◆ is_ba

bool QFtpCommand::is_ba

Definition at line 250 of file qftp.cpp.

Referenced by QFtpPrivate::_q_startNextCommand(), QFtp::currentDevice(), and ~QFtpCommand().

◆ rawCmds

QStringList QFtpCommand::rawCmds

Definition at line 242 of file qftp.cpp.

Referenced by QFtpPrivate::_q_startNextCommand().


The documentation for this class was generated from the following file: