diff options
Diffstat (limited to 'smb4k/core/smb4kfileio.cpp')
-rw-r--r-- | smb4k/core/smb4kfileio.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/smb4k/core/smb4kfileio.cpp b/smb4k/core/smb4kfileio.cpp index 1a365a3..c8f59de 100644 --- a/smb4k/core/smb4kfileio.cpp +++ b/smb4k/core/smb4kfileio.cpp @@ -26,7 +26,7 @@ // TQt includes #include <tqdir.h> #include <tqfile.h> -#include <tqtextstream.h> +#include <textstream.h> // KDE includes #include <kapplication.h> @@ -221,7 +221,7 @@ bool Smb4KFileIO::writeSudoers( Smb4KFileIO::Operation operation ) { contents.append( "# Entries for Smb4K users." ); contents.append( "# Generated by Smb4K. Please do not modify!" ); - contents.append( "User_Alias\tSMB4KUSERS = "+TQString( "%1" ).tqarg( getpwuid( getuid() )->pw_name ) ); + contents.append( "User_Alias\tSMB4KUSERS = "+TQString( "%1" ).arg( getpwuid( getuid() )->pw_name ) ); contents.append( "Defaults:SMB4KUSERS\tenv_keep += \"PASSWD USER\"" ); contents.append( "SMB4KUSERS\t"+hostname+" = NOPASSWD: "+Smb4KSettings::smb4k_kill() ); contents.append( "SMB4KUSERS\t"+hostname+" = NOPASSWD: "+Smb4KSettings::smb4k_umount() ); @@ -563,7 +563,7 @@ bool Smb4KFileIO::writeSuperTab( Smb4KFileIO::Operation operation ) { contents.append( "# Entries for Smb4K users." ); contents.append( "# Generated by Smb4K. Please do not modify!" ); - contents.append( ":define Smb4KUsers "+TQString( "%1" ).tqarg( getpwuid( getuid() )->pw_name ) ); + contents.append( ":define Smb4KUsers "+TQString( "%1" ).arg( getpwuid( getuid() )->pw_name ) ); #ifndef __FreeBSD__ contents.append( "smb4k_kill\t"+Smb4KSettings::smb4k_kill()+ "\t$(Smb4KUsers)\tuid=root\tgid=root" ); @@ -937,7 +937,7 @@ bool Smb4KFileIO::createLockFile( const TQString &filename ) } else { - contents << TQString( "%1:%2" ).tqarg( getpwuid( getuid() )->pw_name ).tqarg( filename ); + contents << TQString( "%1:%2" ).arg( getpwuid( getuid() )->pw_name ).arg( filename ); TQCString out = contents.join( "\n" ).local8Bit(); if ( write( file_descriptor, out, out.length() ) == -1 ) @@ -1224,7 +1224,7 @@ void Smb4KFileIO::processSudoers() { contents.append( "# Entries for Smb4K users." ); contents.append( "# Generated by Smb4K. Please do not modify!" ); - contents.append( "User_Alias\tSMB4KUSERS = "+TQString( "%1" ).tqarg( getpwuid( getuid() )->pw_name ) ); + contents.append( "User_Alias\tSMB4KUSERS = "+TQString( "%1" ).arg( getpwuid( getuid() )->pw_name ) ); contents.append( "Defaults:SMB4KUSERS\tenv_keep += \"PASSWD USER\"" ); contents.append( "SMB4KUSERS\t"+hostname+" = NOPASSWD: "+Smb4KSettings::smb4k_kill() ); contents.append( "SMB4KUSERS\t"+hostname+" = NOPASSWD: "+Smb4KSettings::smb4k_umount() ); @@ -1403,10 +1403,10 @@ void Smb4KFileIO::processSudoers() return; } - TQString perms = TQString( "%1" ).tqarg( (int)file_stat.st_mode, 0, 8 ); + TQString perms = TQString( "%1" ).arg( (int)file_stat.st_mode, 0, 8 ); perms = perms.right( 4 ); - TQString owner = TQString( "%1" ).tqarg( (int)file_stat.st_uid ); - TQString group = TQString( "%1" ).tqarg( (int)file_stat.st_gid ); + TQString owner = TQString( "%1" ).arg( (int)file_stat.st_uid ); + TQString group = TQString( "%1" ).arg( (int)file_stat.st_gid ); TQString temp_file_name = TQString( tmp ); // Assemble the command. @@ -1476,7 +1476,7 @@ void Smb4KFileIO::processSuperTab() { contents.append( "# Entries for Smb4K users." ); contents.append( "# Generated by Smb4K. Please do not modify!" ); - contents.append( ":define Smb4KUsers "+TQString( "%1" ).tqarg( getpwuid( getuid() )->pw_name ) ); + contents.append( ":define Smb4KUsers "+TQString( "%1" ).arg( getpwuid( getuid() )->pw_name ) ); #ifndef __FreeBSD__ contents.append( "smb4k_kill\t"+Smb4KSettings::smb4k_kill()+ "\t$(Smb4KUsers)\tuid=root\tgid=root" ); @@ -1666,10 +1666,10 @@ void Smb4KFileIO::processSuperTab() return; } - TQString perms = TQString( "%1" ).tqarg( (int)file_stat.st_mode, 0, 8 ); + TQString perms = TQString( "%1" ).arg( (int)file_stat.st_mode, 0, 8 ); perms = perms.right( 4 ); - TQString owner = TQString( "%1" ).tqarg( (int)file_stat.st_uid ); - TQString group = TQString( "%1" ).tqarg( (int)file_stat.st_gid ); + TQString owner = TQString( "%1" ).arg( (int)file_stat.st_uid ); + TQString group = TQString( "%1" ).arg( (int)file_stat.st_gid ); TQString temp_file_name = TQString( tmp ); // Assemble the command. |