#include </home/clem/local/src/opie/noncore/apps/opie-console/filetransfer.h>
Inheritance diagram for FileTransfer:


Public Types | |
| enum | Type { SZ = 0, SX, SY } |
Public Member Functions | |
| FileTransfer (Type t, IOLayer *) | |
| ~FileTransfer () | |
| void | sendFile (const QString &file) |
| void | sendFile (const QFile &) |
| void | cancel () |
Private Slots | |
| void | setupChild () |
| void | slotRead () |
| void | slotProgress (const QStringList &) |
| void | slotExec () |
Private Attributes | |
| Type | m_type |
| pid_t | m_pid |
| int | m_fd |
| int | m_prog |
| int | m_info [2] |
| int | m_comm [2] |
| int | m_term [2] |
| QString | m_file |
| QSocketNotifier * | m_not |
| QSocketNotifier * | m_proc |
Friends | |
| class | FileTransferControl |
|
|
Definition at line 19 of file filetransfer.h. |
|
||||||||||||
|
Definition at line 13 of file filetransfer.cpp. |
|
|
Definition at line 21 of file filetransfer.cpp. |
|
|
Implements FileTransferLayer. Definition at line 231 of file filetransfer.cpp. References m_pid. |
|
|
Implements FileTransferLayer. Definition at line 124 of file filetransfer.cpp. References QFile::name(), and sendFile(). |
|
|
now we will send the file. we request an fd. The IOLayer should be closed then we will setup a pipe for progress communication then we will dup2 the m_fd in the forked process to do direct IO from and to the fd Implements FileTransferLayer. Definition at line 32 of file filetransfer.cpp. References FileTransferLayer::error(), QString::latin1(), FileTransferLayer::layer(), len, m_comm, m_fd, m_file, m_info, m_not, m_pid, m_proc, m_prog, m_term, m_type, NULL, ProcCtl::self(), setupChild(), slotExec(), slotRead(), FileTransferLayer::StartError, SX, SY, SZ, tr, verbose, and write(). Referenced by sendFile(), and SenderUI::slotSendFile(). |
|
|
Definition at line 132 of file filetransfer.cpp. References m_comm, m_fd, and m_info. Referenced by sendFile(). |
|
|
Definition at line 235 of file filetransfer.cpp. References buf, l, FileTransferLayer::layer(), m_comm, m_fd, m_not, m_pid, m_proc, m_term, and FileTransferLayer::sent(). Referenced by sendFile(). |
|
|
Definition at line 188 of file filetransfer.cpp. References m_file, m_prog, m_type, min, FileTransferLayer::progress(), FileTransferLayer::sent(), QStringList::split(), and SZ. Referenced by slotRead(). |
|
|
Definition at line 163 of file filetransfer.cpp. References i, len, m_comm, slotProgress(), QStringList::split(), and str. Referenced by sendFile(). |
|
|
Definition at line 16 of file filetransfer.h. |
|
|
Definition at line 42 of file filetransfer.h. Referenced by sendFile(), setupChild(), slotExec(), and slotRead(). |
|
|
Definition at line 39 of file filetransfer.h. Referenced by sendFile(), setupChild(), and slotExec(). |
|
|
Definition at line 44 of file filetransfer.h. Referenced by sendFile(), and slotProgress(). |
|
|
Definition at line 41 of file filetransfer.h. Referenced by sendFile(), and setupChild(). |
|
|
Definition at line 45 of file filetransfer.h. Referenced by FileTransfer(), sendFile(), and slotExec(). |
|
|
Definition at line 38 of file filetransfer.h. Referenced by cancel(), FileTransfer(), sendFile(), and slotExec(). |
|
|
Definition at line 46 of file filetransfer.h. Referenced by FileTransfer(), sendFile(), and slotExec(). |
|
|
Definition at line 40 of file filetransfer.h. Referenced by sendFile(), and slotProgress(). |
|
|
Definition at line 43 of file filetransfer.h. Referenced by sendFile(), and slotExec(). |
|
|
Definition at line 37 of file filetransfer.h. Referenced by sendFile(), and slotProgress(). |
1.4.2