summaryrefslogtreecommitdiffstats
path: root/kresources/groupware/kabc_resourcegroupware.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/groupware/kabc_resourcegroupware.cpp')
-rw-r--r--kresources/groupware/kabc_resourcegroupware.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kresources/groupware/kabc_resourcegroupware.cpp b/kresources/groupware/kabc_resourcegroupware.cpp
index 722024adf..c04988aa0 100644
--- a/kresources/groupware/kabc_resourcegroupware.cpp
+++ b/kresources/groupware/kabc_resourcegroupware.cpp
@@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kabc/addressee.h>
#include <kabc/vcardconverter.h>
@@ -47,8 +47,8 @@ ResourceGroupware::ResourceGroupware( const KConfig *config )
}
ResourceGroupware::ResourceGroupware( const KURL &url,
- const QString &user,
- const QString &password )
+ const TQString &user,
+ const TQString &password )
: ResourceCached( 0 )
{
init();
@@ -95,10 +95,10 @@ void ResourceGroupware::writeConfig( KConfig *config )
void ResourceGroupware::readAddressBooks()
{
#if 0
- QStringList ids = prefs()->ids();
- QStringList names = prefs()->names();
- QStringList personals = prefs()->personals();
- QStringList frequents = prefs()->frequents();
+ TQStringList ids = prefs()->ids();
+ TQStringList names = prefs()->names();
+ TQStringList personals = prefs()->personals();
+ TQStringList frequents = prefs()->frequents();
if ( ids.count() != names.count() || ids.count() != personals.count() ||
ids.count() != frequents.count() ) {
@@ -123,10 +123,10 @@ void ResourceGroupware::readAddressBooks()
void ResourceGroupware::writeAddressBooks()
{
#if 0
- QStringList ids;
- QStringList names;
- QStringList personals;
- QStringList frequents;
+ TQStringList ids;
+ TQStringList names;
+ TQStringList personals;
+ TQStringList frequents;
Groupware::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
ids.append( (*it).id );
@@ -155,8 +155,8 @@ void ResourceGroupware::retrieveAddressBooks()
server.logout();
if ( firstRetrieve ) {
- QStringList reads;
- QString write;
+ TQStringList reads;
+ TQString write;
Groupware::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
@@ -227,9 +227,9 @@ bool ResourceGroupware::asyncLoad()
url.setPass( prefs()->password() );
#if 0
- QString query = "?";
- QStringList ids = mPrefs->readAddressBooks();
- QStringList::ConstIterator it;
+ TQString query = "?";
+ TQStringList ids = mPrefs->readAddressBooks();
+ TQStringList::ConstIterator it;
for( it = ids.begin(); it != ids.end(); ++it ) {
if ( it != ids.begin() ) query += "&";
query += "addressbookid=" + *it;
@@ -239,21 +239,21 @@ bool ResourceGroupware::asyncLoad()
kdDebug() << "Download URL: " << url << endl;
- mJobData = QString::null;
+ mJobData = TQString::null;
mDownloadJob = KPIM::GroupwareJob::getAddressBook( url );
- connect( mDownloadJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotJobResult( KIO::Job * ) ) );
- connect( mDownloadJob, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotJobData( KIO::Job *, const QByteArray & ) ) );
- connect( mDownloadJob, SIGNAL( percent( KIO::Job *, unsigned long ) ),
- SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( slotJobResult( KIO::Job * ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotJobData( KIO::Job *, const TQByteArray & ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
mProgress = KPIM::ProgressManager::instance()->createProgressItem(
KPIM::ProgressManager::getUniqueID(), i18n("Downloading addressbook") );
connect( mProgress,
- SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
- SLOT( cancelLoad() ) );
+ TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
+ TQT_SLOT( cancelLoad() ) );
return true;
}
@@ -316,8 +316,8 @@ void ResourceGroupware::slotJobResult( KIO::Job *job )
if ( !addr.isEmpty() ) {
addr.setResource( this );
- QString remote = addr.custom( "GWRESOURCE", "UID" );
- QString local = idMapper().localId( remote );
+ TQString remote = addr.custom( "GWRESOURCE", "UID" );
+ TQString local = idMapper().localId( remote );
if ( local.isEmpty() ) {
idMapper().setRemoteId( addr.uid(), remote );
} else {
@@ -339,7 +339,7 @@ void ResourceGroupware::slotJobResult( KIO::Job *job )
mProgress = 0;
}
-void ResourceGroupware::slotJobData( KIO::Job *, const QByteArray &data )
+void ResourceGroupware::slotJobData( KIO::Job *, const TQByteArray &data )
{
// kdDebug() << "ResourceGroupware::slotJobData()" << endl;