NetSurf
Public Member Functions | Private Attributes
NSDownloadWindow Class Reference
Inheritance diagram for NSDownloadWindow:
[legend]
Collaboration diagram for NSDownloadWindow:
[legend]

Public Member Functions

 NSDownloadWindow (download_context *ctx)
 
 ~NSDownloadWindow ()
 
void MessageReceived (BMessage *message)
 
void Progress (int size)
 
void Failure (const char *error)
 
void Success ()
 

Private Attributes

download_contextctx
 
BStatusBar * bar
 
unsigned long progress
 
bool success
 

Detailed Description

Definition at line 39 of file download.cpp.

Constructor & Destructor Documentation

◆ NSDownloadWindow()

NSDownloadWindow::NSDownloadWindow ( download_context ctx)

Definition at line 67 of file download.cpp.

References bar, buffer, ctx, download_context_get_filename(), download_context_get_total_length(), and human_friendly_bytesize().

Here is the call graph for this function:

◆ ~NSDownloadWindow()

NSDownloadWindow::~NSDownloadWindow ( )

Definition at line 100 of file download.cpp.

References ctx, download_context_abort(), and download_context_destroy().

Here is the call graph for this function:

Member Function Documentation

◆ Failure()

void NSDownloadWindow::Failure ( const char *  error)

Definition at line 177 of file download.cpp.

References B_FAILURE_COLOR, bar, and gui_download_window::error.

Referenced by gui_download_window_error().

Here is the caller graph for this function:

◆ MessageReceived()

void NSDownloadWindow::MessageReceived ( BMessage *  message)

◆ Progress()

void NSDownloadWindow::Progress ( int  size)

Definition at line 151 of file download.cpp.

References bar, buffer, human_friendly_bytesize(), progress, and gui_download_window::size.

Referenced by gui_download_window_data().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Success()

void NSDownloadWindow::Success ( )

Definition at line 166 of file download.cpp.

References B_SUCCESS_COLOR, bar, and success.

Referenced by gui_download_window_done().

Here is the caller graph for this function:

Field Documentation

◆ bar

BStatusBar* NSDownloadWindow::bar
private

Definition at line 52 of file download.cpp.

Referenced by Failure(), NSDownloadWindow(), Progress(), and Success().

◆ ctx

download_context* NSDownloadWindow::ctx
private

Definition at line 51 of file download.cpp.

Referenced by NSDownloadWindow(), and ~NSDownloadWindow().

◆ progress

unsigned long NSDownloadWindow::progress
private

Definition at line 53 of file download.cpp.

Referenced by Progress().

◆ success

bool NSDownloadWindow::success
private

Definition at line 54 of file download.cpp.

Referenced by MessageReceived(), and Success().


The documentation for this class was generated from the following file: