Fix style on inline methods in PoorMan.
This commit is contained in:
@@ -18,23 +18,41 @@ class PoorManLoggingView: public BView {
|
|||||||
public:
|
public:
|
||||||
PoorManLoggingView(const char* name);
|
PoorManLoggingView(const char* name);
|
||||||
|
|
||||||
void SetLogConsoleValue(bool state)
|
void SetLogConsoleValue(bool state)
|
||||||
{ if (state)
|
{
|
||||||
fLogConsole->SetValue(B_CONTROL_ON);
|
if (state)
|
||||||
else fLogConsole->SetValue(B_CONTROL_OFF); }
|
fLogConsole->SetValue(B_CONTROL_ON);
|
||||||
bool LogConsoleValue()
|
else
|
||||||
{ return (fLogConsole->Value() == B_CONTROL_ON)
|
fLogConsole->SetValue(B_CONTROL_OFF);
|
||||||
? true : false; }
|
}
|
||||||
void SetLogFileValue(bool state)
|
|
||||||
{ if (state) fLogFile->SetValue(B_CONTROL_ON);
|
bool LogConsoleValue()
|
||||||
else fLogFile->SetValue(B_CONTROL_OFF); }
|
{
|
||||||
bool LogFileValue()
|
return (fLogConsole->Value() == B_CONTROL_ON);
|
||||||
{ return (fLogFile->Value() == B_CONTROL_ON)
|
}
|
||||||
? true : false; }
|
|
||||||
const char* LogFileName()
|
void SetLogFileValue(bool state)
|
||||||
{ return fLogFileName->Text(); }
|
{
|
||||||
void SetLogFileName(const char* log)
|
if (state)
|
||||||
{ fLogFileName->SetText(log); }
|
fLogFile->SetValue(B_CONTROL_ON);
|
||||||
|
else
|
||||||
|
fLogFile->SetValue(B_CONTROL_OFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool LogFileValue()
|
||||||
|
{
|
||||||
|
return (fLogFile->Value() == B_CONTROL_ON);
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* LogFileName()
|
||||||
|
{
|
||||||
|
return fLogFileName->Text();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetLogFileName(const char* log)
|
||||||
|
{
|
||||||
|
fLogFileName->SetText(log);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Logging Tab
|
// Logging Tab
|
||||||
|
|||||||
@@ -18,20 +18,38 @@ class PoorManSiteView: public BView {
|
|||||||
public:
|
public:
|
||||||
PoorManSiteView(const char *name);
|
PoorManSiteView(const char *name);
|
||||||
|
|
||||||
void SetSendDirValue(bool state)
|
void SetSendDirValue(bool state)
|
||||||
{ if (state) fSendDir->SetValue(B_CONTROL_ON);
|
{
|
||||||
else fSendDir->SetValue(B_CONTROL_OFF); }
|
if (state)
|
||||||
bool SendDirValue()
|
fSendDir->SetValue(B_CONTROL_ON);
|
||||||
{ return (fSendDir->Value() == B_CONTROL_ON)
|
else
|
||||||
? true : false; }
|
fSendDir->SetValue(B_CONTROL_OFF);
|
||||||
const char* IndexFileName()
|
}
|
||||||
{ return fIndexFileName->Text(); }
|
|
||||||
void SetIndexFileName(const char* name)
|
bool SendDirValue()
|
||||||
{ fIndexFileName->SetText(name); }
|
{
|
||||||
const char* WebDir()
|
return (fSendDir->Value() == B_CONTROL_ON);
|
||||||
{ return fWebDir->Text(); }
|
}
|
||||||
void SetWebDir(const char* dir)
|
|
||||||
{ fWebDir->SetText(dir); }
|
const char* IndexFileName()
|
||||||
|
{
|
||||||
|
return fIndexFileName->Text();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetIndexFileName(const char* name)
|
||||||
|
{
|
||||||
|
fIndexFileName->SetText(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* WebDir()
|
||||||
|
{
|
||||||
|
return fWebDir->Text();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetWebDir(const char* dir)
|
||||||
|
{
|
||||||
|
fWebDir->SetText(dir);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Site Tab
|
// Site Tab
|
||||||
|
|||||||
@@ -60,35 +60,75 @@ public:
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
// Preferences and Settings
|
// Preferences and Settings
|
||||||
// Site Tab
|
// Site Tab
|
||||||
bool DirListFlag()
|
bool DirListFlag()
|
||||||
{ return fDirListFlag; }
|
{
|
||||||
void SetDirListFlag(bool flag)
|
return fDirListFlag;
|
||||||
{ fDirListFlag = flag; }
|
}
|
||||||
const char* IndexFileName()
|
|
||||||
{ return fIndexFileName.String(); }
|
void SetDirListFlag(bool flag)
|
||||||
void SetIndexFileName(const char* str)
|
{
|
||||||
{ fIndexFileName.SetTo(str); }
|
fDirListFlag = flag;
|
||||||
const char* WebDir()
|
}
|
||||||
{ return fWebDirectory.String(); }
|
|
||||||
void SetWebDir(const char* str)
|
const char* IndexFileName()
|
||||||
{ fWebDirectory.SetTo(str); }
|
{
|
||||||
// Logging Tab
|
return fIndexFileName.String();
|
||||||
bool LogConsoleFlag()
|
}
|
||||||
{ return fLogConsoleFlag; }
|
|
||||||
void SetLogConsoleFlag(bool flag)
|
void SetIndexFileName(const char* str)
|
||||||
{ fLogConsoleFlag = flag; }
|
{
|
||||||
bool LogFileFlag()
|
fIndexFileName.SetTo(str);
|
||||||
{ return fLogFileFlag; }
|
}
|
||||||
void SetLogFileFlag(bool flag)
|
|
||||||
{ fLogFileFlag = flag; }
|
const char* WebDir()
|
||||||
const char* LogPath()
|
{
|
||||||
{ return fLogPath.String(); }
|
return fWebDirectory.String();
|
||||||
void SetLogPath(const char* str);
|
}
|
||||||
// Advanced Tab
|
|
||||||
int16 MaxConnections()
|
void SetWebDir(const char* str)
|
||||||
{ return fMaxConnections; }
|
{
|
||||||
void SetMaxConnections(int16 num)
|
fWebDirectory.SetTo(str);
|
||||||
{ fMaxConnections = num; }
|
}
|
||||||
|
|
||||||
|
// Logging Tab
|
||||||
|
|
||||||
|
bool LogConsoleFlag()
|
||||||
|
{
|
||||||
|
return fLogConsoleFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetLogConsoleFlag(bool flag)
|
||||||
|
{
|
||||||
|
fLogConsoleFlag = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool LogFileFlag()
|
||||||
|
{
|
||||||
|
return fLogFileFlag;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetLogFileFlag(bool flag)
|
||||||
|
{
|
||||||
|
fLogFileFlag = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* LogPath()
|
||||||
|
{
|
||||||
|
return fLogPath.String();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetLogPath(const char* str);
|
||||||
|
|
||||||
|
// Advanced Tab
|
||||||
|
int16 MaxConnections()
|
||||||
|
{
|
||||||
|
return fMaxConnections;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetMaxConnections(int16 num)
|
||||||
|
{
|
||||||
|
fMaxConnections = num;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user