00001 #ifndef __SETTINGS_H__
00002 #define __SETTINGS_H__
00003
00004 #include <util/settings.h>
00005
00006 using namespace os;
00007
00013 class FTPSettings : public Settings
00014 {
00015 public:
00016
00020 bool GetPassive()
00021 {
00022 return( GetBool( "passive", true ) );
00023 }
00024
00028 status_t SetPassive( bool bPassive )
00029 {
00030 return( SetBool( "passive", bPassive ) );
00031 }
00032
00036 int GetMaxConnections()
00037 {
00038 return( GetInt32( "max_connections", 2 ) );
00039 }
00040
00045 status_t SetMaxConnections( int nMax )
00046 {
00047 return( SetInt32( "max_connections", nMax ) );
00048 }
00049
00053 bool GetSaveHistory()
00054 {
00055 return( GetBool( "save_history", true ) );
00056 }
00057
00061 status_t SetSaveHistory( bool bSave )
00062 {
00063 return( SetBool( "save_history", bSave ) );
00064 }
00065 };
00066
00067
00068 #endif
00069