ProgressWindow Class Reference

Displays a window containing the progress of downloads. This also allows the user to pause/force the start of items in queue. More...

#include <progresswindow.h>

List of all members.

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
MainWindowm_pcMainWindow
AppSettingsm_pcSettings


Detailed Description

Displays a window containing the progress of downloads. This also allows the user to pause/force the start of items in queue.

Todo:
When this window is closed it closes the whole program. It should just hide until the Terminate method is called.


Constructor & Destructor Documentation

ProgressWindow::ProgressWindow ( MainWindow mainWindow,
AppSettings pcSettings 
)

Progress Window.

Todo:
Must change the panels so that when the window is resized, the ListView is resized as well.
Todo:
Need to set up the ListView so that it's scroll bars will become visible when necessary.


Member Function Documentation

void ProgressWindow::HandleMessage ( os::Message *  pcMessage  ) 

Window Message Handler. Handles messages sent to the window.

Parameters:
pcMessage The messages being sent.

void ProgressWindow::SendPauseMessage ( os::Message *  pcMsg  ) 

Send a pause message for the current download to the main window.

Parameters:
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.

Parameters:
psUpdate The pointer to the update structure for the new list of transfers.


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 17:23:27 2009 for Transferrer by  doxygen 1.5.1