Public Member Functions | |
Constructor / Destructor | |
FTP_Application () | |
Constructor. | |
virtual | ~FTP_Application () throw () |
Destructor. | |
Protected Member Functions | |
AboutBox | |
virtual CPLAT::CP_String | GetAboutBoxDescription () const |
Commands | |
virtual void | HandleOpenApplication () |
Protected Attributes | |
CPLAT::CP_Window * | fFTPDisplayWindow |
CPLAT::CP_Socket * | fFTPSocket |
CPLAT::CP_FTP * | fFTPProtocol |
CPLAT::CP_Strings_Array | fDirectoryListingData |
CPLAT::CP_DataSource_Strings * | fDataSource |
Private Types | |
typedef CPLAT::CP_Application< CPLAT::CP_DocumentPolicy_Multi, CPLAT::CP_PrintPolicy_None, CPLAT::CP_UndoPolicy_None > | inherited |
Private Member Functions | |
Commands | |
virtual void | HandleNewUpdateCommandStatusCommand (CPLAT::CP_CommandStatus &inOutCommandStatus, bool &, CPLAT::CP_CommandNo &) |
virtual void | HandleNewCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo) |
Main Window | |
void | Connect (const CPLAT::CP_String &inHostURL, const CPLAT::CP_String &inUser, const CPLAT::CP_String &inPassword) |
void | MainWindow () |
void | UpdateDisplayedDirectoryLabel (const CPLAT::CP_String &inDirectory) |
void | GetSiteDialog () |
void | UpdateDirectoryListing () |
bool | ChangeDirectory (const CPLAT::CP_String &inDirectory) |
Slots | |
void | HandleDismiss (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | HandleCancel (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | RootDirectoryClicked (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | UpDirectoryClicked (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus) |
void | UpdateProgress (CPLAT::CP_DataValueHolder &inDataValue, CPLAT::OSStatus &inOutStatus) |
void | DirectoryListingDoubleClick (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &) |
|
|
|
Constructor.
|
|
Destructor.
|
|
Return the string that describes the purpose of the application in the AboutBox.
|
|
Called when the application is starting up. We take this opportunity to create our initial window and views. In this demo, we create a the main window, and display the go to site dialog.
|
|
Handles the menu/command update status handler for the CP_CMD_New command. We always enable the command, so many windows can be created if desired.
|
|
Override the New command handler to create new windows. Since this application is using a NULL document policy, we don't normally have the New menu item enabled.
|
|
Establish a connection with our FTP server.
|
|
Displays the main window.
|
|
Called when the directory being displayed changes. We update the static text field here with the new directory.
|
|
Present the user with a dialog to specify the ftp site to log onto.
|
|
Updates the current directory listing.
|
|
Changes directory to that of the passed in directory.
|
|
Slot to handle the dismiss button from the GoToFTP site dialog.
|
|
Slot to handle the cancel button from the GoToFTP site dialog. This will just cause the dialog to go away.
|
|
Slot called when the user clicks on a root directory in the main windows list of displayed directories.
|
|
Slot called when the user clicks on the up directory button to go to a higher directory.
|
|
Updates the progress dispayed to indicate what the FTP class is doing.
|
|
Called when the user double clicks on one of the directory listing items in the main table displaying the contents of a directory.
|
|
|
|
|
|
|
|
|
|
|