diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:48:31 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:48:31 -0600 |
commit | c48e769eb275917717e2b55eb869f7e559293ac8 (patch) | |
tree | 8f650b907e21c918b826f854dbe1c8174cc2c0c6 /filesharing/simple/fileshare.cpp | |
parent | 8011d84f483f3628f3f04ea5cb2c1c3c86b2dba7 (diff) | |
download | tdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.tar.gz tdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'filesharing/simple/fileshare.cpp')
-rw-r--r-- | filesharing/simple/fileshare.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp index 5b796823..15007fdb 100644 --- a/filesharing/simple/fileshare.cpp +++ b/filesharing/simple/fileshare.cpp @@ -63,7 +63,7 @@ K_EXPORT_COMPONENT_FACTORY (kcm_fileshare, ShareFactory("kcmfileshare") ) KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQStringList &): KCModule(ShareFactory::instance(), parent, name) { - KGlobal::locale()->insertCatalogue("kfileshare"); + TDEGlobal::locale()->insertCatalogue("kfileshare"); TQBoxLayout* layout = new TQVBoxLayout(this,0, KDialog::spacingHint()); @@ -221,18 +221,18 @@ void KFileShareConfig::load() } bool KFileShareConfig::addGroupAccessesToFile(const TQString & file) { - KProcess chgrp; + TDEProcess chgrp; chgrp << "chgrp" << m_fileShareGroup << file; - KProcess chmod; + TDEProcess chmod; chmod << "chmod" << "g=rw" << file; - if (!chgrp.start(KProcess::Block) && chgrp.normalExit()) { + if (!chgrp.start(TDEProcess::Block) && chgrp.normalExit()) { kdDebug(FILESHARE_DEBUG) << "KFileShareConfig::addGroupAccessesToFile: chgrp failed" << endl; return false; } - if(!chmod.start(KProcess::Block) && chmod.normalExit()) { + if(!chmod.start(TDEProcess::Block) && chmod.normalExit()) { kdDebug(FILESHARE_DEBUG) << "KFileShareConfig::addGroupAccessesToFile: chmod failed" << endl; return false; } @@ -242,18 +242,18 @@ bool KFileShareConfig::addGroupAccessesToFile(const TQString & file) { } bool KFileShareConfig::removeGroupAccessesFromFile(const TQString & file) { - KProcess chgrp; + TDEProcess chgrp; chgrp << "chgrp" << "root" << file; - KProcess chmod; + TDEProcess chmod; chmod << "chmod" << "g=r" << file; - if (!chgrp.start(KProcess::Block) && chgrp.normalExit()) { + if (!chgrp.start(TDEProcess::Block) && chgrp.normalExit()) { kdDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeGroupAccessesFromFile: chgrp failed" << endl; return false; } - if(!chmod.start(KProcess::Block) && chmod.normalExit()) { + if(!chmod.start(TDEProcess::Block) && chmod.normalExit()) { kdDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeGroupAccessesFromFile: chmod failed" << endl; return false; } |