Fix style on inline methods in PoorMan.

This commit is contained in:
Alex Wilson
2012-07-16 14:59:36 +12:00
parent c5a09a88e9
commit 0a96da93d1
3 changed files with 136 additions and 60 deletions
+28 -10
View File
@@ -19,22 +19,40 @@ public:
PoorManLoggingView(const char* name); PoorManLoggingView(const char* name);
void SetLogConsoleValue(bool state) void SetLogConsoleValue(bool state)
{ if (state) {
if (state)
fLogConsole->SetValue(B_CONTROL_ON); fLogConsole->SetValue(B_CONTROL_ON);
else fLogConsole->SetValue(B_CONTROL_OFF); } else
fLogConsole->SetValue(B_CONTROL_OFF);
}
bool LogConsoleValue() bool LogConsoleValue()
{ return (fLogConsole->Value() == B_CONTROL_ON) {
? true : false; } return (fLogConsole->Value() == B_CONTROL_ON);
}
void SetLogFileValue(bool state) void SetLogFileValue(bool state)
{ if (state) fLogFile->SetValue(B_CONTROL_ON); {
else fLogFile->SetValue(B_CONTROL_OFF); } if (state)
fLogFile->SetValue(B_CONTROL_ON);
else
fLogFile->SetValue(B_CONTROL_OFF);
}
bool LogFileValue() bool LogFileValue()
{ return (fLogFile->Value() == B_CONTROL_ON) {
? true : false; } return (fLogFile->Value() == B_CONTROL_ON);
}
const char* LogFileName() const char* LogFileName()
{ return fLogFileName->Text(); } {
return fLogFileName->Text();
}
void SetLogFileName(const char* log) void SetLogFileName(const char* log)
{ fLogFileName->SetText(log); } {
fLogFileName->SetText(log);
}
private: private:
// Logging Tab // Logging Tab
+26 -8
View File
@@ -19,19 +19,37 @@ 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)
fSendDir->SetValue(B_CONTROL_ON);
else
fSendDir->SetValue(B_CONTROL_OFF);
}
bool SendDirValue() bool SendDirValue()
{ return (fSendDir->Value() == B_CONTROL_ON) {
? true : false; } return (fSendDir->Value() == B_CONTROL_ON);
}
const char* IndexFileName() const char* IndexFileName()
{ return fIndexFileName->Text(); } {
return fIndexFileName->Text();
}
void SetIndexFileName(const char* name) void SetIndexFileName(const char* name)
{ fIndexFileName->SetText(name); } {
fIndexFileName->SetText(name);
}
const char* WebDir() const char* WebDir()
{ return fWebDir->Text(); } {
return fWebDir->Text();
}
void SetWebDir(const char* dir) void SetWebDir(const char* dir)
{ fWebDir->SetText(dir); } {
fWebDir->SetText(dir);
}
private: private:
// Site Tab // Site Tab
+53 -13
View File
@@ -61,34 +61,74 @@ public:
// Preferences and Settings // Preferences and Settings
// Site Tab // Site Tab
bool DirListFlag() bool DirListFlag()
{ return fDirListFlag; } {
return fDirListFlag;
}
void SetDirListFlag(bool flag) void SetDirListFlag(bool flag)
{ fDirListFlag = flag; } {
fDirListFlag = flag;
}
const char* IndexFileName() const char* IndexFileName()
{ return fIndexFileName.String(); } {
return fIndexFileName.String();
}
void SetIndexFileName(const char* str) void SetIndexFileName(const char* str)
{ fIndexFileName.SetTo(str); } {
fIndexFileName.SetTo(str);
}
const char* WebDir() const char* WebDir()
{ return fWebDirectory.String(); } {
return fWebDirectory.String();
}
void SetWebDir(const char* str) void SetWebDir(const char* str)
{ fWebDirectory.SetTo(str); } {
fWebDirectory.SetTo(str);
}
// Logging Tab // Logging Tab
bool LogConsoleFlag() bool LogConsoleFlag()
{ return fLogConsoleFlag; } {
return fLogConsoleFlag;
}
void SetLogConsoleFlag(bool flag) void SetLogConsoleFlag(bool flag)
{ fLogConsoleFlag = flag; } {
fLogConsoleFlag = flag;
}
bool LogFileFlag() bool LogFileFlag()
{ return fLogFileFlag; } {
return fLogFileFlag;
}
void SetLogFileFlag(bool flag) void SetLogFileFlag(bool flag)
{ fLogFileFlag = flag; } {
fLogFileFlag = flag;
}
const char* LogPath() const char* LogPath()
{ return fLogPath.String(); } {
return fLogPath.String();
}
void SetLogPath(const char* str); void SetLogPath(const char* str);
// Advanced Tab // Advanced Tab
int16 MaxConnections() int16 MaxConnections()
{ return fMaxConnections; } {
return fMaxConnections;
}
void SetMaxConnections(int16 num) void SetMaxConnections(int16 num)
{ fMaxConnections = num; } {
fMaxConnections = num;
}
private: private:
// ------------------------------------------- // -------------------------------------------