#include <settings.h>
Public Member Functions | |
bool | GetPassive () |
Return if the connection is passive. Returns the value for the setting 'passive' or true if it isn't found. | |
status_t | SetPassive (bool bPassive) |
Set the value for passive. | |
int | GetMaxConnections () |
Return the maximum number of connections. This returns the maximum number of allowable connections or 2 by default. | |
status_t | SetMaxConnections (int nMax) |
Set the maximum number of connections. | |
bool | GetSaveHistory () |
Return the value of the save_history option. Returns the value of the save_history option or true if it doesn't exist. | |
status_t | SetSaveHistory (bool bSave) |
Set the value for the save_history option. | |
Rect | GetMainWindowFrame () |
Get the saved main window position. Returns the saved size & position of the main window, if any; returns Rect(0,0,0,0) if no position is saved. | |
status_t | SetMainWindowFrame (const Rect &cFrame) |
Save the main window position. Saves the size & position of the main window. | |
Rect | GetProgressWindowFrame () |
Get the saved progress window position. Returns the saved size & position of the progress window, if any; returns Rect(0,0,0,0) if no position is saved. | |
status_t | SetProgressWindowFrame (const Rect &cFrame) |
Save the progress window position. Saves the size & position of the progress window. | |
bool | GetDebugMode () |
Get debug mode setting. If true, we should print extra information for debugging, and set libcurl to use verbose mode. | |
status_t | SetDebugMode (bool bDebug) |
Set debug mode setting. See GetDebugMode(). |
status_t AppSettings::SetPassive | ( | bool | bPassive | ) | [inline] |
Set the value for passive.
bPassive | Whether or not this is a passive connection. |
status_t AppSettings::SetMaxConnections | ( | int | nMax | ) | [inline] |
Set the maximum number of connections.
nMax | The maximum number of connections to allow at one time. |
status_t AppSettings::SetSaveHistory | ( | bool | bSave | ) | [inline] |
Set the value for the save_history option.
bSave | Value to set the save_history option to. |