summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/sambashare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/sambashare.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/sambashare.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/sambashare.cpp b/filesharing/advanced/kcm_sambaconf/sambashare.cpp
index 5c9c69ed..c4f02af9 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->tqfind(name) &&
- _sambaFile->tqfind(name) != this)
+ _sambaFile->find(name) &&
+ _sambaFile->find(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 = tqfind(synonym);
+ TQString* str = find(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->tqfind("global");
+ SambaShare* globals = _sambaFile->find("global");
TQString s = globals->getValue(name,false,defaultValue);
@@ -219,12 +219,12 @@ void SambaShare::setValue(const TQString & name, const TQString & value, bool gl
}
- if (!tqfind(synonym))
+ if (!find(synonym))
{
_optionList.append(synonym);
}
- tqreplace(synonym,new TQString(newValue));
+ replace(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.tqreplace(name,new TQStringList(commentList));
+ _commentList.replace(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.tqfind(getSynonym(name));
+ TQStringList* list = _commentList.find(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.tqfind(getSynonym(name));
+ return 0L != _commentList.find(getSynonym(name));
}
/**
@@ -316,10 +316,10 @@ TQStringList SambaShare::getOptionList()
**/
bool SambaShare::isPrinter()
{
- TQString* str = tqfind("printable");
+ TQString* str = find("printable");
if (!str)
- str = tqfind("print ok");
+ str = find("print ok");
return str!=0;
}