summaryrefslogtreecommitdiffstats
path: root/kabc/plugins/ldapkio
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 /kabc/plugins/ldapkio
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 'kabc/plugins/ldapkio')
-rw-r--r--kabc/plugins/ldapkio/resourceldapkio.cpp66
-rw-r--r--kabc/plugins/ldapkio/resourceldapkio.h2
-rw-r--r--kabc/plugins/ldapkio/resourceldapkioconfig.cpp20
3 files changed, 44 insertions, 44 deletions
diff --git a/kabc/plugins/ldapkio/resourceldapkio.cpp b/kabc/plugins/ldapkio/resourceldapkio.cpp
index df0baf455..481672427 100644
--- a/kabc/plugins/ldapkio/resourceldapkio.cpp
+++ b/kabc/plugins/ldapkio/resourceldapkio.cpp
@@ -125,7 +125,7 @@ void ResourceLDAPKIO::enter_loop()
TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQWidget::NoFocus );
qt_enter_modal(&dummy);
- qApp->enter_loop();
+ tqApp->enter_loop();
qt_leave_modal(&dummy);
}
@@ -139,7 +139,7 @@ void ResourceLDAPKIO::entries( KIO::Job*, const KIO::UDSEntryList & list )
if ( (*it2).m_uds == KIO::UDS_URL ) {
KURL tmpurl( (*it2).m_str );
d->mResultDn = tmpurl.path();
- kdDebug(7125) << "findUid(): " << d->mResultDn << endl;
+ kdDebug(7125) << "tqfindUid(): " << d->mResultDn << endl;
if ( d->mResultDn.startsWith("/") ) d->mResultDn.remove(0,1);
return;
}
@@ -154,10 +154,10 @@ void ResourceLDAPKIO::listResult( KIO::Job *job)
mErrorMsg = job->errorString();
else
mErrorMsg = "";
- qApp->exit_loop();
+ tqApp->exit_loop();
}
-TQString ResourceLDAPKIO::findUid( const TQString &uid )
+TQString ResourceLDAPKIO::tqfindUid( const TQString &uid )
{
LDAPUrl url( d->mLDAPUrl );
KIO::UDSEntry entry;
@@ -168,7 +168,7 @@ TQString ResourceLDAPKIO::findUid( const TQString &uid )
url.setFilter( "(" + mAttributes[ "uid" ] + "=" + uid + ")" + mFilter );
url.setExtension( "x-dir", "one" );
- kdDebug(7125) << "ResourceLDAPKIO::findUid() uid: " << uid << " url " <<
+ kdDebug(7125) << "ResourceLDAPKIO::tqfindUid() uid: " << uid << " url " <<
url.prettyURL() << endl;
KIO::ListJob * listJob = KIO::listDir( url, false /* no GUI */ );
@@ -186,7 +186,7 @@ TQCString ResourceLDAPKIO::addEntry( const TQString &attr, const TQString &value
{
TQCString tmp;
if ( !attr.isEmpty() ) {
- if ( mod ) tmp += LDIF::assembleLine( "replace", attr ) + "\n";
+ if ( mod ) tmp += LDIF::assembleLine( "tqreplace", attr ) + "\n";
tmp += LDIF::assembleLine( attr, value ) + "\n";
if ( mod ) tmp += "-\n";
}
@@ -278,7 +278,7 @@ bool ResourceLDAPKIO::AddresseeToLDIF( TQByteArray &ldif, const Addressee &addr,
if ( !mAttributes[ "mail" ].isEmpty() ) {
if ( mod ) tmp +=
- LDIF::assembleLine( "replace", mAttributes[ "mail" ] ) + "\n";
+ LDIF::assembleLine( "tqreplace", mAttributes[ "mail" ] ) + "\n";
if ( mailIt != emails.end() ) {
tmp += LDIF::assembleLine( mAttributes[ "mail" ], *mailIt ) + "\n";
mailIt ++;
@@ -288,7 +288,7 @@ bool ResourceLDAPKIO::AddresseeToLDIF( TQByteArray &ldif, const Addressee &addr,
if ( !mAttributes[ "mailAlias" ].isEmpty() ) {
if ( mod && mAttributes[ "mail" ] != mAttributes[ "mailAlias" ] ) tmp +=
- LDIF::assembleLine( "replace", mAttributes[ "mailAlias" ] ) + "\n";
+ LDIF::assembleLine( "tqreplace", mAttributes[ "mailAlias" ] ) + "\n";
for ( ; mailIt != emails.end(); ++mailIt ) {
tmp += LDIF::assembleLine( mAttributes[ "mailAlias" ], *mailIt ) + "\n" ;
}
@@ -302,7 +302,7 @@ bool ResourceLDAPKIO::AddresseeToLDIF( TQByteArray &ldif, const Addressee &addr,
addr.photo().data().save( &buffer, "JPEG" );
if ( mod ) tmp +=
- LDIF::assembleLine( "replace", mAttributes[ "jpegPhoto" ] ) + "\n";
+ LDIF::assembleLine( "tqreplace", mAttributes[ "jpegPhoto" ] ) + "\n";
tmp += LDIF::assembleLine( mAttributes[ "jpegPhoto" ], pic, 76 ) + "\n";
if ( mod ) tmp += "-\n";
}
@@ -330,49 +330,49 @@ void ResourceLDAPKIO::init()
handle them in the load() method below.
These are the default values
*/
- if ( !mAttributes.contains("objectClass") )
+ if ( !mAttributes.tqcontains("objectClass") )
mAttributes.insert( "objectClass", "inetOrgPerson" );
- if ( !mAttributes.contains("commonName") )
+ if ( !mAttributes.tqcontains("commonName") )
mAttributes.insert( "commonName", "cn" );
- if ( !mAttributes.contains("formattedName") )
+ if ( !mAttributes.tqcontains("formattedName") )
mAttributes.insert( "formattedName", "displayName" );
- if ( !mAttributes.contains("familyName") )
+ if ( !mAttributes.tqcontains("familyName") )
mAttributes.insert( "familyName", "sn" );
- if ( !mAttributes.contains("givenName") )
+ if ( !mAttributes.tqcontains("givenName") )
mAttributes.insert( "givenName", "givenName" );
- if ( !mAttributes.contains("mail") )
+ if ( !mAttributes.tqcontains("mail") )
mAttributes.insert( "mail", "mail" );
- if ( !mAttributes.contains("mailAlias") )
+ if ( !mAttributes.tqcontains("mailAlias") )
mAttributes.insert( "mailAlias", "" );
- if ( !mAttributes.contains("phoneNumber") )
+ if ( !mAttributes.tqcontains("phoneNumber") )
mAttributes.insert( "phoneNumber", "homePhone" );
- if ( !mAttributes.contains("telephoneNumber") )
+ if ( !mAttributes.tqcontains("telephoneNumber") )
mAttributes.insert( "telephoneNumber", "telephoneNumber" );
- if ( !mAttributes.contains("facsimileTelephoneNumber") )
+ if ( !mAttributes.tqcontains("facsimileTelephoneNumber") )
mAttributes.insert( "facsimileTelephoneNumber", "facsimileTelephoneNumber" );
- if ( !mAttributes.contains("mobile") )
+ if ( !mAttributes.tqcontains("mobile") )
mAttributes.insert( "mobile", "mobile" );
- if ( !mAttributes.contains("pager") )
+ if ( !mAttributes.tqcontains("pager") )
mAttributes.insert( "pager", "pager" );
- if ( !mAttributes.contains("description") )
+ if ( !mAttributes.tqcontains("description") )
mAttributes.insert( "description", "description" );
- if ( !mAttributes.contains("title") )
+ if ( !mAttributes.tqcontains("title") )
mAttributes.insert( "title", "title" );
- if ( !mAttributes.contains("street") )
+ if ( !mAttributes.tqcontains("street") )
mAttributes.insert( "street", "street" );
- if ( !mAttributes.contains("state") )
+ if ( !mAttributes.tqcontains("state") )
mAttributes.insert( "state", "st" );
- if ( !mAttributes.contains("city") )
+ if ( !mAttributes.tqcontains("city") )
mAttributes.insert( "city", "l" );
- if ( !mAttributes.contains("organization") )
+ if ( !mAttributes.tqcontains("organization") )
mAttributes.insert( "organization", "o" );
- if ( !mAttributes.contains("postalcode") )
+ if ( !mAttributes.tqcontains("postalcode") )
mAttributes.insert( "postalcode", "postalCode" );
- if ( !mAttributes.contains("uid") )
+ if ( !mAttributes.tqcontains("uid") )
mAttributes.insert( "uid", "uid" );
- if ( !mAttributes.contains("jpegPhoto") )
+ if ( !mAttributes.tqcontains("jpegPhoto") )
mAttributes.insert( "jpegPhoto", "jpegPhoto" );
d->mLDAPUrl = KURL();
@@ -766,7 +766,7 @@ void ResourceLDAPKIO::syncLoadSaveResult( KIO::Job *job )
mErrorMsg = "";
activateCache();
- qApp->exit_loop();
+ tqApp->exit_loop();
}
void ResourceLDAPKIO::saveResult( KIO::Job *job )
@@ -791,7 +791,7 @@ void ResourceLDAPKIO::saveData( KIO::Job*, TQByteArray& data )
kdDebug(7125) << "ResourceLDAPKIO saveData: " << (*d->mSaveIt).assembledName() << endl;
- AddresseeToLDIF( data, *d->mSaveIt, findUid( (*d->mSaveIt).uid() ) );
+ AddresseeToLDIF( data, *d->mSaveIt, tqfindUid( (*d->mSaveIt).uid() ) );
// kdDebug(7125) << "ResourceLDAPKIO save LDIF: " << TQString::fromUtf8(data) << endl;
// mark as unchanged
(*d->mSaveIt).setChanged( false );
@@ -801,7 +801,7 @@ void ResourceLDAPKIO::saveData( KIO::Job*, TQByteArray& data )
void ResourceLDAPKIO::removeAddressee( const Addressee& addr )
{
- TQString dn = findUid( addr.uid() );
+ TQString dn = tqfindUid( addr.uid() );
kdDebug(7125) << "ResourceLDAPKIO: removeAddressee: " << dn << endl;
diff --git a/kabc/plugins/ldapkio/resourceldapkio.h b/kabc/plugins/ldapkio/resourceldapkio.h
index 2b5685fdc..15a694af4 100644
--- a/kabc/plugins/ldapkio/resourceldapkio.h
+++ b/kabc/plugins/ldapkio/resourceldapkio.h
@@ -158,7 +158,7 @@ protected slots:
void activateCache();
void enter_loop();
TQCString addEntry( const TQString &attr, const TQString &value, bool mod );
- TQString findUid( const TQString &uid );
+ TQString tqfindUid( const TQString &uid );
bool AddresseeToLDIF( TQByteArray &ldif, const Addressee &addr,
const TQString &olddn );
diff --git a/kabc/plugins/ldapkio/resourceldapkioconfig.cpp b/kabc/plugins/ldapkio/resourceldapkioconfig.cpp
index 271328525..80ad121a5 100644
--- a/kabc/plugins/ldapkio/resourceldapkioconfig.cpp
+++ b/kabc/plugins/ldapkio/resourceldapkioconfig.cpp
@@ -234,13 +234,13 @@ AttributesDialog::AttributesDialog( const TQMap<TQString, TQString> &attributes,
mMapList.append( outlookMap );
TQFrame *page = plainPage();
- TQGridLayout *layout = new TQGridLayout( page, 4, ( attributes.count() + 4 ) >> 1,
+ TQGridLayout *tqlayout = new TQGridLayout( page, 4, ( attributes.count() + 4 ) >> 1,
0, spacingHint() );
TQLabel *label = new TQLabel( i18n( "Template:" ), page );
- layout->addWidget( label, 0, 0 );
+ tqlayout->addWidget( label, 0, 0 );
mMapCombo = new KComboBox( page );
- layout->addWidget( mMapCombo, 0, 1 );
+ tqlayout->addWidget( mMapCombo, 0, 1 );
mMapCombo->insertItem( i18n( "User Defined" ) );
mMapCombo->insertItem( i18n( "Kolab" ) );
@@ -250,9 +250,9 @@ AttributesDialog::AttributesDialog( const TQMap<TQString, TQString> &attributes,
connect( mMapCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( mapChanged( int ) ) );
label = new TQLabel( i18n( "RDN prefix attribute:" ), page );
- layout->addWidget( label, 1, 0 );
+ tqlayout->addWidget( label, 1, 0 );
mRDNCombo = new KComboBox( page );
- layout->addWidget( mRDNCombo, 1, 1 );
+ tqlayout->addWidget( mRDNCombo, 1, 1 );
mRDNCombo->insertItem( i18n( "commonName" ) );
mRDNCombo->insertItem( i18n( "UID" ) );
mRDNCombo->setCurrentItem( rdnprefix );
@@ -274,14 +274,14 @@ AttributesDialog::AttributesDialog( const TQMap<TQString, TQString> &attributes,
mLineEditDict.insert( it.key(), lineedit );
lineedit->setText( it.data() );
label->setBuddy( lineedit );
- layout->addWidget( label, i, j );
- layout->addWidget( lineedit, i, j+1 );
+ tqlayout->addWidget( label, i, j );
+ tqlayout->addWidget( lineedit, i, j+1 );
}
for ( i = 1; i < mMapCombo->count(); i++ ) {
TQDictIterator<KLineEdit> it2( mLineEditDict );
for ( ; it2.current(); ++it2 ) {
- if ( mMapList[ i ].contains( it2.currentKey() ) ) {
+ if ( mMapList[ i ].tqcontains( it2.currentKey() ) ) {
if ( mMapList[ i ][ it2.currentKey() ] != it2.current()->text() ) break;
} else {
if ( mDefaultMap[ it2.currentKey() ] != it2.current()->text() ) break;
@@ -338,8 +338,8 @@ OfflineDialog::OfflineDialog( bool autoCache, int cachePolicy, const KURL &src,
Ok, parent, name, true, true )
{
TQFrame *page = plainPage();
- TQVBoxLayout *layout = new TQVBoxLayout( page );
- layout->setAutoAdd( true );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( page );
+ tqlayout->setAutoAdd( true );
mSrc = src; mDst = dst;
mCacheGroup = new TQButtonGroup( 1, Qt::Horizontal,