AppSettings Class Reference

Stores the user's settings for the app. This is used to create a settings file for the app. See os::Settings. More...

#include <settings.h>

List of all members.

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().


Detailed Description

Stores the user's settings for the app. This is used to create a settings file for the app. See os::Settings.


Member Function Documentation

status_t AppSettings::SetPassive ( bool  bPassive  )  [inline]

Set the value for passive.

Parameters:
bPassive Whether or not this is a passive connection.

status_t AppSettings::SetMaxConnections ( int  nMax  )  [inline]

Set the maximum number of connections.

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

Parameters:
bSave Value to set the save_history option to.


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