#include <progresswindow.h>
Public Member Functions | |
ProgressWindow (MainWindow *mainWindow, AppSettings *pcSettings) | |
Progress Window. | |
void | HandleMessage (os::Message *) |
Window Message Handler. Handles messages sent to the window. | |
bool | OkToQuit (void) |
void | SendPauseMessage (os::Message *pcMsg) |
void | SendResumeMessage (os::Message *pcMsg) |
void | SendCancelMessage (os::Message *pcMsg) |
void | OpenContextMenu (const Point &cPos, int nID) |
Private Member Functions | |
void | UpdateTransfers (Message *psUpdate) |
Update Transfers. This function takes in the updated list of files being transfered and clears the list view. It then updates it with the new list of transfer files. | |
Private Attributes | |
os::VLayoutNode * | m_pcRoot |
os::StatusBar * | m_pcStatusBar |
os::ListView * | m_pcListView |
MainWindow * | m_pcMainWindow |
AppSettings * | m_pcSettings |
ProgressWindow::ProgressWindow | ( | MainWindow * | mainWindow, | |
AppSettings * | pcSettings | |||
) |
void ProgressWindow::HandleMessage | ( | os::Message * | pcMessage | ) |
Window Message Handler. Handles messages sent to the window.
pcMessage | The messages being sent. |
void ProgressWindow::SendPauseMessage | ( | os::Message * | pcMsg | ) |
Send a pause message for the current download to the main window.
pcMsg,: | The message from the GUI. If this is from the context menu, it contains a transfer id as the parameter 'id'. |
void ProgressWindow::SendResumeMessage | ( | os::Message * | pcMsg | ) |
Send a resume message for the current download to the main window.
void ProgressWindow::SendCancelMessage | ( | os::Message * | pcMsg | ) |
Send a cancel message for the current download to the main window.
void ProgressWindow::UpdateTransfers | ( | Message * | pcMessage | ) | [private] |
Update Transfers. This function takes in the updated list of files being transfered and clears the list view. It then updates it with the new list of transfer files.
psUpdate | The pointer to the update structure for the new list of transfers. |