summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/sambafile.cpp
diff options
context:
space:
mode:
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;
}