summaryrefslogtreecommitdiffstats
path: root/kio/kio/chmodjob.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kio/kio/chmodjob.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kio/chmodjob.cpp')
-rw-r--r--kio/kio/chmodjob.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kio/kio/chmodjob.cpp b/kio/kio/chmodjob.cpp
index e1d343c10..9d8c271ad 100644
--- a/kio/kio/chmodjob.cpp
+++ b/kio/kio/chmodjob.cpp
@@ -40,11 +40,11 @@
using namespace KIO;
-ChmodJob::ChmodJob( const KFileItemList& lstItems, int permissions, int mask,
+ChmodJob::ChmodJob( const KFileItemList& lstItems, int permissions, int tqmask,
int newOwner, int newGroup,
bool recursive, bool showProgressInfo )
: KIO::Job( showProgressInfo ), state( STATE_LISTING ),
- m_permissions( permissions ), m_mask( mask ),
+ m_permissions( permissions ), m_tqmask( tqmask ),
m_newOwner( newOwner ), m_newGroup( newGroup ),
m_recursive( recursive ), m_lstItems( lstItems )
{
@@ -62,12 +62,12 @@ void ChmodJob::processList()
ChmodInfo info;
info.url = item->url();
// This is a toplevel file, we apply changes directly (no +X emulation here)
- info.permissions = ( m_permissions & m_mask ) | ( item->permissions() & ~m_mask );
+ info.permissions = ( m_permissions & m_tqmask ) | ( item->permissions() & ~m_tqmask );
/*kdDebug(7007) << "\n current permissions=" << TQString::number(item->permissions(),8)
<< "\n wanted permission=" << TQString::number(m_permissions,8)
- << "\n with mask=" << TQString::number(m_mask,8)
- << "\n with ~mask (mask bits we keep) =" << TQString::number((uint)~m_mask,8)
- << "\n bits we keep =" << TQString::number(item->permissions() & ~m_mask,8)
+ << "\n with tqmask=" << TQString::number(m_tqmask,8)
+ << "\n with ~tqmask (tqmask bits we keep) =" << TQString::number((uint)~m_tqmask,8)
+ << "\n bits we keep =" << TQString::number(item->permissions() & ~m_tqmask,8)
<< "\n new permissions = " << TQString::number(info.permissions,8)
<< endl;*/
m_infos.prepend( info );
@@ -121,33 +121,33 @@ void ChmodJob::slotEntries( KIO::Job*, const KIO::UDSEntryList & list )
break;
}
}
- if ( !isLink && relativePath != TQString::fromLatin1("..") )
+ if ( !isLink && relativePath != TQString::tqfromLatin1("..") )
{
ChmodInfo info;
info.url = m_lstItems.first()->url(); // base directory
info.url.addPath( relativePath );
- int mask = m_mask;
+ int tqmask = m_tqmask;
// Emulate -X: only give +x to files that had a +x bit already
// So the check is the opposite : if the file had no x bit, don't touch x bits
// For dirs this doesn't apply
if ( !isDir )
{
- int newPerms = m_permissions & mask;
+ int newPerms = m_permissions & tqmask;
if ( (newPerms & 0111) && !(permissions & 0111) )
{
// don't interfere with mandatory file locking
if ( newPerms & 02000 )
- mask = mask & ~0101;
+ tqmask = tqmask & ~0101;
else
- mask = mask & ~0111;
+ tqmask = tqmask & ~0111;
}
}
- info.permissions = ( m_permissions & mask ) | ( permissions & ~mask );
+ info.permissions = ( m_permissions & tqmask ) | ( permissions & ~tqmask );
/*kdDebug(7007) << "\n current permissions=" << TQString::number(permissions,8)
<< "\n wanted permission=" << TQString::number(m_permissions,8)
- << "\n with mask=" << TQString::number(mask,8)
- << "\n with ~mask (mask bits we keep) =" << TQString::number((uint)~mask,8)
- << "\n bits we keep =" << TQString::number(permissions & ~mask,8)
+ << "\n with tqmask=" << TQString::number(tqmask,8)
+ << "\n with ~tqmask (tqmask bits we keep) =" << TQString::number((uint)~tqmask,8)
+ << "\n bits we keep =" << TQString::number(permissions & ~tqmask,8)
<< "\n new permissions = " << TQString::number(info.permissions,8)
<< endl;*/
// Prepend this info in our todo list.
@@ -227,7 +227,7 @@ void ChmodJob::slotResult( KIO::Job * job )
}
// antlarr: KDE 4: Make owner and group be const TQString &
-KIO_EXPORT ChmodJob *KIO::chmod( const KFileItemList& lstItems, int permissions, int mask,
+KIO_EXPORT ChmodJob *KIO::chmod( const KFileItemList& lstItems, int permissions, int tqmask,
TQString owner, TQString group,
bool recursive, bool showProgressInfo )
{
@@ -249,7 +249,7 @@ KIO_EXPORT ChmodJob *KIO::chmod( const KFileItemList& lstItems, int permissions,
else
newGroupID = g->gr_gid;
}
- return new ChmodJob( lstItems, permissions, mask, newOwnerID, newGroupID, recursive, showProgressInfo );
+ return new ChmodJob( lstItems, permissions, tqmask, newOwnerID, newGroupID, recursive, showProgressInfo );
}
void ChmodJob::virtual_hook( int id, void* data )