diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:48:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:48:31 -0600 |
commit | c48e769eb275917717e2b55eb869f7e559293ac8 (patch) | |
tree | 8f650b907e21c918b826f854dbe1c8174cc2c0c6 /filesharing/advanced/kcm_sambaconf/smbpasswdfile.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/advanced/kcm_sambaconf/smbpasswdfile.cpp')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp index 8286cdf3..50bf2713 100644 --- a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp @@ -112,15 +112,15 @@ SambaUserList SmbPasswdFile::getSambaUserList() } bool SmbPasswdFile::executeSmbpasswd(const TQStringList & args) { - KProcess p; + TDEProcess p; p << "smbpasswd" << args; - connect( &p, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), - this, TQT_SLOT(smbpasswdStdOutReceived(KProcess*,char*,int))); + connect( &p, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), + this, TQT_SLOT(smbpasswdStdOutReceived(TDEProcess*,char*,int))); _smbpasswdOutput = ""; - bool result = p.start(KProcess::Block,KProcess::Stdout); + bool result = p.start(TDEProcess::Block,TDEProcess::Stdout); if (result) { @@ -136,17 +136,17 @@ bool SmbPasswdFile::executeSmbpasswd(const TQStringList & args) { **/ bool SmbPasswdFile::addUser(const SambaUser & user,const TQString & password) { - KProcess p; + TDEProcess p; p << "smbpasswd" << "-a" << user.name; p << password; - connect( &p, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), - this, TQT_SLOT(smbpasswdStdOutReceived(KProcess*,char*,int))); + connect( &p, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), + this, TQT_SLOT(smbpasswdStdOutReceived(TDEProcess*,char*,int))); _smbpasswdOutput = ""; - bool result = p.start(KProcess::Block,KProcess::Stdout); + bool result = p.start(TDEProcess::Block,TDEProcess::Stdout); if (result) { @@ -173,7 +173,7 @@ bool SmbPasswdFile::changePassword(const SambaUser & user, const TQString & newP } -void SmbPasswdFile::smbpasswdStdOutReceived(KProcess *, char *buffer, int buflen) +void SmbPasswdFile::smbpasswdStdOutReceived(TDEProcess *, char *buffer, int buflen) { _smbpasswdOutput+=TQString::fromLatin1(buffer,buflen); } |