|
lftp
4.4.6
About: lftp is a command line ftp client (FTP, HTTP, ssl support, background transfer, reget, reput, ...)
Fossies Dox: lftp-4.4.6.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <SysCmdJob.h>


Public Member Functions | |
| SysCmdJob (const char *new_cmd) | |
| ~SysCmdJob () | |
| int | Do () |
| int | Done () |
| int | AcceptSig (int) |
| int | ExitCode () |
Public Member Functions inherited from Job | |
| void | AddWaiting (Job *) |
| template<class T > | |
| void | AddWaiting (const JobRef< T > &r) |
| void | RemoveWaiting (const Job *) |
| void | ReplaceWaiting (Job *from, Job *to) |
| void | SetParent (Job *j) |
| void | SetParentFg (Job *j, bool f=true) |
| void | AllocJobno () |
| void | PrintStatus (int, const char *prefix="\t") |
| virtual xstring & | FormatStatus (xstring &s, int v, const char *prefix="\t") |
| virtual void | ShowRunStatus (const SMTaskRef< StatusLine > &) |
| void | ClearStatus () |
| virtual void | SayFinal () |
| virtual void | Bg () |
| virtual void | Fg () |
| xstring & | FormatJobTitle (xstring &s, int indent=0, const char *suffix=0) |
| xstring & | FormatOneJob (xstring &s, int verbose, int indent=0, const char *suffix=0) |
| xstring & | FormatOneJobRecursively (xstring &s, int verbose, int indent=0) |
| virtual xstring & | FormatJobs (xstring &s, int verbose, int indent=0) |
| void | PrintJobTitle (int indent=0, const char *suffix=0) |
| void | ListOneJob (int verbose, int indent=0, const char *suffix=0) |
| void | ListOneJobRecursively (int verbose, int indent) |
| void | ListDoneJobs () |
| void | BuryDoneJobs () |
| Job * | FindAnyChild () |
| bool | WaitsFor (Job *) |
| bool | CheckForWaitLoop (Job *parent) |
| int | NumAwaitedJobs () |
| Job * | FindDoneAwaitedJob () |
| void | WaitForAllChildren () |
| void | AllWaitingFg () |
| void | Kill (int n) |
| void | SendSig (int n, int sig) |
| void | vfprintf (FILE *file, const char *fmt, va_list v) |
| virtual void | top_vfprintf (FILE *file, const char *fmt, va_list v) |
| void | eprintf (const char *fmt,...) PRINTF_LIKE(2 |
| void void | fprintf (FILE *file, const char *fmt,...) PRINTF_LIKE(3 |
| void void void | printf (const char *fmt,...) PRINTF_LIKE(2 |
| void void void void | perror (const char *) |
| void | puts (const char *) |
| Job () | |
| virtual const char * | GetConnectURL () |
| virtual void | lftpMovesToBackground () |
| virtual off_t | GetBytesCount () |
| virtual double | GetTimeSpent () |
| void | WaitDone () |
Public Member Functions inherited from SMTask | |
| void | Suspend () |
| void | Resume () |
| void | SuspendSlave () |
| void | ResumeSlave () |
| bool | IsSuspended () |
| virtual const char * | GetLogContext () |
| SMTask () | |
| virtual | ~SMTask () |
| void | DeleteLater () |
| void | IncRefCount () |
| void | DecRefCount () |
| int | Roll () |
| void | Enter () |
| void | Leave () |
Additional Inherited Members | |
Static Public Member Functions inherited from Job | |
| static Job * | FindWhoWaitsFor (Job *) |
| static int | NumberOfJobs () |
| static Job * | FindJob (int n) |
| static bool | Running (int n) |
| static void | Kill (Job *) |
| static void | KillAll () |
| static void | Cleanup () |
| static void | lftpMovesToBackground_ToAll () |
Public Attributes inherited from Job | |
| int | jobno |
| Job * | parent |
| xarray< Job * > | waiting |
| xstring | cmdline |
Static Public Attributes inherited from SMTask | |
| static TimeDate | now |
| static SMTask * | current |
Protected Types inherited from SMTask | |
| enum | { STALL =0, MOVED =1, WANTDIE =2 } |
Protected Member Functions inherited from Job | |
| virtual | ~Job () |
Protected Attributes inherited from Job | |
| bool | fg |
| Ref< FgData > | fg_data |
| bool | job_prepared_to_die |
Definition at line 27 of file SysCmdJob.h.
| SysCmdJob::SysCmdJob | ( | const char * | new_cmd) |
Definition at line 33 of file SysCmdJob.cc.
| SysCmdJob::~SysCmdJob | ( | ) |
Definition at line 46 of file SysCmdJob.cc.
|
virtual |
Reimplemented from Job.
Definition at line 91 of file SysCmdJob.cc.
References SMTask::MOVED, SMTask::STALL, and SMTask::WANTDIE.
|
virtual |
Implements Job.
Definition at line 48 of file SysCmdJob.cc.
References _, basename_ptr(), Job::fg, Job::fg_data, Job::fprintf(), xstring0::get(), m, SMTask::MOVED, NULL, SignalHook::RestoreAll(), ProcWait::Signal(), SMTask::STALL, strerror(), and SMTask::TimeoutS().
|
inlinevirtual |
Implements Job.
Definition at line 36 of file SysCmdJob.h.
|
inlinevirtual |
Reimplemented from Job.
Definition at line 38 of file SysCmdJob.h.