diff options
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/privacymanager.cpp')
-rw-r--r-- | kopete/protocols/groupwise/libgroupwise/privacymanager.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp b/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp index 3d42207b..4960310a 100644 --- a/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp +++ b/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp @@ -23,7 +23,7 @@ #include "privacymanager.h" PrivacyManager::PrivacyManager( Client * client, const char *name) - : QObject(client, name), m_client( client ) + : TQObject(client, name), m_client( client ) { } @@ -41,12 +41,12 @@ bool PrivacyManager::defaultDeny() return m_defaultDeny; } -QStringList PrivacyManager::allowList() +TQStringList PrivacyManager::allowList() { return m_allowList; } -QStringList PrivacyManager::denyList() +TQStringList PrivacyManager::denyList() { return m_denyList; } @@ -56,7 +56,7 @@ bool PrivacyManager::isPrivacyLocked() return m_locked; } -bool PrivacyManager::isBlocked( const QString & dn ) +bool PrivacyManager::isBlocked( const TQString & dn ) { if ( m_defaultDeny ) return !m_allowList.contains( dn ); @@ -64,7 +64,7 @@ bool PrivacyManager::isBlocked( const QString & dn ) return m_denyList.contains( dn ); } -void PrivacyManager::setAllow( const QString & dn ) +void PrivacyManager::setAllow( const TQString & dn ) { if ( m_defaultDeny ) { @@ -78,7 +78,7 @@ void PrivacyManager::setAllow( const QString & dn ) } } -void PrivacyManager::setDeny( const QString & dn ) +void PrivacyManager::setDeny( const TQString & dn ) { if ( m_defaultDeny ) { @@ -97,7 +97,7 @@ void PrivacyManager::setDefaultAllow( bool allow ) { PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->defaultPolicy( !allow ); - connect( pit, SIGNAL( finished() ), SLOT( slotDefaultPolicyChanged() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotDefaultPolicyChanged() ) ); pit->go( true ); } @@ -105,73 +105,73 @@ void PrivacyManager::setDefaultDeny( bool deny ) { PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->defaultPolicy( deny); - connect( pit, SIGNAL( finished() ), SLOT( slotDefaultPolicyChanged() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotDefaultPolicyChanged() ) ); pit->go( true ); } -void PrivacyManager::addAllow( const QString & dn ) +void PrivacyManager::addAllow( const TQString & dn ) { // start off a CreatePrivacyItemTask PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->allow( dn ); - connect( pit, SIGNAL( finished() ), SLOT( slotAllowAdded() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotAllowAdded() ) ); pit->go( true ); } -void PrivacyManager::addDeny( const QString & dn ) +void PrivacyManager::addDeny( const TQString & dn ) { // start off a CreatePrivacyItemTask PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->deny( dn ); - connect( pit, SIGNAL( finished() ), SLOT( slotDenyAdded() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotDenyAdded() ) ); pit->go( true ); } -void PrivacyManager::removeAllow( const QString & dn ) +void PrivacyManager::removeAllow( const TQString & dn ) { PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->removeAllow( dn ); - connect( pit, SIGNAL( finished() ), SLOT( slotAllowRemoved() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotAllowRemoved() ) ); pit->go( true ); } -void PrivacyManager::removeDeny( const QString & dn ) +void PrivacyManager::removeDeny( const TQString & dn ) { // start off a CreatePrivacyItemTask PrivacyItemTask * pit = new PrivacyItemTask( m_client->rootTask() ); pit->removeDeny( dn ); - connect( pit, SIGNAL( finished() ), SLOT( slotDenyRemoved() ) ); + connect( pit, TQT_SIGNAL( finished() ), TQT_SLOT( slotDenyRemoved() ) ); pit->go( true ); } -void PrivacyManager::setPrivacy( bool defaultIsDeny, const QStringList & allowList, const QStringList & denyList ) +void PrivacyManager::setPrivacy( bool defaultIsDeny, const TQStringList & allowList, const TQStringList & denyList ) { if ( defaultIsDeny != m_defaultDeny ) setDefaultDeny( defaultIsDeny ); // find the DNs no longer in the allow list - QStringList allowsToRemove = difference( m_allowList, allowList ); + TQStringList allowsToRemove = difference( m_allowList, allowList ); // find the DNs no longer in the deny list - QStringList denysToRemove = difference( m_denyList, denyList ); + TQStringList denysToRemove = difference( m_denyList, denyList ); // find the DNs new in the allow list - QStringList allowsToAdd = difference( allowList, m_allowList ); + TQStringList allowsToAdd = difference( allowList, m_allowList ); // find the DNs new in the deny list - QStringList denysToAdd = difference( denyList, m_denyList ); + TQStringList denysToAdd = difference( denyList, m_denyList ); - QStringList::ConstIterator end = allowsToRemove.end(); - for ( QStringList::ConstIterator it = allowsToRemove.begin(); it != end; ++it ) + TQStringList::ConstIterator end = allowsToRemove.end(); + for ( TQStringList::ConstIterator it = allowsToRemove.begin(); it != end; ++it ) removeAllow( *it ); end = denysToRemove.end(); - for ( QStringList::ConstIterator it = denysToRemove.begin(); it != end; ++it ) + for ( TQStringList::ConstIterator it = denysToRemove.begin(); it != end; ++it ) removeDeny( *it ); end = allowsToAdd.end(); - for ( QStringList::ConstIterator it = allowsToAdd.begin(); it != end; ++it ) + for ( TQStringList::ConstIterator it = allowsToAdd.begin(); it != end; ++it ) addAllow( *it ); end = denysToAdd.end(); - for ( QStringList::ConstIterator it = denysToAdd.begin(); it != end; ++it ) + for ( TQStringList::ConstIterator it = denysToAdd.begin(); it != end; ++it ) addDeny( *it ); } -void PrivacyManager::slotGotPrivacySettings( bool locked, bool defaultDeny, const QStringList & allowList, const QStringList & denyList ) +void PrivacyManager::slotGotPrivacySettings( bool locked, bool defaultDeny, const TQStringList & allowList, const TQStringList & denyList ) { m_locked = locked; m_defaultDeny = defaultDeny; @@ -236,12 +236,12 @@ void PrivacyManager::slotDenyRemoved() } } -QStringList PrivacyManager::difference( const QStringList & lhs, const QStringList & rhs ) +TQStringList PrivacyManager::difference( const TQStringList & lhs, const TQStringList & rhs ) { - QStringList diff; - const QStringList::ConstIterator lhsEnd = lhs.end(); - const QStringList::ConstIterator rhsEnd = rhs.end(); - for ( QStringList::ConstIterator lhsIt = lhs.begin(); lhsIt != lhsEnd; ++lhsIt ) + TQStringList diff; + const TQStringList::ConstIterator lhsEnd = lhs.end(); + const TQStringList::ConstIterator rhsEnd = rhs.end(); + for ( TQStringList::ConstIterator lhsIt = lhs.begin(); lhsIt != lhsEnd; ++lhsIt ) { if ( rhs.find( *lhsIt ) == rhsEnd ) diff.append( *lhsIt ); |