summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/sambashare.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit937b2991d8e78166eea904c80ad04d34607017a4 (patch)
tree2accb8161eab09df5d7a5484ea9ea080ad123168 /filesharing/advanced/kcm_sambaconf/sambashare.cpp
parentdba26cb985af370c33d1767037851705cc561726 (diff)
downloadtdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz
tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}