diff options
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/sambashare.cpp')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/sambashare.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/sambashare.cpp b/filesharing/advanced/kcm_sambaconf/sambashare.cpp index a2c58565..5c9c69ed 100644 --- a/filesharing/advanced/kcm_sambaconf/sambashare.cpp +++ b/filesharing/advanced/kcm_sambaconf/sambashare.cpp @@ -58,8 +58,8 @@ bool SambaShare::setName(const TQString & name, bool testWetherExists) { if ( testWetherExists && - _sambaFile->find(name) && - _sambaFile->find(name) != this) + _sambaFile->tqfind(name) && + _sambaFile->tqfind(name) != this) return false; _name = name; @@ -82,7 +82,7 @@ TQString SambaShare::getValue(const TQString & name, bool globalValue, bool defa { TQString synonym = getSynonym(name); - TQString* str = find(synonym); + TQString* str = tqfind(synonym); TQString ret; if (str) { @@ -113,7 +113,7 @@ TQString SambaShare::getGlobalValue(const TQString & name, bool defaultValue) if (!_sambaFile) return getValue(name,false,defaultValue); - SambaShare* globals = _sambaFile->find("global"); + SambaShare* globals = _sambaFile->tqfind("global"); TQString s = globals->getValue(name,false,defaultValue); @@ -139,12 +139,12 @@ TQString SambaShare::getSynonym(const TQString & name) const if (lname == "allow hosts") return "hosts allow"; if (lname == "auto services") return "preload"; if (lname == "casesignames") return "case sensitive"; - if (lname == "create mode") return "create mask"; + if (lname == "create mode") return "create tqmask"; if (lname == "debuglevel") return "log level"; if (lname == "default") return "default service"; if (lname == "deny hosts") return "hosts deny"; if (lname == "directory") return "path"; - if (lname == "directory mode") return "directory mask"; + if (lname == "directory mode") return "directory tqmask"; if (lname == "exec") return "preexec"; if (lname == "group") return "force group"; if (lname == "lock dir") return "lock directory"; @@ -219,12 +219,12 @@ void SambaShare::setValue(const TQString & name, const TQString & value, bool gl } - if (!find(synonym)) + if (!tqfind(synonym)) { _optionList.append(synonym); } - replace(synonym,new TQString(newValue)); + tqreplace(synonym,new TQString(newValue)); } void SambaShare::setValue(const TQString & name, bool value, bool globalValue, bool defaultValue) @@ -266,7 +266,7 @@ void SambaShare::setComments(const TQString & name, const TQStringList & comment TQString synonym = getSynonym(name); - _commentList.replace(name,new TQStringList(commentList)); + _commentList.tqreplace(name,new TQStringList(commentList)); } /** @@ -274,7 +274,7 @@ void SambaShare::setComments(const TQString & name, const TQStringList & comment **/ TQStringList SambaShare::getComments(const TQString & name) { - TQStringList* list = _commentList.find(getSynonym(name)); + TQStringList* list = _commentList.tqfind(getSynonym(name)); if (list) return TQStringList(*list); @@ -285,7 +285,7 @@ TQStringList SambaShare::getComments(const TQString & name) bool SambaShare::hasComments(const TQString & name) { - return 0L != _commentList.find(getSynonym(name)); + return 0L != _commentList.tqfind(getSynonym(name)); } /** @@ -316,10 +316,10 @@ TQStringList SambaShare::getOptionList() **/ bool SambaShare::isPrinter() { - TQString* str = find("printable"); + TQString* str = tqfind("printable"); if (!str) - str = find("print ok"); + str = tqfind("print ok"); return str!=0; } |