summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/sambafile.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/sambafile.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/sambafile.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/sambafile.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/sambafile.cpp b/filesharing/advanced/kcm_sambaconf/sambafile.cpp
index 63795a12..2ba52a57 100644
--- a/filesharing/advanced/kcm_sambaconf/sambafile.cpp
+++ b/filesharing/advanced/kcm_sambaconf/sambafile.cpp
@@ -115,7 +115,7 @@ TQString SambaFile::findShareByPath(const TQString & path) const
{
SambaShare* share = it.current();
- TQString *s = share->tqfind("path");
+ TQString *s = share->find("path");
if (s) {
KURL curUrl(*s);
curUrl.adjustPath(-1);
@@ -222,7 +222,7 @@ TQString SambaFile::getUnusedName(const TQString alreadyUsedName) const
int i = 2;
- while (_sambaConfig->tqfind(s))
+ while (_sambaConfig->find(s))
{
s = init+TQString::number(i);
i++;
@@ -235,7 +235,7 @@ TQString SambaFile::getUnusedName(const TQString alreadyUsedName) const
SambaShare* SambaFile::newShare(const TQString & name)
{
- if (_sambaConfig->tqfind(name))
+ if (_sambaConfig->find(name))
return 0L;
SambaShare* share = new SambaShare(name,_sambaConfig);
@@ -293,7 +293,7 @@ void SambaFile::removeShareByPath(const TQString & path) {
/** No descriptions */
SambaShare* SambaFile::getShare(const TQString & share) const
{
- SambaShare *s = _sambaConfig->tqfind(share);
+ SambaShare *s = _sambaConfig->find(share);
return s;
}
@@ -353,7 +353,7 @@ int SambaFile::getSambaVersion() {
if (testParam.start(KProcess::Block,KProcess::Stdout)) {
- if (_parmOutput.tqfind("3") > -1)
+ if (_parmOutput.find("3") > -1)
_sambaVersion = 3;
}
@@ -434,7 +434,7 @@ void SambaFile::parseParmStdOutput()
// parameter
// parameter
- int i = line.tqfind('=');
+ int i = line.find('=');
if (i>-1) {
TQString name = line.left(i).stripWhiteSpace();
@@ -564,7 +564,7 @@ bool SambaFile::openFile() {
}
// parameter
- int i = completeLine.tqfind('=');
+ int i = completeLine.find('=');
if (i>-1)
{
@@ -604,7 +604,7 @@ bool SambaFile::saveTo(const TQString & path)
for ( TQStringList::Iterator it = shareList.begin(); it != shareList.end(); ++it )
{
- SambaShare* share = _sambaConfig->tqfind(*it);
+ SambaShare* share = _sambaConfig->find(*it);
// First add all comments of the share to the file
TQStringList comments = share->getComments();
@@ -637,7 +637,7 @@ bool SambaFile::saveTo(const TQString & path)
}
// Add the option
- s << *optionIt << " = " << *share->tqfind(*optionIt) << endl;
+ s << *optionIt << " = " << *share->find(*optionIt) << endl;
}