summaryrefslogtreecommitdiffstats
path: root/kresources/groupwise
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kresources/groupwise
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/groupwise')
-rw-r--r--kresources/groupwise/groupwisesettingswidget.cpp10
-rw-r--r--kresources/groupwise/groupwisesettingswidget.h10
-rw-r--r--kresources/groupwise/kabc_resourcegroupwise.cpp110
-rw-r--r--kresources/groupwise/kabc_resourcegroupwise.h14
-rw-r--r--kresources/groupwise/kabc_resourcegroupwiseconfig.cpp42
-rw-r--r--kresources/groupwise/kabc_resourcegroupwiseconfig.h8
-rw-r--r--kresources/groupwise/kcal_groupwiseprefs.cpp2
-rw-r--r--kresources/groupwise/kcal_groupwiseprefs.h2
-rw-r--r--kresources/groupwise/kcal_resourcegroupwise.cpp36
-rw-r--r--kresources/groupwise/kcal_resourcegroupwise.h6
-rw-r--r--kresources/groupwise/kcal_resourcegroupwiseconfig.cpp40
-rw-r--r--kresources/groupwise/kcal_resourcegroupwiseconfig.h2
-rw-r--r--kresources/groupwise/kioslave/groupwise.cpp120
-rw-r--r--kresources/groupwise/kioslave/groupwise.h16
-rw-r--r--kresources/groupwise/soap/contactconverter.cpp48
-rw-r--r--kresources/groupwise/soap/contactconverter.h4
-rw-r--r--kresources/groupwise/soap/groupwiseserver.cpp86
-rw-r--r--kresources/groupwise/soap/groupwiseserver.h70
-rw-r--r--kresources/groupwise/soap/gwconverter.cpp72
-rw-r--r--kresources/groupwise/soap/gwconverter.h36
-rw-r--r--kresources/groupwise/soap/gwjobs.cpp26
-rw-r--r--kresources/groupwise/soap/gwjobs.h20
-rw-r--r--kresources/groupwise/soap/incidenceconverter.cpp44
-rw-r--r--kresources/groupwise/soap/incidenceconverter.h18
-rw-r--r--kresources/groupwise/soap/ksslsocket.cpp62
-rw-r--r--kresources/groupwise/soap/ksslsocket.h12
-rw-r--r--kresources/groupwise/soap/soapdebug.cpp16
-rw-r--r--kresources/groupwise/soap/stdsoap2.h2
28 files changed, 467 insertions, 467 deletions
diff --git a/kresources/groupwise/groupwisesettingswidget.cpp b/kresources/groupwise/groupwisesettingswidget.cpp
index 1a758f3bc..60d047123 100644
--- a/kresources/groupwise/groupwisesettingswidget.cpp
+++ b/kresources/groupwise/groupwisesettingswidget.cpp
@@ -24,20 +24,20 @@
#include "groupwisesettingswidget.h"
-GroupWiseSettingsWidget::GroupWiseSettingsWidget( QWidget * parent )
+GroupWiseSettingsWidget::GroupWiseSettingsWidget( TQWidget * parent )
: GroupWiseSettingsWidgetBase( parent )
{
- connect( m_settingsList, SIGNAL( itemRenamed( QListViewItem *, int ) ),
- this, SLOT( slotItemRenamed( QListViewItem *, int ) ) );
+ connect( m_settingsList, TQT_SIGNAL( itemRenamed( TQListViewItem *, int ) ),
+ this, TQT_SLOT( slotItemRenamed( TQListViewItem *, int ) ) );
}
-void GroupWiseSettingsWidget::slotItemRenamed( QListViewItem * item, int )
+void GroupWiseSettingsWidget::slotItemRenamed( TQListViewItem * item, int )
{
kdDebug() << "GroupWiseSettingsWidget::slotItemRenamed() - " << item->text( 1 ) << " changed to " << item->text( 2 ) << endl;
m_dirtySettings.insert( item->text( 1 ), item->text( 2 ) );
}
-QMap<QString, QString> GroupWiseSettingsWidget::dirtySettings()
+TQMap<TQString, TQString> GroupWiseSettingsWidget::dirtySettings()
{
return m_dirtySettings;
}
diff --git a/kresources/groupwise/groupwisesettingswidget.h b/kresources/groupwise/groupwisesettingswidget.h
index a46deb7bf..aa2d3df57 100644
--- a/kresources/groupwise/groupwisesettingswidget.h
+++ b/kresources/groupwise/groupwisesettingswidget.h
@@ -22,7 +22,7 @@
#ifndef GROUPWISE_SETTINGS_WIDGET_H
#define GROUPWISE_SETTINGS_WIDGET_H
-#include <qmap.h>
+#include <tqmap.h>
class QListViewItem;
@@ -32,16 +32,16 @@ class GroupWiseSettingsWidget : public GroupWiseSettingsWidgetBase
{
Q_OBJECT
public:
- GroupWiseSettingsWidget( QWidget * parent );
- QMap<QString, QString> dirtySettings();
+ GroupWiseSettingsWidget( TQWidget * parent );
+ TQMap<TQString, TQString> dirtySettings();
void reset();
protected slots:
/**
* Add the renamed item to the list of dirty (changed) settings
*/
- void slotItemRenamed( QListViewItem *Item, int ColumnRenamed );
+ void slotItemRenamed( TQListViewItem *Item, int ColumnRenamed );
private:
- QMap<QString, QString> m_dirtySettings;
+ TQMap<TQString, TQString> m_dirtySettings;
};
#endif
diff --git a/kresources/groupwise/kabc_resourcegroupwise.cpp b/kresources/groupwise/kabc_resourcegroupwise.cpp
index e37a4d65c..9aa33ac7f 100644
--- a/kresources/groupwise/kabc_resourcegroupwise.cpp
+++ b/kresources/groupwise/kabc_resourcegroupwise.cpp
@@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qfile.h>
+#include <tqapplication.h>
+#include <tqfile.h>
#include <kabc/addressee.h>
#include <kabc/vcardconverter.h>
@@ -47,10 +47,10 @@ ResourceGroupwise::ResourceGroupwise( const KConfig *config )
}
ResourceGroupwise::ResourceGroupwise( const KURL &url,
- const QString &user,
- const QString &password,
- const QStringList &readAddressBooks,
- const QString &writeAddressBook )
+ const TQString &user,
+ const TQString &password,
+ const TQStringList &readAddressBooks,
+ const TQString &writeAddressBook )
: ResourceCached( 0 )
{
init();
@@ -115,16 +115,16 @@ void ResourceGroupwise::clearCache()
{
idMapper().clear();
mAddrMap.clear();
- QFile file( cacheFile() );
+ TQFile file( cacheFile() );
file.remove();
}
void ResourceGroupwise::readAddressBooks()
{
- 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() ) {
@@ -147,10 +147,10 @@ void ResourceGroupwise::readAddressBooks()
void ResourceGroupwise::writeAddressBooks()
{
- QStringList ids;
- QStringList names;
- QStringList personals;
- QStringList frequents;
+ TQStringList ids;
+ TQStringList names;
+ TQStringList personals;
+ TQStringList frequents;
GroupWise::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
ids.append( (*it).id );
@@ -177,8 +177,8 @@ void ResourceGroupwise::retrieveAddressBooks()
mAddressBooks = server.addressBookList();
server.logout();
- QStringList reads;
- QString write;
+ TQStringList reads;
+ TQString write;
GroupWise::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
@@ -287,9 +287,9 @@ bool ResourceGroupwise::asyncLoad()
if ( !mProgress )
{
mProgress = KPIM::ProgressManager::instance()->createProgressItem(
- KPIM::ProgressManager::getUniqueID(), i18n( "Loading GroupWise resource %1" ).arg( resourceName() ), QString::null, true /*CanBeCancelled*/, mPrefs->url().startsWith("https" ) );
- connect( mProgress, SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
- SLOT( cancelLoad() ) );
+ KPIM::ProgressManager::getUniqueID(), i18n( "Loading GroupWise resource %1" ).arg( resourceName() ), TQString::null, true /*CanBeCancelled*/, mPrefs->url().startsWith("https" ) );
+ connect( mProgress, TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
+ TQT_SLOT( cancelLoad() ) );
}
if ( addressBooks().isEmpty() ) {
@@ -338,7 +338,7 @@ void ResourceGroupwise::fetchAddressBooks( const BookType bookType )
}
mState = ( bookType == System ? FetchingSAB : FetchingUAB );
- mJobData = QString::null;
+ mJobData = TQString::null;
if ( mJob )
{
@@ -349,28 +349,28 @@ void ResourceGroupwise::fetchAddressBooks( const BookType bookType )
mJob = KIO::get( url, false, false ); // TODO: make the GW jobs call finished if the URL
// contains no address book IDs
kdDebug() << " Job address: " << mJob << endl;
- connect( mJob, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotReadJobData( KIO::Job *, const QByteArray & ) ) );
- connect( mJob, SIGNAL( percent( KIO::Job *, unsigned long ) ),
- SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
+ connect( mJob, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotReadJobData( KIO::Job *, const TQByteArray & ) ) );
+ connect( mJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
if ( bookType == System )
{
- connect( mJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( fetchSABResult( KIO::Job * ) ) );
+ connect( mJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( fetchSABResult( KIO::Job * ) ) );
mSABProgress = KPIM::ProgressManager::instance()->createProgressItem(
mProgress, KPIM::ProgressManager::getUniqueID(),
- i18n( "Fetching System Address Book" ), QString::null,
+ i18n( "Fetching System Address Book" ), TQString::null,
false /*CannotBeCancelled*/,
mPrefs->url().startsWith("https" ) );
}
else
{
- connect( mJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( fetchUABResult( KIO::Job * ) ) );
+ connect( mJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( fetchUABResult( KIO::Job * ) ) );
mUABProgress = KPIM::ProgressManager::instance()->createProgressItem(
mProgress, KPIM::ProgressManager::getUniqueID(),
- i18n( "Fetching User Address Books" ), QString::null,
+ i18n( "Fetching User Address Books" ), TQString::null,
false /*CannotBeCancelled*/,
mPrefs->url().startsWith("https" ) );
}
@@ -437,21 +437,21 @@ void ResourceGroupwise::updateSystemAddressBook()
KURL url = createAccessUrl( System, Update, mPrefs->lastSequenceNumber(), mPrefs->lastTimePORebuild() );
kdDebug() << " Update URL: " << url << endl;
- mJobData = QString::null;
+ mJobData = TQString::null;
mSABProgress = KPIM::ProgressManager::instance()->createProgressItem(
mProgress, KPIM::ProgressManager::getUniqueID(),
- i18n( "Updating System Address Book" ), QString::null,
+ i18n( "Updating System Address Book" ), TQString::null,
false /*CannotBeCancelled*/,
mPrefs->url().startsWith("https" ) );
mJob = KIO::get( url, false, false );
mJob->setInteractive( false );
- connect( mJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( updateSABResult( KIO::Job * ) ) );
- connect( mJob, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotUpdateJobData( KIO::Job *, const QByteArray & ) ) );
- connect( mJob, SIGNAL( percent( KIO::Job *, unsigned long ) ),
- SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
+ connect( mJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( updateSABResult( KIO::Job * ) ) );
+ connect( mJob, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotUpdateJobData( KIO::Job *, const TQByteArray & ) ) );
+ connect( mJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
return;
}
@@ -486,7 +486,7 @@ void ResourceGroupwise::updateSABResult( KIO::Job *job )
loadCompleted();
}
-void ResourceGroupwise::slotReadJobData( KIO::Job *job , const QByteArray &data )
+void ResourceGroupwise::slotReadJobData( KIO::Job *job , const TQByteArray &data )
{
kdDebug() << "ResourceGroupwise::slotReadJobData()" << endl;
Q_UNUSED( job );
@@ -494,7 +494,7 @@ void ResourceGroupwise::slotReadJobData( KIO::Job *job , const QByteArray &data
mJobData.append( data.data() );
KABC::VCardConverter conv;
- QTime profile;
+ TQTime profile;
profile.start();
Addressee::List addressees = conv.parseVCards( mJobData );
// kdDebug() << " parsed " << addressees.count() << " contacts in " << profile.elapsed() << "ms, now adding to resource..." << endl;
@@ -505,8 +505,8 @@ void ResourceGroupwise::slotReadJobData( KIO::Job *job , const QByteArray &data
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 {
@@ -517,10 +517,10 @@ void ResourceGroupwise::slotReadJobData( KIO::Job *job , const QByteArray &data
clearChange( addr );
}
}
- mJobData = QString::null;
+ mJobData = TQString::null;
}
-void ResourceGroupwise::slotUpdateJobData( KIO::Job *job, const QByteArray &data )
+void ResourceGroupwise::slotUpdateJobData( KIO::Job *job, const TQByteArray &data )
{
kdDebug() << "ResourceGroupwise::slotUpdateJobData()" << endl;
kdDebug() << " Job address: " << job << endl;
@@ -534,9 +534,9 @@ void ResourceGroupwise::slotUpdateJobData( KIO::Job *job, const QByteArray &data
KABC::Addressee addr = *it;
if ( !addr.isEmpty() ) {
// if added or changed
- QString syncType = addr.custom( "GWRESOURCE", "SYNC" );
- QString remote = addr.custom( "GWRESOURCE", "UID" );
- QString local = idMapper().localId( remote );
+ TQString syncType = addr.custom( "GWRESOURCE", "SYNC" );
+ TQString remote = addr.custom( "GWRESOURCE", "UID" );
+ TQString local = idMapper().localId( remote );
if ( syncType == "ADD" || syncType == "UPD" )
{
@@ -567,7 +567,7 @@ void ResourceGroupwise::slotUpdateJobData( KIO::Job *job, const QByteArray &data
}
}
}
- mJobData = QString::null;
+ mJobData = TQString::null;
}
void ResourceGroupwise::loadCompleted()
@@ -664,20 +664,20 @@ ResourceGroupwise::SABState ResourceGroupwise::systemAddressBookState()
bool ResourceGroupwise::shouldFetchSystemAddressBook()
{
- QStringList ids = mPrefs->readAddressBooks();
+ TQStringList ids = mPrefs->readAddressBooks();
return ( appIsWhiteListedForSAB() && ids.find( mPrefs->systemAddressBook() ) != ids.end() );
}
bool ResourceGroupwise::shouldFetchUserAddressBooks()
{
- QStringList ids = mPrefs->readAddressBooks();
+ TQStringList ids = mPrefs->readAddressBooks();
return ( ids.count() > 1 || ids.find( mPrefs->systemAddressBook() ) == ids.end() );
}
KURL ResourceGroupwise::createAccessUrl( BookType bookType, AccessMode mode, unsigned long lastSequenceNumber, unsigned long lastPORebuildTime )
{
// set up list of address book IDs to fetch
- QStringList ids;
+ TQStringList ids;
if ( bookType == System )
ids.append( mPrefs->systemAddressBook() );
else
@@ -699,8 +699,8 @@ KURL ResourceGroupwise::createAccessUrl( BookType bookType, AccessMode mode, uns
url.setUser( prefs()->user() );
url.setPass( prefs()->password() );
- QString query = "?";
- QStringList::ConstIterator it;
+ TQString query = "?";
+ TQStringList::ConstIterator it;
for( it = ids.begin(); it != ids.end(); ++it ) {
if ( it != ids.begin() ) query += "&";
query += "addressbookid=" + *it;
@@ -708,7 +708,7 @@ KURL ResourceGroupwise::createAccessUrl( BookType bookType, AccessMode mode, uns
if ( mode == Update && lastSequenceNumber > 0 && lastPORebuildTime > 0 )
{
- query += QString::fromLatin1( "&update=true&lastSeqNo=%1&PORebuildTime=%2" ).arg( lastSequenceNumber ).arg( lastPORebuildTime );;
+ query += TQString::fromLatin1( "&update=true&lastSeqNo=%1&PORebuildTime=%2" ).arg( lastSequenceNumber ).arg( lastPORebuildTime );;
}
url.setQuery( query );
return url;
diff --git a/kresources/groupwise/kabc_resourcegroupwise.h b/kresources/groupwise/kabc_resourcegroupwise.h
index 8fad2a67d..cd634a010 100644
--- a/kresources/groupwise/kabc_resourcegroupwise.h
+++ b/kresources/groupwise/kabc_resourcegroupwise.h
@@ -46,9 +46,9 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
public:
ResourceGroupwise( const KConfig * );
ResourceGroupwise( const KURL &url,
- const QString &user, const QString &password,
- const QStringList &readAddressBooks,
- const QString &writeAddressBook );
+ const TQString &user, const TQString &password,
+ const TQStringList &readAddressBooks,
+ const TQString &writeAddressBook );
~ResourceGroupwise();
void readConfig( const KConfig * );
@@ -140,9 +140,9 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
void fetchUABResult( KIO::Job * );
void updateSABResult( KIO::Job * );
/** DATA PROCESSING SLOTS **/
- void slotReadJobData( KIO::Job *, const QByteArray & );
- void slotUpdateJobData( KIO::Job *, const QByteArray & );
- /** HELPER SLOT **/
+ void slotReadJobData( KIO::Job *, const TQByteArray & );
+ void slotUpdateJobData( KIO::Job *, const TQByteArray & );
+ /** HELPER TQT_SLOT **/
void slotJobPercent( KIO::Job *job, unsigned long percent );
void cancelLoad();
@@ -156,7 +156,7 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
KPIM::ProgressItem *mProgress;
KPIM::ProgressItem *mSABProgress;
KPIM::ProgressItem *mUABProgress;
- QString mJobData;
+ TQString mJobData;
ResourceState mState;
unsigned long mServerFirstSequence, mServerLastSequence, mServerLastPORebuildTime;
diff --git a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp
index daa1008ac..f195700c8 100644
--- a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp
+++ b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp
@@ -31,8 +31,8 @@
#include <klistview.h>
#include <kurlrequester.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
using namespace KABC;
@@ -40,7 +40,7 @@ class AddressBookItem : public QCheckListItem
{
public:
AddressBookItem( KListView *parent, GroupWise::AddressBook ab )
- : QCheckListItem( parent, "", CheckBox ),
+ : TQCheckListItem( parent, "", CheckBox ),
mId( ab.id )
{
setText( 0, ab.name );
@@ -50,42 +50,42 @@ class AddressBookItem : public QCheckListItem
else setText( 2, i18n("No") );
}
- QString id() const { return mId; }
+ TQString id() const { return mId; }
private:
- QString mId;
+ TQString mId;
};
-ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* name )
+ResourceGroupwiseConfig::ResourceGroupwiseConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name )
{
- QGridLayout *mainLayout = new QGridLayout( this, 7, 2, 0, KDialog::spacingHint() );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 7, 2, 0, KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "URL:" ), this );
+ TQLabel *label = new TQLabel( i18n( "URL:" ), this );
mURL = new KURLRequester( this );
mainLayout->addWidget( label, 0, 0 );
mainLayout->addWidget( mURL, 0, 1 );
- label = new QLabel( i18n( "User:" ), this );
+ label = new TQLabel( i18n( "User:" ), this );
mUser = new KLineEdit( this );
mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mUser, 1, 1 );
- label = new QLabel( i18n( "Password:" ), this );
+ label = new TQLabel( i18n( "Password:" ), this );
mPassword = new KLineEdit( this );
- mPassword->setEchoMode( QLineEdit::Password );
+ mPassword->setEchoMode( TQLineEdit::Password );
mainLayout->addWidget( label, 2, 0 );
mainLayout->addWidget( mPassword, 2, 1 );
- QFrame *hline = new QFrame( this );
- hline->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame *hline = new TQFrame( this );
+ hline->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
mainLayout->addMultiCellWidget( hline, 3, 3, 0, 1 );
- QPushButton *updateButton = new QPushButton( i18n( "Retrieve Address Book List From Server" ), this );
+ TQPushButton *updateButton = new TQPushButton( i18n( "Retrieve Address Book List From Server" ), this );
mainLayout->addMultiCellWidget( updateButton, 4, 4, 0, 1 );
mAddressBookView = new KListView( this );
@@ -96,13 +96,13 @@ ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char*
mainLayout->addMultiCellWidget( mAddressBookView, 5, 5, 0, 1 );
- label = new QLabel( i18n( "Address book for new contacts:" ), this );
+ label = new TQLabel( i18n( "Address book for new contacts:" ), this );
mAddressBookBox = new KComboBox( this );
mainLayout->addWidget( label, 6, 0 );
mainLayout->addWidget( mAddressBookBox, 6, 1 );
- connect( updateButton, SIGNAL( clicked() ), SLOT( updateAddressBookList() ) );
+ connect( updateButton, TQT_SIGNAL( clicked() ), TQT_SLOT( updateAddressBookList() ) );
}
void ResourceGroupwiseConfig::loadSettings( KRES::Resource *res )
@@ -153,10 +153,10 @@ void ResourceGroupwiseConfig::updateAddressBookList()
void ResourceGroupwiseConfig::saveAddressBookSettings()
{
- QStringList selectedRead;
- QString selectedWrite;
+ TQStringList selectedRead;
+ TQString selectedWrite;
- QListViewItemIterator it2( mAddressBookView );
+ TQListViewItemIterator it2( mAddressBookView );
while ( it2.current() ) {
AddressBookItem *item = static_cast<AddressBookItem*>( it2.current() );
if ( item->isOn() )
@@ -167,7 +167,7 @@ void ResourceGroupwiseConfig::saveAddressBookSettings()
// check if the SAB was selected when the settings were loaded and is not selected now,
// if so, clear the resource to clear the SAB data that is no longer required.
// also, set the sequence numbers to 0 so that we know the SAB should be re-fetched in its entirety the next time we do load it
- QString sab = mResource->prefs()->systemAddressBook();
+ TQString sab = mResource->prefs()->systemAddressBook();
if ( ( mReadAddressBookIds.find( sab ) != mReadAddressBookIds.end() ) && ( selectedRead.find( sab ) == selectedRead.end() ) )
{
mResource->clearCache();
@@ -189,7 +189,7 @@ void ResourceGroupwiseConfig::updateAddressBookView()
mAddressBookBox->clear();
mWriteAddressBookIds.clear();
- QStringList selectedRead = mResource->prefs()->readAddressBooks();
+ TQStringList selectedRead = mResource->prefs()->readAddressBooks();
GroupWise::AddressBook::List addressBooks = mResource->addressBooks();
GroupWise::AddressBook::List::ConstIterator abIt;
diff --git a/kresources/groupwise/kabc_resourcegroupwiseconfig.h b/kresources/groupwise/kabc_resourcegroupwiseconfig.h
index 13b336acc..d5bec19a9 100644
--- a/kresources/groupwise/kabc_resourcegroupwiseconfig.h
+++ b/kresources/groupwise/kabc_resourcegroupwiseconfig.h
@@ -25,7 +25,7 @@
#include <kresources/configwidget.h>
#include <kdepimmacros.h>
-#include <qmap.h>
+#include <tqmap.h>
class KComboBox;
class KLineEdit;
@@ -41,7 +41,7 @@ class KDE_EXPORT ResourceGroupwiseConfig : public KRES::ConfigWidget
Q_OBJECT
public:
- ResourceGroupwiseConfig( QWidget* parent = 0, const char* name = 0 );
+ ResourceGroupwiseConfig( TQWidget* parent = 0, const char* name = 0 );
public slots:
void loadSettings( KRES::Resource* );
@@ -63,8 +63,8 @@ class KDE_EXPORT ResourceGroupwiseConfig : public KRES::ConfigWidget
KListView *mAddressBookView;
KComboBox *mAddressBookBox;
- QStringList mWriteAddressBookIds;
- QStringList mReadAddressBookIds;
+ TQStringList mWriteAddressBookIds;
+ TQStringList mReadAddressBookIds;
ResourceGroupwise *mResource;
};
diff --git a/kresources/groupwise/kcal_groupwiseprefs.cpp b/kresources/groupwise/kcal_groupwiseprefs.cpp
index fab0fc457..c2e9ffc0c 100644
--- a/kresources/groupwise/kcal_groupwiseprefs.cpp
+++ b/kresources/groupwise/kcal_groupwiseprefs.cpp
@@ -27,7 +27,7 @@ GroupwisePrefs::GroupwisePrefs()
{
}
-QString GroupwisePrefs::serverUrl() const
+TQString GroupwisePrefs::serverUrl() const
{
return url();
}
diff --git a/kresources/groupwise/kcal_groupwiseprefs.h b/kresources/groupwise/kcal_groupwiseprefs.h
index bfac6ece2..fdc958685 100644
--- a/kresources/groupwise/kcal_groupwiseprefs.h
+++ b/kresources/groupwise/kcal_groupwiseprefs.h
@@ -29,7 +29,7 @@ class GroupwisePrefs : public GroupwisePrefsBase
public:
GroupwisePrefs();
- QString serverUrl() const;
+ TQString serverUrl() const;
};
}
diff --git a/kresources/groupwise/kcal_resourcegroupwise.cpp b/kresources/groupwise/kcal_resourcegroupwise.cpp
index 1467116d1..678ad63e4 100644
--- a/kresources/groupwise/kcal_resourcegroupwise.cpp
+++ b/kresources/groupwise/kcal_resourcegroupwise.cpp
@@ -30,11 +30,11 @@
#include <libkcal/calendarlocal.h>
#include <libkcal/confirmsavedialog.h>
-#include <qapplication.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qtimer.h>
+#include <tqapplication.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
#include <kabc/locknull.h>
#include <kdebug.h>
@@ -155,19 +155,19 @@ bool ResourceGroupwise::doLoad()
kdDebug() << "Download URL: " << url << endl;
- mJobData = QString::null;
+ mJobData = TQString::null;
mDownloadJob = KIO::get( url, false, false );
- 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, 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 & ) ) );
mProgress = KPIM::ProgressManager::instance()->createProgressItem(
KPIM::ProgressManager::getUniqueID(), i18n("Downloading calendar") );
connect( mProgress,
- SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
- SLOT( cancelLoad() ) );
+ TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
+ TQT_SLOT( cancelLoad() ) );
return true;
}
@@ -186,7 +186,7 @@ void ResourceGroupwise::slotJobResult( KIO::Job *job )
clearCache();
// FIXME: This does not take into account the time zone!
- CalendarLocal calendar( QString::fromLatin1("UTC") );
+ CalendarLocal calendar( TQString::fromLatin1("UTC") );
ICalFormat ical;
if ( !ical.fromString( &calendar, mJobData ) ) {
loadError( i18n("Error parsing calendar data.") );
@@ -196,8 +196,8 @@ void ResourceGroupwise::slotJobResult( KIO::Job *job )
for( it = incidences.begin(); it != incidences.end(); ++it ) {
// kdDebug() << "INCIDENCE: " << (*it)->summary() << endl;
Incidence *i = (*it)->clone();
- QString remote = (*it)->customProperty( "GWRESOURCE", "UID" );
- QString local = idMapper().localId( remote );
+ TQString remote = (*it)->customProperty( "GWRESOURCE", "UID" );
+ TQString local = idMapper().localId( remote );
if ( local.isEmpty() ) {
idMapper().setRemoteId( i->uid(), remote );
} else {
@@ -220,7 +220,7 @@ void ResourceGroupwise::slotJobResult( KIO::Job *job )
mProgress = 0;
}
-void ResourceGroupwise::slotJobData( KIO::Job *, const QByteArray &data )
+void ResourceGroupwise::slotJobData( KIO::Job *, const TQByteArray &data )
{
// kdDebug() << "ResourceGroupwise::slotJobData()" << endl;
@@ -284,7 +284,7 @@ bool ResourceGroupwise::confirmSave()
dlg.addIncidences( deletedIncidences(), i18n("Deleted") );
int result = dlg.exec();
- return result == QDialog::Accepted;
+ return result == TQDialog::Accepted;
}
KABC::Lock *ResourceGroupwise::lock()
@@ -315,7 +315,7 @@ bool ResourceGroupwise::userSettings( ngwt__Settings *&settings )
return success;
}
-bool ResourceGroupwise::modifyUserSettings( QMap<QString, QString> & settings )
+bool ResourceGroupwise::modifyUserSettings( TQMap<TQString, TQString> & settings )
{
kdDebug() << "ResourceGroupwise::modifyUserSettings()" << endl;
diff --git a/kresources/groupwise/kcal_resourcegroupwise.h b/kresources/groupwise/kcal_resourcegroupwise.h
index cf5d6bb17..e808da0e8 100644
--- a/kresources/groupwise/kcal_resourcegroupwise.h
+++ b/kresources/groupwise/kcal_resourcegroupwise.h
@@ -65,7 +65,7 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
KABC::Lock *lock();
bool userSettings( ngwt__Settings * &settings );
- bool modifyUserSettings( QMap<QString, QString> & settings );
+ bool modifyUserSettings( TQMap<TQString, TQString> & settings );
protected:
void init();
@@ -73,7 +73,7 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
protected slots:
void slotJobResult( KIO::Job * );
- void slotJobData( KIO::Job *, const QByteArray & );
+ void slotJobData( KIO::Job *, const TQByteArray & );
void cancelLoad();
@@ -83,7 +83,7 @@ class KDE_EXPORT ResourceGroupwise : public ResourceCached
KIO::TransferJob *mDownloadJob;
KPIM::ProgressItem *mProgress;
- QString mJobData;
+ TQString mJobData;
bool mIsShowingError;
};
diff --git a/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp b/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp
index 29741d201..04e1affd9 100644
--- a/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp
+++ b/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp
@@ -20,9 +20,9 @@
#include <typeinfo>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include <klocale.h>
#include <klistview.h>
@@ -41,29 +41,29 @@
using namespace KCal;
-ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* name )
+ResourceGroupwiseConfig::ResourceGroupwiseConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name )
{
resize( 245, 115 );
- QGridLayout *mainLayout = new QGridLayout( this, 2, 2 );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 2, 2 );
- QLabel *label = new QLabel( i18n("URL:"), this );
+ TQLabel *label = new TQLabel( i18n("URL:"), this );
mainLayout->addWidget( label, 1, 0 );
mUrl = new KLineEdit( this );
mainLayout->addWidget( mUrl, 1, 1 );
- label = new QLabel( i18n("User:"), this );
+ label = new TQLabel( i18n("User:"), this );
mainLayout->addWidget( label, 2, 0 );
mUserEdit = new KLineEdit( this );
mainLayout->addWidget( mUserEdit, 2, 1 );
- label = new QLabel( i18n("Password:"), this );
+ label = new TQLabel( i18n("Password:"), this );
mainLayout->addWidget( label, 3, 0 );
mPasswordEdit = new KLineEdit( this );
mainLayout->addWidget( mPasswordEdit, 3, 1 );
mPasswordEdit->setEchoMode( KLineEdit::Password );
- QPushButton *settingsButton = new QPushButton( i18n( "View User Settings" ), this );
+ TQPushButton *settingsButton = new TQPushButton( i18n( "View User Settings" ), this );
mainLayout->addMultiCellWidget( settingsButton, 4, 4, 0, 1 );
mReloadConfig = new KCal::ResourceCachedReloadConfig( this );
@@ -73,7 +73,7 @@ ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char*
mainLayout->addMultiCellWidget( mSaveConfig, 6, 6, 0, 1 );
settingsButton->hide();
- // connect( settingsButton, SIGNAL( clicked() ), SLOT( slotViewUserSettings() ) );
+ // connect( settingsButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotViewUserSettings() ) );
}
@@ -123,8 +123,8 @@ void ResourceGroupwiseConfig::slotViewUserSettings()
if ( s )
{
- KDialogBase * dialog = new KDialogBase( ::qt_cast<QWidget*>(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) );
-// QVBoxLayout * layout = new QVBoxLayout( dialog );
+ KDialogBase * dialog = new KDialogBase( ::qt_cast<TQWidget*>(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) );
+// TQVBoxLayout * layout = new TQVBoxLayout( dialog );
GroupWiseSettingsWidget * settingsWidget = new GroupWiseSettingsWidget( dialog );
dialog->setMainWidget( settingsWidget );
// populate dialog
@@ -133,10 +133,10 @@ void ResourceGroupwiseConfig::slotViewUserSettings()
for( it = s->group.begin(); it != s->group.end(); ++it )
{
ngwt__SettingsGroup * group = *it;
- QString groupName;
+ TQString groupName;
if ( group->type )
{
- groupName = QString::fromUtf8( group->type->c_str() );
+ groupName = TQString::fromUtf8( group->type->c_str() );
kdDebug() << "GROUP: " << groupName << endl;;
}
KListViewItem * groupLVI = new KListViewItem( settingsWidget->m_settingsList, groupName );
@@ -144,27 +144,27 @@ void ResourceGroupwiseConfig::slotViewUserSettings()
std::vector<class ngwt__Custom *>::const_iterator it2;
for( it2 = setting.begin(); it2 != setting.end(); ++it2 )
{
- QString setting, value;
+ TQString setting, value;
bool locked = false;
- setting = QString::fromUtf8( (*it2)->field.c_str() );
+ setting = TQString::fromUtf8( (*it2)->field.c_str() );
if ( (*it2)->value )
{
- value = QString::fromUtf8( (*it2)->value->c_str() );
+ value = TQString::fromUtf8( (*it2)->value->c_str() );
}
if ( (*it2)->locked )
locked = *((*it2)->locked);
kdDebug() << " SETTING: " << setting << " value : " << value << (locked ? "locked" : " not locked " ) << endl;
- KListViewItem * settingLVI = new KListViewItem( groupLVI, QString::null, setting, value, (locked ? "locked" : " not locked " ) );
+ KListViewItem * settingLVI = new KListViewItem( groupLVI, TQString::null, setting, value, (locked ? "locked" : " not locked " ) );
if ( !locked )
settingLVI->setRenameEnabled( 2, true );
}
}
dialog->show();
- if ( dialog->exec() == QDialog::Accepted )
+ if ( dialog->exec() == TQDialog::Accepted )
{
- QMap<QString, QString> settings = settingsWidget->dirtySettings();
+ TQMap<TQString, TQString> settings = settingsWidget->dirtySettings();
mResource->modifyUserSettings( settings );
}
}
diff --git a/kresources/groupwise/kcal_resourcegroupwiseconfig.h b/kresources/groupwise/kcal_resourcegroupwiseconfig.h
index 18ead1d3a..bc6f81c74 100644
--- a/kresources/groupwise/kcal_resourcegroupwiseconfig.h
+++ b/kresources/groupwise/kcal_resourcegroupwiseconfig.h
@@ -43,7 +43,7 @@ class KDE_EXPORT ResourceGroupwiseConfig : public KRES::ConfigWidget
{
Q_OBJECT
public:
- ResourceGroupwiseConfig( QWidget *parent = 0, const char *name = 0 );
+ ResourceGroupwiseConfig( TQWidget *parent = 0, const char *name = 0 );
public slots:
virtual void loadSettings( KRES::Resource *resource );
diff --git a/kresources/groupwise/kioslave/groupwise.cpp b/kresources/groupwise/kioslave/groupwise.cpp
index 60e768e2e..44178fe61 100644
--- a/kresources/groupwise/kioslave/groupwise.cpp
+++ b/kresources/groupwise/kioslave/groupwise.cpp
@@ -21,7 +21,7 @@
#include "groupwiseserver.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#include <libkdepim/kabcresourcecached.h>
@@ -84,8 +84,8 @@ int kdemain( int argc, char **argv )
return 0;
}
-Groupwise::Groupwise( const QCString &protocol, const QCString &pool,
- const QCString &app )
+Groupwise::Groupwise( const TQCString &protocol, const TQCString &pool,
+ const TQCString &app )
: SlaveBase( protocol, pool, app )
{
}
@@ -103,7 +103,7 @@ void Groupwise::get( const KURL &url )
mimeType( "text/plain" );
- QString path = url.path();
+ TQString path = url.path();
debugMessage( "Path: " + path );
if ( path.contains( "/freebusy" ) ) {
@@ -116,26 +116,26 @@ void Groupwise::get( const KURL &url )
else
getAddressbook( url );
} else {
- QString error = i18n("Unknown path. Known paths are '/freebusy/', "
- "'/calendar/' and '/addressbook/'.") + QString(" path was %1" ).arg( url.url() );
+ TQString error = i18n("Unknown path. Known paths are '/freebusy/', "
+ "'/calendar/' and '/addressbook/'.") + TQString(" path was %1" ).arg( url.url() );
errorMessage( error );
}
kdDebug(7000) << "Groupwise::get() done" << endl;
}
-QString Groupwise::soapUrl( const KURL &url )
+TQString Groupwise::soapUrl( const KURL &url )
{
// FIXME: Get SSL from parameter
bool useSsl = url.protocol() == "groupwises";
- QString u;
+ TQString u;
if ( useSsl ) u = "https";
else u = "http";
u += "://" + url.host() + ":";
if ( url.port() )
- u += QString::number( url.port() );
+ u += TQString::number( url.port() );
else {
u += "7191";
}
@@ -148,7 +148,7 @@ QString Groupwise::soapUrl( const KURL &url )
url.path().startsWith("/calendar/") ||
url.path().startsWith("/addressbook/" ) ) )
{
- QString soapPath = QString("/") + QStringList::split('/', url.path())[0];
+ TQString soapPath = TQString("/") + TQStringList::split('/', url.path())[0];
u += soapPath;
}
else
@@ -159,24 +159,24 @@ QString Groupwise::soapUrl( const KURL &url )
void Groupwise::getFreeBusy( const KURL &url )
{
- QString file = url.filename();
+ TQString file = url.filename();
if ( file.right( 4 ) != ".ifb" ) {
- QString error = i18n("Illegal filename. File has to have '.ifb' suffix.");
+ TQString error = i18n("Illegal filename. File has to have '.ifb' suffix.");
errorMessage( error );
} else {
- QString email = file.left( file.length() - 4 );
+ TQString email = file.left( file.length() - 4 );
debugMessage( "Email: " + email );
// Sanitise local Nuernberg email addresses
kdDebug() << "Email before sanitizing: " << email << endl;
- email = email.replace(QRegExp("\\.EMEA5-1\\.EMEA5" ), "" );
- email = email.replace(QRegExp("\\.Suse.INTERNET" ), "" );
+ email = email.replace(TQRegExp("\\.EMEA5-1\\.EMEA5" ), "" );
+ email = email.replace(TQRegExp("\\.Suse.INTERNET" ), "" );
kdDebug() << "Email after sanitizing: " << email << endl;
- QString u = soapUrl( url );
+ TQString u = soapUrl( url );
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
debugMessage( "URL: " + u );
debugMessage( "User: " + user );
@@ -190,8 +190,8 @@ void Groupwise::getFreeBusy( const KURL &url )
GroupwiseServer server( u, user, pass, 0 );
// FIXME: Read range from configuration or URL parameters.
- QDate start = QDate::currentDate().addDays( -3 );
- QDate end = QDate::currentDate().addDays( 60 );
+ TQDate start = TQDate::currentDate().addDays( -3 );
+ TQDate end = TQDate::currentDate().addDays( 60 );
fb->setDtStart( start );
fb->setDtEnd( end );
@@ -211,8 +211,8 @@ void Groupwise::getFreeBusy( const KURL &url )
}
#if 0
- QDateTime s = QDateTime( QDate( 2004, 9, 27 ), QTime( 10, 0 ) );
- QDateTime e = QDateTime( QDate( 2004, 9, 27 ), QTime( 11, 0 ) );
+ TQDateTime s = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 10, 0 ) );
+ TQDateTime e = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 11, 0 ) );
fb->addPeriod( s, e );
#endif
@@ -220,7 +220,7 @@ void Groupwise::getFreeBusy( const KURL &url )
// FIXME: This does not take into account the time zone!
KCal::ICalFormat format;
- QString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish );
+ TQString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish );
data( ical.utf8() );
@@ -230,10 +230,10 @@ void Groupwise::getFreeBusy( const KURL &url )
void Groupwise::getCalendar( const KURL &url )
{
- QString u = soapUrl( url );
+ TQString u = soapUrl( url );
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
debugMessage( "URL: " + u );
debugMessage( "User: " + user );
@@ -241,7 +241,7 @@ void Groupwise::getCalendar( const KURL &url )
GroupwiseServer server( u, user, pass, 0 );
- KCal::CalendarLocal calendar( QString::fromLatin1("UTC"));
+ KCal::CalendarLocal calendar( TQString::fromLatin1("UTC"));
kdDebug() << "Login" << endl;
if ( !server.login() ) {
@@ -257,7 +257,7 @@ void Groupwise::getCalendar( const KURL &url )
KCal::ICalFormat format;
- QString ical = format.toString( &calendar );
+ TQString ical = format.toString( &calendar );
data( ical.utf8() );
@@ -266,26 +266,26 @@ void Groupwise::getCalendar( const KURL &url )
void Groupwise::getAddressbook( const KURL &url )
{
- QString u = soapUrl( url );
+ TQString u = soapUrl( url );
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
debugMessage( "URL: " + u );
debugMessage( "User: " + user );
debugMessage( "Password: " + pass );
- QString query = url.query();
+ TQString query = url.query();
if ( query.isEmpty() || query == "?" ) {
errorMessage( i18n("No addressbook IDs given.") );
} else {
- QStringList ids;
+ TQStringList ids;
query = query.mid( 1 );
- QStringList queryItems = QStringList::split( "&", query );
- QStringList::ConstIterator it;
+ TQStringList queryItems = TQStringList::split( "&", query );
+ TQStringList::ConstIterator it;
for( it = queryItems.begin(); it != queryItems.end(); ++it ) {
- QStringList item = QStringList::split( "=", (*it) );
+ TQStringList item = TQStringList::split( "=", (*it) );
if ( item.count() == 2 && item[ 0 ] == "addressbookid" ) {
ids.append( item[ 1 ] );
}
@@ -295,14 +295,14 @@ void Groupwise::getAddressbook( const KURL &url )
GroupwiseServer server( u, user, pass, 0 );
- connect( &server, SIGNAL( readAddressBookTotalSize( int ) ),
- SLOT( slotReadAddressBookTotalSize( int ) ) );
- connect( &server, SIGNAL( readAddressBookProcessedSize( int ) ),
- SLOT( slotReadAddressBookProcessedSize( int ) ) );
- connect( &server, SIGNAL( errorMessage( const QString &, bool ) ),
- SLOT( slotServerErrorMessage( const QString &, bool ) ) );
- connect( &server, SIGNAL( gotAddressees( const KABC::Addressee::List ) ),
- SLOT( slotReadReceiveAddressees( const KABC::Addressee::List ) ) );
+ connect( &server, TQT_SIGNAL( readAddressBookTotalSize( int ) ),
+ TQT_SLOT( slotReadAddressBookTotalSize( int ) ) );
+ connect( &server, TQT_SIGNAL( readAddressBookProcessedSize( int ) ),
+ TQT_SLOT( slotReadAddressBookProcessedSize( int ) ) );
+ connect( &server, TQT_SIGNAL( errorMessage( const TQString &, bool ) ),
+ TQT_SLOT( slotServerErrorMessage( const TQString &, bool ) ) );
+ connect( &server, TQT_SIGNAL( gotAddressees( const KABC::Addressee::List ) ),
+ TQT_SLOT( slotReadReceiveAddressees( const KABC::Addressee::List ) ) );
kdDebug() << "Login" << endl;
if ( !server.login() ) {
@@ -324,7 +324,7 @@ void Groupwise::slotReadReceiveAddressees( const KABC::Addressee::List addressee
kdDebug() << "Groupwise::slotReadReceiveAddressees() - passing " << addressees.count() << " contacts back to application" << endl;
KABC::VCardConverter conv;
- QString vcard = conv.createVCards( addressees );
+ TQString vcard = conv.createVCards( addressees );
data( vcard.utf8() );
}
@@ -332,16 +332,16 @@ void Groupwise::slotReadReceiveAddressees( const KABC::Addressee::List addressee
void Groupwise::updateAddressbook( const KURL &url )
{
kdDebug() << "Groupwise::updateAddressbook() " << url << endl;
- QString u = soapUrl( url );
+ TQString u = soapUrl( url );
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
debugMessage( "update AB URL: " + u );
debugMessage( "update AB User: " + user );
debugMessage( "update AB Password: " + pass );
- QString query = url.query();
+ TQString query = url.query();
unsigned long lastSequenceNumber = 0;
unsigned long lastPORebuildTime = 0;
@@ -350,13 +350,13 @@ void Groupwise::updateAddressbook( const KURL &url )
errorMessage( i18n("No addressbook IDs given.") );
return;
} else {
- QStringList ids;
+ TQStringList ids;
query = query.mid( 1 );
- QStringList queryItems = QStringList::split( "&", query );
- QStringList::ConstIterator it;
+ TQStringList queryItems = TQStringList::split( "&", query );
+ TQStringList::ConstIterator it;
for( it = queryItems.begin(); it != queryItems.end(); ++it ) {
- QStringList item = QStringList::split( "=", (*it) );
+ TQStringList item = TQStringList::split( "=", (*it) );
if ( item.count() == 2 && item[ 0 ] == "addressbookid" ) {
ids.append( item[ 1 ] );
}
@@ -369,10 +369,10 @@ void Groupwise::updateAddressbook( const KURL &url )
debugMessage( "update IDs: " + ids.join( "," ) );
GroupwiseServer server( u, user, pass, 0 );
- connect( &server, SIGNAL( errorMessage( const QString &, bool ) ),
- SLOT( slotServerErrorMessage( const QString &, bool ) ) );
- connect( &server, SIGNAL( gotAddressees( const KABC::Addressee::List ) ),
- SLOT( slotReadReceiveAddressees( const KABC::Addressee::List ) ) );
+ connect( &server, TQT_SIGNAL( errorMessage( const TQString &, bool ) ),
+ TQT_SLOT( slotServerErrorMessage( const TQString &, bool ) ) );
+ connect( &server, TQT_SIGNAL( gotAddressees( const KABC::Addressee::List ) ),
+ TQT_SLOT( slotReadReceiveAddressees( const KABC::Addressee::List ) ) );
kdDebug() << " Login" << endl;
if ( !server.login() ) {
@@ -391,12 +391,12 @@ void Groupwise::updateAddressbook( const KURL &url )
}
}
-void Groupwise::errorMessage( const QString &msg )
+void Groupwise::errorMessage( const TQString &msg )
{
error( KIO::ERR_SLAVE_DEFINED, msg );
}
-void Groupwise::debugMessage( const QString &msg )
+void Groupwise::debugMessage( const TQString &msg )
{
#if 0
data( ( msg + "\n" ).utf8() );
@@ -416,7 +416,7 @@ void Groupwise::slotReadAddressBookProcessedSize( int size )
processedSize( size );
}
-void Groupwise::slotServerErrorMessage( const QString & serverErrorMessage, bool fatal )
+void Groupwise::slotServerErrorMessage( const TQString & serverErrorMessage, bool fatal )
{
kdDebug() << "Groupwise::slotJobErrorMessage()" << serverErrorMessage << ( fatal ? ", FATAL!" : ", proceeding" ) << endl;
errorMessage( i18n( "An error occurred while communicating with the GroupWise server:\n%1" ).arg( serverErrorMessage ) );
diff --git a/kresources/groupwise/kioslave/groupwise.h b/kresources/groupwise/kioslave/groupwise.h
index c4362d634..9a816ad85 100644
--- a/kresources/groupwise/kioslave/groupwise.h
+++ b/kresources/groupwise/kioslave/groupwise.h
@@ -22,31 +22,31 @@
#include <kio/slavebase.h>
-#include <qobject.h>
+#include <tqobject.h>
-class Groupwise : public QObject, public KIO::SlaveBase
+class Groupwise : public TQObject, public KIO::SlaveBase
{
Q_OBJECT
public:
void get( const KURL &url );
- Groupwise( const QCString &protocol, const QCString &pool,
- const QCString &app );
+ Groupwise( const TQCString &protocol, const TQCString &pool,
+ const TQCString &app );
protected:
- void debugMessage( const QString & );
- void errorMessage( const QString & );
+ void debugMessage( const TQString & );
+ void errorMessage( const TQString & );
void getFreeBusy( const KURL &url );
void getCalendar( const KURL &url );
void getAddressbook( const KURL &url );
void updateAddressbook( const KURL &url );
- QString soapUrl( const KURL &url );
+ TQString soapUrl( const KURL &url );
protected slots:
void slotReadAddressBookTotalSize( int );
void slotReadAddressBookProcessedSize( int );
- void slotServerErrorMessage( const QString &, bool );
+ void slotServerErrorMessage( const TQString &, bool );
void slotReadReceiveAddressees( const KABC::Addressee::List );
};
diff --git a/kresources/groupwise/soap/contactconverter.cpp b/kresources/groupwise/soap/contactconverter.cpp
index a971e56a1..2abb8f452 100644
--- a/kresources/groupwise/soap/contactconverter.cpp
+++ b/kresources/groupwise/soap/contactconverter.cpp
@@ -110,10 +110,10 @@ ngwt__Contact* ContactConverter::convertToContact( const KABC::Addressee &addr )
ngwt__EmailAddressList* emailList = soap_new_ngwt__EmailAddressList( soap(), -1 );
std::vector<std::string>* list = soap_new_std__vectorTemplateOfstd__string( soap(), -1 );
- QStringList emails = addr.emails();
+ TQStringList emails = addr.emails();
emailList->primary = qStringToString( emails.first() );
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = emails.begin(); it != emails.end(); ++it )
list->push_back( std::string( (*it).utf8() ) );
@@ -284,7 +284,7 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact )
if ( fullName->displayName )
addr.setFormattedName( stringToQString( fullName->displayName ) );
else
- addr.setFormattedName( QString::null );
+ addr.setFormattedName( TQString::null );
if ( fullName->namePrefix )
addr.setPrefix( stringToQString( fullName->namePrefix ) );
@@ -304,7 +304,7 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact )
// Emails
if ( contact->emailList ) {
- QStringList emails;
+ TQStringList emails;
if ( contact->emailList->primary )
emails.append( stringToQString( contact->emailList->primary ) );
@@ -324,7 +324,7 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact )
// Phone numbers
if ( contact->phoneList && !contact->phoneList->phone.empty() ) {
- QString defaultNumber = stringToQString( contact->phoneList->default_ );
+ TQString defaultNumber = stringToQString( contact->phoneList->default_ );
std::vector<class ngwt__PhoneNumber*> list = contact->phoneList->phone;
std::vector<class ngwt__PhoneNumber*>::const_iterator it;
@@ -371,7 +371,7 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact )
ngwt__PersonalInfo* info = contact->personalInfo;
if ( info->birthday ) {
- QDate date = stringToQDate( info->birthday );
+ TQDate date = stringToQDate( info->birthday );
if ( date.isValid() )
addr.setBirthday( date );
}
@@ -383,28 +383,28 @@ KABC::Addressee ContactConverter::convertFromContact( ngwt__Contact* contact )
// IM addresses
if ( contact->imList ) {
// put all the im addresses on the same service into the same qstringlist
- QMap<QString, QStringList> addressMap;
+ TQMap<TQString, TQStringList> addressMap;
std::vector<ngwt__ImAddress*> list = contact->imList->im;
std::vector<ngwt__ImAddress*>::const_iterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
- QStringList addressesForService = addressMap[ stringToQString( (*it)->service ) ];
+ TQStringList addressesForService = addressMap[ stringToQString( (*it)->service ) ];
addressesForService.append( stringToQString( (*it)->address ) );
addressMap.insert( stringToQString( (*it)->service ), addressesForService );
}
// then construct a custom field from each qstringlist
- QMap<QString, QStringList>::Iterator addrIt;
+ TQMap<TQString, TQStringList>::Iterator addrIt;
for ( addrIt = addressMap.begin(); addrIt != addressMap.end(); ++addrIt )
{
- QString protocol = addrIt.key();
- QStringList addresses = addrIt.data();
+ TQString protocol = addrIt.key();
+ TQStringList addresses = addrIt.data();
//kdDebug() << "got IM addresses for '" << protocol << "' : " << addresses << endl;
// TODO: map protocol to KDE's set of known protocol names (need to know the set of services in use elsewhere)
if ( protocol == "nov" )
protocol = "groupwise";
- addr.insertCustom( QString::fromLatin1("messaging/%1").arg( protocol ),
- QString::fromLatin1( "All" ),
- addresses.join( QChar( 0xE000 ) ) );
+ addr.insertCustom( TQString::fromLatin1("messaging/%1").arg( protocol ),
+ TQString::fromLatin1( "All" ),
+ addresses.join( TQChar( 0xE000 ) ) );
}
}
@@ -576,23 +576,23 @@ ngwt__ImAddressList* ContactConverter::convertImAddresses( const KABC::Addressee
// if it contains IM addresses
// extract each one and add it to imList
- const QStringList customs = addr.customs();
- QStringList::ConstIterator it;
+ const TQStringList customs = addr.customs();
+ TQStringList::ConstIterator it;
bool isSet = false;
for ( it = customs.begin(); it != customs.end(); ++it ) {
- QString app, name, value;
+ TQString app, name, value;
splitField( *it, app, name, value );
- if ( app.startsWith( QString::fromLatin1( "messaging/" ) ) && name == QString::fromLatin1( "All" ) ) {
+ if ( app.startsWith( TQString::fromLatin1( "messaging/" ) ) && name == TQString::fromLatin1( "All" ) ) {
// get the protocol for this field
- QString protocol = app.section( '/', 1, 1 );
+ TQString protocol = app.section( '/', 1, 1 );
if ( !protocol.isEmpty() ) {
if ( protocol == "groupwise" )
protocol = "novell";
- QStringList addresses = QStringList::split( QChar( 0xE000 ), value );
- QStringList::iterator end = addresses.end();
+ TQStringList addresses = TQStringList::split( TQChar( 0xE000 ), value );
+ TQStringList::iterator end = addresses.end();
// extract each address for this protocol, and create an ngwt__ImAddress for it, and append it to list.
- for ( QStringList::ConstIterator it = addresses.begin(); it != end; ++it ) {
+ for ( TQStringList::ConstIterator it = addresses.begin(); it != end; ++it ) {
ngwt__ImAddress* address = soap_new_ngwt__ImAddress( soap(), -1 );
address->service = soap_new_std__string( soap(), -1 );
address->address = soap_new_std__string( soap(), -1 );
@@ -616,11 +616,11 @@ ngwt__ImAddressList* ContactConverter::convertImAddresses( const KABC::Addressee
}
}
-void ContactConverter::splitField( const QString &str, QString &app, QString &name, QString &value )
+void ContactConverter::splitField( const TQString &str, TQString &app, TQString &name, TQString &value )
{
int colon = str.find( ':' );
if ( colon != -1 ) {
- QString tmp = str.left( colon );
+ TQString tmp = str.left( colon );
value = str.mid( colon + 1 );
int dash = tmp.find( '-' );
diff --git a/kresources/groupwise/soap/contactconverter.h b/kresources/groupwise/soap/contactconverter.h
index b4376713f..6594c6d0e 100644
--- a/kresources/groupwise/soap/contactconverter.h
+++ b/kresources/groupwise/soap/contactconverter.h
@@ -47,8 +47,8 @@ class ContactConverter : public GWConverter
which is a different structure to that used for phone numbers, email addresses etc */
ngwt__ImAddressList* convertImAddresses( const KABC::Addressee& );
// splits up an arbitrary custom field
- void splitField( const QString &str, QString &app, QString &name, QString &value );
- static QMap<QString, QString > mIMProtocolMap;
+ void splitField( const TQString &str, TQString &app, TQString &name, TQString &value );
+ static TQMap<TQString, TQString > mIMProtocolMap;
};
#endif
diff --git a/kresources/groupwise/soap/groupwiseserver.cpp b/kresources/groupwise/soap/groupwiseserver.cpp
index 8445be9ff..28c73b68d 100644
--- a/kresources/groupwise/soap/groupwiseserver.cpp
+++ b/kresources/groupwise/soap/groupwiseserver.cpp
@@ -38,8 +38,8 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qnamespace.h>
-#include <qfile.h>
+#include <tqnamespace.h>
+#include <tqfile.h>
#include "ksslsocket.h"
#include "contactconverter.h"
@@ -55,11 +55,11 @@
#include "groupwiseserver.h"
-static QMap<struct soap *,GroupwiseServer *> mServerMap;
+static TQMap<struct soap *,GroupwiseServer *> mServerMap;
int myOpen( struct soap *soap, const char *endpoint, const char *host, int port )
{
- QMap<struct soap *,GroupwiseServer *>::ConstIterator it;
+ TQMap<struct soap *,GroupwiseServer *>::ConstIterator it;
it = mServerMap.find( soap );
if ( it == mServerMap.end() ) {
soap->error = SOAP_FAULT;
@@ -71,7 +71,7 @@ int myOpen( struct soap *soap, const char *endpoint, const char *host, int port
int myClose( struct soap *soap )
{
- QMap<struct soap *,GroupwiseServer *>::ConstIterator it;
+ TQMap<struct soap *,GroupwiseServer *>::ConstIterator it;
it = mServerMap.find( soap );
if ( it == mServerMap.end() ) return SOAP_FAULT;
@@ -80,7 +80,7 @@ int myClose( struct soap *soap )
int mySendCallback( struct soap *soap, const char *s, size_t n )
{
- QMap<struct soap *,GroupwiseServer *>::ConstIterator it;
+ TQMap<struct soap *,GroupwiseServer *>::ConstIterator it;
it = mServerMap.find( soap );
if ( it == mServerMap.end() ) return SOAP_FAULT;
@@ -89,7 +89,7 @@ int mySendCallback( struct soap *soap, const char *s, size_t n )
size_t myReceiveCallback( struct soap *soap, char *s, size_t n )
{
- QMap<struct soap *,GroupwiseServer *>::ConstIterator it;
+ TQMap<struct soap *,GroupwiseServer *>::ConstIterator it;
it = mServerMap.find( soap );
if ( it == mServerMap.end() ) {
kdDebug() << "No soap object found" << endl;
@@ -114,11 +114,11 @@ int GroupwiseServer::gSoapOpen( struct soap *soap, const char *,
// kdDebug() << "Creating KSSLSocket()" << endl;
m_sock = new KSSLSocket();
m_sock->setTimeout( KProtocolManager::connectTimeout() );
- connect( m_sock, SIGNAL( sslFailure() ), SLOT( slotSslError() ) );
+ connect( m_sock, TQT_SIGNAL( sslFailure() ), TQT_SLOT( slotSslError() ) );
} else {
m_sock = new KExtendedSocket();
}
- mErrorText = QString::null;
+ mErrorText = TQString::null;
m_sock->reset();
m_sock->setBlockingMode( false );
@@ -128,8 +128,8 @@ int GroupwiseServer::gSoapOpen( struct soap *soap, const char *,
int rc = m_sock->lookup();
if (rc != 0 ) {
kdError() << "gSoapOpen: lookup of " << host << " failed " << rc << endl;
- QString errorMessage;
- errorMessage = QString::fromLatin1( strerror( errno ) );
+ TQString errorMessage;
+ errorMessage = TQString::fromLatin1( strerror( errno ) );
perror( 0 );
soap->error = SOAP_TCP_ERROR;
mErrorText = i18n("Connect failed: %1.").arg( errorMessage );
@@ -139,15 +139,15 @@ int GroupwiseServer::gSoapOpen( struct soap *soap, const char *,
rc = m_sock->connect();
if ( rc != 0 ) {
kdError() << "gSoapOpen: connect failed " << rc << endl;
- QString errorMessage;
+ TQString errorMessage;
if ( rc == -1 ) {
- errorMessage = QString::fromLatin1( strerror( errno ) );
+ errorMessage = TQString::fromLatin1( strerror( errno ) );
perror( 0 );
}
//set the soap struct's error here!
else {
if ( rc == -3 )
- errorMessage = QString::fromLatin1( "Connection timed out. Check host and port number" );
+ errorMessage = TQString::fromLatin1( "Connection timed out. Check host and port number" );
}
mErrorText = i18n("Connect failed: %1.").arg( errorMessage );
soap->error =SOAP_TCP_ERROR;
@@ -263,9 +263,9 @@ size_t GroupwiseServer::gSoapReceiveCallback( struct soap *soap, char *s,
return ret;
}
-GroupwiseServer::GroupwiseServer( const QString &url, const QString &user,
- const QString &password, QObject *parent )
- : QObject( parent, "GroupwiseServer" ),
+GroupwiseServer::GroupwiseServer( const TQString &url, const TQString &user,
+ const TQString &password, TQObject *parent )
+ : TQObject( parent, "GroupwiseServer" ),
mUrl( url ), mUser( user ), mPassword( password ),
mSSL( url.left(6)=="https:" ), m_sock( 0 ),
mError( 0 )
@@ -644,7 +644,7 @@ bool GroupwiseServer::logout()
return true;
}
-GroupWise::DeltaInfo GroupwiseServer::getDeltaInfo( const QStringList & addressBookIds )
+GroupWise::DeltaInfo GroupwiseServer::getDeltaInfo( const TQStringList & addressBookIds )
{
GroupWise::DeltaInfo info;
info.count = 0;
@@ -719,7 +719,7 @@ GroupWise::AddressBook::List GroupwiseServer::addressBookList()
return books;
}
-bool GroupwiseServer::readAddressBooksSynchronous( const QStringList &addrBookIds )
+bool GroupwiseServer::readAddressBooksSynchronous( const TQStringList &addrBookIds )
{
if ( mSession.empty() ) {
kdError() << "GroupwiseServer::readAddressBooksSynchronous(): no session." << endl;
@@ -735,7 +735,7 @@ bool GroupwiseServer::readAddressBooksSynchronous( const QStringList &addrBookId
return true;
}
-bool GroupwiseServer::updateAddressBooks( const QStringList &addrBookIds, const unsigned long startSequenceNumber, const unsigned long lastPORebuildTime )
+bool GroupwiseServer::updateAddressBooks( const TQStringList &addrBookIds, const unsigned long startSequenceNumber, const unsigned long lastPORebuildTime )
{
if ( mSession.empty() ) {
kdError() << "GroupwiseServer::updateAddressBooks(): no session." << endl;
@@ -757,7 +757,7 @@ bool GroupwiseServer::updateAddressBooks( const QStringList &addrBookIds, const
return true;
}
-std::string GroupwiseServer::getFullIDFor( const QString & gwRecordIDFromIcal )
+std::string GroupwiseServer::getFullIDFor( const TQString & gwRecordIDFromIcal )
{
// first get the ID of the calendar folder - because we don't store this in the resource we have to fetch it manually
std::string calendarFolderID;
@@ -847,12 +847,12 @@ bool GroupwiseServer::acceptIncidence( KCal::Incidence *incidence )
GWConverter conv( mSoap );
- QString qGwUid = incidence->customProperty( "GWRESOURCE", "UID" );
+ TQString qGwUid = incidence->customProperty( "GWRESOURCE", "UID" );
std::string gwUID;
if ( qGwUid.isEmpty() )
{
- QString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
+ TQString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
// we need to do a getItem to get the item's complete ID, including the container portion
// this is only necessary because the Ical GWRECORDID property is incomplete
gwUID = getFullIDFor( gwRecordIDFromIcal );
@@ -899,7 +899,7 @@ bool GroupwiseServer::declineIncidence( KCal::Incidence *incidence )
if ( gwUID.empty() )
{
- QString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
+ TQString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
// we need to do a getItem to get the item's complete ID, including the container portion
// this is only necessary because the Ical GWRECORDID property is incomplete
gwUID = getFullIDFor( gwRecordIDFromIcal );
@@ -941,7 +941,7 @@ bool GroupwiseServer::addIncidence( KCal::Incidence *incidence,
kdDebug() << "GroupwiseServer::addIncidence() " << incidence->summary()
<< endl;
- QString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
+ TQString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
if( !gwRecordIDFromIcal.isEmpty() || !incidence->customProperty( "GWRESOURCE", "UID" ).isEmpty() ) {
kdDebug() << "Incidence has GroupWise ID already: (" << gwRecordIDFromIcal << "ical|" << incidence->customProperty( "GWRESOURCE", "UID" ) << "soap) and organizer : " << incidence->organizer().email() << endl;
return acceptIncidence( incidence );
@@ -985,7 +985,7 @@ bool GroupwiseServer::addIncidence( KCal::Incidence *incidence,
{
std::string firstId = *(response.id.begin() );
incidence->setCustomProperty( "GWRESOURCE", "UID",
- QString::fromUtf8( firstId.c_str() ) );
+ TQString::fromUtf8( firstId.c_str() ) );
}
return true;
}
@@ -1106,7 +1106,7 @@ bool GroupwiseServer::checkResponse( int result, ngwt__Status *status )
kdDebug() << "SOAP call succeeded" << endl;
}
if ( status && status->code != 0 ) {
- QString msg = "SOAP Response Status: " + QString::number( status->code );
+ TQString msg = "SOAP Response Status: " + TQString::number( status->code );
if ( status->description ) {
msg += " ";
msg += status->description->c_str();
@@ -1130,11 +1130,11 @@ bool GroupwiseServer::deleteIncidence( KCal::Incidence *incidence )
<< endl;
// decline if necessary on the server
- QString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
+ TQString gwRecordIDFromIcal = incidence->nonKDECustomProperty( "X-GWRECORDID" );
// debug contents of message custom properties
kdDebug() << "incidence custom properties BEGIN" << endl;
- typedef QMap<QCString, QString> PropMap;
+ typedef TQMap<TQCString, TQString> PropMap;
PropMap customs = incidence->customProperties();
PropMap::Iterator it;
for ( it = customs.begin(); it != customs.end(); ++it )
@@ -1219,7 +1219,7 @@ bool GroupwiseServer::retractRequest( KCal::Incidence *incidence, RetractCause c
return checkResponse( result, response.status );
}
-bool GroupwiseServer::insertAddressee( const QString &addrBookId, KABC::Addressee &addr )
+bool GroupwiseServer::insertAddressee( const TQString &addrBookId, KABC::Addressee &addr )
{
if ( mSession.empty() ) {
kdError() << "GroupwiseServer::insertAddressee(): no session." << endl;
@@ -1244,7 +1244,7 @@ bool GroupwiseServer::insertAddressee( const QString &addrBookId, KABC::Addresse
&request, &response );
if ( !checkResponse( result, response.status ) ) return false;
- addr.insertCustom( "GWRESOURCE", "UID", QString::fromUtf8( response.id.front().c_str() ) );
+ addr.insertCustom( "GWRESOURCE", "UID", TQString::fromUtf8( response.id.front().c_str() ) );
addr.setChanged( false );
return true;
@@ -1325,8 +1325,8 @@ bool GroupwiseServer::readCalendarSynchronous( KCal::Calendar *cal )
return true;
}
-bool GroupwiseServer::readFreeBusy( const QString &email,
- const QDate &start, const QDate &end, KCal::FreeBusy *freeBusy )
+bool GroupwiseServer::readFreeBusy( const TQString &email,
+ const TQDate &start, const TQDate &end, KCal::FreeBusy *freeBusy )
{
if ( mSession.empty() ) {
kdError() << "GroupwiseServer::readFreeBusy(): no session." << endl;
@@ -1370,7 +1370,7 @@ bool GroupwiseServer::readFreeBusy( const QString &email,
// Get free/busy data
_ngwm__getFreeBusyRequest getFreeBusyRequest;
- getFreeBusyRequest.freeBusySessionId = QString::number( fbSessionId ).utf8();
+ getFreeBusyRequest.freeBusySessionId = TQString::number( fbSessionId ).utf8();
_ngwm__getFreeBusyResponse getFreeBusyResponse;
@@ -1408,8 +1408,8 @@ bool GroupwiseServer::readFreeBusy( const QString &email,
if ( blocks ) {
std::vector<class ngwt__FreeBusyBlock *>::const_iterator it2;
for( it2 = blocks->begin(); it2 != blocks->end(); ++it2 ) {
- QDateTime blockStart = conv.charToQDateTime( (*it2)->startDate );
- QDateTime blockEnd = conv.charToQDateTime( (*it2)->endDate );
+ TQDateTime blockStart = conv.charToQDateTime( (*it2)->startDate );
+ TQDateTime blockEnd = conv.charToQDateTime( (*it2)->endDate );
ngwt__AcceptLevel acceptLevel = *(*it2)->acceptLevel;
/* TODO: show Free/Busy subject in diagram - we need to support these as people use it for checking others' calendars */
@@ -1458,7 +1458,7 @@ void GroupwiseServer::emitReadAddressBookProcessedSize( int s )
emit readAddressBookProcessedSize( s );
}
-void GroupwiseServer::emitErrorMessage( const QString & msg, bool fatal )
+void GroupwiseServer::emitErrorMessage( const TQString & msg, bool fatal )
{
emit errorMessage( msg, fatal );
}
@@ -1468,16 +1468,16 @@ void GroupwiseServer::emitGotAddressees( const KABC::Addressee::List addressees
emit gotAddressees( addressees );
}
-void GroupwiseServer::log( const QString &prefix, const char *s, size_t n )
+void GroupwiseServer::log( const TQString &prefix, const char *s, size_t n )
{
if ( mLogFile.isEmpty() ) return;
kdDebug() << "GroupwiseServer::log() " << prefix << " " << n << " bytes"
<< endl;
- QString log = mLogFile + "_" + QString::number( getpid() ) +
+ TQString log = mLogFile + "_" + TQString::number( getpid() ) +
"_" + prefix + ".log";
- QFile f( log );
+ TQFile f( log );
if ( !f.open( IO_WriteOnly | IO_Append ) ) {
kdError() << "Unable to open log file '" << log << "'" << endl;
} else {
@@ -1564,7 +1564,7 @@ bool GroupwiseServer::readUserSettings( ngwt__Settings *&returnedSettings )
return true; /** FIXME return false if no settings fetched */
}
-bool GroupwiseServer::modifyUserSettings( QMap<QString, QString> & settings )
+bool GroupwiseServer::modifyUserSettings( TQMap<TQString, TQString> & settings )
{
kdDebug() << "GroupwiseServer::userSettings()" << endl;
@@ -1575,7 +1575,7 @@ bool GroupwiseServer::modifyUserSettings( QMap<QString, QString> & settings )
_ngwm__modifySettingsRequest request;
_ngwm__modifySettingsResponse response;
request.settings = soap_new_ngwt__SettingsList( mSoap, -1 );
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::Iterator it;
for ( it = settings.begin(); it != settings.end(); ++it )
{
kdDebug() << " creating Custom for " << it.key() << ", " << it.data() << endl;
@@ -1610,7 +1610,7 @@ bool GroupwiseServer::setCompleted( KCal::Todo * todo )
if ( todo )
{
GWConverter conv( mSoap );
- QString id = todo->customProperty( "GWRESOURCE", "UID" );
+ TQString id = todo->customProperty( "GWRESOURCE", "UID" );
ngwt__ItemRefList * items = soap_new_ngwt__ItemRefList( mSoap, 1 );
items->item.push_back( *( conv.qStringToString( id ) ) );
if ( todo->isCompleted() )
diff --git a/kresources/groupwise/soap/groupwiseserver.h b/kresources/groupwise/soap/groupwiseserver.h
index 8197ba5cd..8117ebb2b 100644
--- a/kresources/groupwise/soap/groupwiseserver.h
+++ b/kresources/groupwise/soap/groupwiseserver.h
@@ -23,12 +23,12 @@
#include <kio/job.h>
#include <kio/jobclasses.h>
-#include <qapplication.h>
-#include <qmap.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qthread.h>
-#include <qvaluelist.h>
+#include <tqapplication.h>
+#include <tqmap.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqthread.h>
+#include <tqvaluelist.h>
#include <string>
@@ -69,13 +69,13 @@ enum ErrorCode { NoError, RefreshNeeded };
class AddressBook
{
public:
- typedef QValueList<AddressBook> List;
+ typedef TQValueList<AddressBook> List;
AddressBook() : isPersonal( false ), isFrequentContacts( false ), isSystemAddressBook( false ) {}
- QString id;
- QString name;
- QString description;
+ TQString id;
+ TQString name;
+ TQString description;
bool isPersonal;
bool isFrequentContacts;
bool isSystemAddressBook;
@@ -98,12 +98,12 @@ class GroupwiseServer : public QObject
public:
bool checkResponse( int result, ngwt__Status *status );
enum RetractCause { DueToResend, Other };
- GroupwiseServer( const QString &url, const QString &user,
- const QString &password, QObject *parent );
+ GroupwiseServer( const TQString &url, const TQString &user,
+ const TQString &password, TQObject *parent );
~GroupwiseServer();
int error() const { return mError; }
- QString errorText() const { return mErrorText; }
+ TQString errorText() const { return mErrorText; }
bool login();
bool logout();
@@ -149,22 +149,22 @@ class GroupwiseServer : public QObject
GroupWise::AddressBook::List addressBookList();
- bool readAddressBooksSynchronous( const QStringList &addrBookIds );
- bool updateAddressBooks( const QStringList &addrBookIds,
+ bool readAddressBooksSynchronous( const TQStringList &addrBookIds );
+ bool updateAddressBooks( const TQStringList &addrBookIds,
const unsigned long startSequenceNumber, const unsigned long lastPORebuildTime );
- bool insertAddressee( const QString &addrBookId, KABC::Addressee& );
+ bool insertAddressee( const TQString &addrBookId, KABC::Addressee& );
bool changeAddressee( const KABC::Addressee& );
bool removeAddressee( const KABC::Addressee& );
- bool readFreeBusy( const QString &email, const QDate &start,
- const QDate &end, KCal::FreeBusy * );
+ bool readFreeBusy( const TQString &email, const TQDate &start,
+ const TQDate &end, KCal::FreeBusy * );
bool dumpData();
void dumpFolderList();
// bool getDelta();
- GroupWise::DeltaInfo getDeltaInfo( const QStringList & addressBookIds );
+ GroupWise::DeltaInfo getDeltaInfo( const TQStringList & addressBookIds );
bool getCategoryList();
@@ -176,20 +176,20 @@ class GroupwiseServer : public QObject
void emitReadAddressBookTotalSize( int );
void emitReadAddressBookProcessedSize( int );
- void emitErrorMessage( const QString &, bool );
+ void emitErrorMessage( const TQString &, bool );
void emitGotAddressees( const KABC::Addressee::List );
bool readUserSettings( ngwt__Settings *&settings );
- bool modifyUserSettings( QMap<QString, QString> & );
+ bool modifyUserSettings( TQMap<TQString, TQString> & );
- QString userEmail() const { return mUserEmail; }
- QString userName() const { return mUserName; }
- QString userUuid() const { return mUserUuid; }
+ TQString userEmail() const { return mUserEmail; }
+ TQString userName() const { return mUserName; }
+ TQString userUuid() const { return mUserUuid; }
signals:
void readAddressBookTotalSize( int );
void readAddressBookProcessedSize( int );
- void errorMessage( const QString &, bool );
+ void errorMessage( const TQString &, bool );
void gotAddressees( const KABC::Addressee::List );
protected:
@@ -205,29 +205,29 @@ class GroupwiseServer : public QObject
/**
* Given a partial record ID, query the server for the full version from the calendar folder
*/
- std::string getFullIDFor( const QString & );
+ std::string getFullIDFor( const TQString & );
/**
* Check if an incidence involves other people
*/
bool iAmTheOrganizer( KCal::Incidence * );
- void log( const QString &prefix, const char *s, size_t n );
+ void log( const TQString &prefix, const char *s, size_t n );
protected slots:
void slotSslError();
private:
- QString mUrl;
- QString mUser;
- QString mPassword;
+ TQString mUrl;
+ TQString mUser;
+ TQString mPassword;
bool mSSL;
std::string mSession;
- QString mUserName;
- QString mUserEmail;
- QString mUserUuid;
+ TQString mUserName;
+ TQString mUserEmail;
+ TQString mUserUuid;
std::string mCalendarFolder;
std::string mCheckListFolder;
@@ -238,9 +238,9 @@ class GroupwiseServer : public QObject
KExtendedSocket *m_sock;
int mError;
- QString mErrorText;
+ TQString mErrorText;
- QString mLogFile;
+ TQString mLogFile;
};
#endif
diff --git a/kresources/groupwise/soap/gwconverter.cpp b/kresources/groupwise/soap/gwconverter.cpp
index e005974e6..ba64cff9a 100644
--- a/kresources/groupwise/soap/gwconverter.cpp
+++ b/kresources/groupwise/soap/gwconverter.cpp
@@ -35,7 +35,7 @@ struct soap* GWConverter::soap() const
return mSoap;
}
-std::string* GWConverter::qStringToString( const QString &string )
+std::string* GWConverter::qStringToString( const TQString &string )
{
std::string *str = soap_new_std__string( mSoap, -1 );
str->append( string.utf8() );
@@ -43,20 +43,20 @@ std::string* GWConverter::qStringToString( const QString &string )
return str;
}
-QString GWConverter::stringToQString( const std::string &str )
+TQString GWConverter::stringToQString( const std::string &str )
{
- return QString::fromUtf8( str.c_str() );
+ return TQString::fromUtf8( str.c_str() );
}
-QString GWConverter::stringToQString( std::string *str )
+TQString GWConverter::stringToQString( std::string *str )
{
- if ( !str ) return QString::null;
- return QString::fromUtf8( str->c_str() );
+ if ( !str ) return TQString::null;
+ return TQString::fromUtf8( str->c_str() );
}
-char* GWConverter::qStringToChar( const QString &string )
+char* GWConverter::qStringToChar( const TQString &string )
{
- QCString str = string.utf8();
+ TQCString str = string.utf8();
char* charStr = (char*)soap_malloc( mSoap, str.length() + 1 );
memcpy( charStr, str, str.length() );
@@ -65,80 +65,80 @@ char* GWConverter::qStringToChar( const QString &string )
return charStr;
}
-QDate GWConverter::charToQDate( const char *str )
+TQDate GWConverter::charToQDate( const char *str )
{
- if ( !str ) return QDate(); // FIXME: Qt::ISODate is probably no good here because it expects yyyy-MM-dd not yyyyMMdd
- return QDate::fromString( QString::fromUtf8( str ), Qt::ISODate );
+ if ( !str ) return TQDate(); // FIXME: Qt::ISODate is probably no good here because it expects yyyy-MM-dd not yyyyMMdd
+ return TQDate::fromString( TQString::fromUtf8( str ), Qt::ISODate );
}
-char *GWConverter::qDateTimeToChar( const QDateTime &dt,
- const QString &timezone )
+char *GWConverter::qDateTimeToChar( const TQDateTime &dt,
+ const TQString &timezone )
{
return qDateTimeToChar( KPimPrefs::localTimeToUtc( dt, timezone ) );
}
-char *GWConverter::qDateTimeToChar( const QDateTime &dt )
+char *GWConverter::qDateTimeToChar( const TQDateTime &dt )
{
return qStringToChar( dt.toString( "yyyyMMddThhmmZ" ) );
}
-std::string* GWConverter::qDateTimeToString( const QDateTime &dt, const QString &timezone )
+std::string* GWConverter::qDateTimeToString( const TQDateTime &dt, const TQString &timezone )
{
return qDateTimeToString( KPimPrefs::localTimeToUtc( dt, timezone ) );
}
-std::string* GWConverter::qDateTimeToString( const QDateTime &dt )
+std::string* GWConverter::qDateTimeToString( const TQDateTime &dt )
{
return qStringToString( dt.toString( "yyyyMMddThhmmZ" ) );
}
-QDateTime GWConverter::stringToQDateTime( const std::string* str )
+TQDateTime GWConverter::stringToQDateTime( const std::string* str )
{
- QDateTime dt = QDateTime::fromString( QString::fromUtf8( str->c_str() ), Qt::ISODate );
+ TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str->c_str() ), Qt::ISODate );
return dt;
}
-char* GWConverter::qDateToChar( const QDate &date )
+char* GWConverter::qDateToChar( const TQDate &date )
{
return qStringToChar( date.toString( "yyyyMMdd" ) );
}
-std::string* GWConverter::qDateToString( const QDate &date )
+std::string* GWConverter::qDateToString( const TQDate &date )
{
return qStringToString( date.toString( "yyyyMMdd" ) );
}
-QDate GWConverter::stringToQDate( std::string* str )
+TQDate GWConverter::stringToQDate( std::string* str )
{
//NB this ISODate may become unnecessary, if GW stops sending in yyyy-mm-dd format again
- return QDate::fromString( QString::fromLatin1( str->c_str() ), Qt::ISODate );
+ return TQDate::fromString( TQString::fromLatin1( str->c_str() ), Qt::ISODate );
}
-QDateTime GWConverter::charToQDateTime( const char *str )
+TQDateTime GWConverter::charToQDateTime( const char *str )
{
- if ( !str ) return QDateTime();
+ if ( !str ) return TQDateTime();
// kdDebug() << "charToQDateTime(): " << str << endl;
// as above re Qt::ISODate
- QDateTime dt = QDateTime::fromString( QString::fromUtf8( str ), Qt::ISODate );
+ TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str ), Qt::ISODate );
// kdDebug() << " " << dt.toString() << endl;
return dt;
}
-QDateTime GWConverter::charToQDateTime( const char *str,
- const QString &timezone )
+TQDateTime GWConverter::charToQDateTime( const char *str,
+ const TQString &timezone )
{
- if ( !str ) return QDateTime();
- QDateTime utc = charToQDateTime( str );
+ if ( !str ) return TQDateTime();
+ TQDateTime utc = charToQDateTime( str );
return KPimPrefs::utcToLocalTime( utc, timezone );
}
-bool GWConverter::emailsMatch( const QString & email1, const QString & email2 )
+bool GWConverter::emailsMatch( const TQString & email1, const TQString & email2 )
{
// eg demo3.po1.dom1@dmz1.provo.novell.com == demo3@dmz1.provo.novell.com
if ( email1 == email2 )
return true;
- QString shorter, longer;
+ TQString shorter, longer;
if ( email1.length() < email2.length() )
{
shorter = email1;
@@ -150,12 +150,12 @@ bool GWConverter::emailsMatch( const QString & email1, const QString & email2 )
longer = email1;
}
- QString shortStem = shorter.section( '@', 0, 0 );
- QString longStem = longer.section( '@', 0, 0 );
- QString shortHost = shorter.section( '@', 1, 1 );
- QString longHost = longer.section( '@', 1, 1 );
+ TQString shortStem = shorter.section( '@', 0, 0 );
+ TQString longStem = longer.section( '@', 0, 0 );
+ TQString shortHost = shorter.section( '@', 1, 1 );
+ TQString longHost = longer.section( '@', 1, 1 );
- QString extension = longStem.right( longStem.length() - shortStem.length() );
+ TQString extension = longStem.right( longStem.length() - shortStem.length() );
kdDebug() << "gwconverter::emailsMatch(): " << shorter << " = " << longer << endl;
kdDebug() << "shortStem: " << shortStem << ", longStem: " << longStem << ", extension: " << extension << endl;
diff --git a/kresources/groupwise/soap/gwconverter.h b/kresources/groupwise/soap/gwconverter.h
index be8a8dd61..08d5220fc 100644
--- a/kresources/groupwise/soap/gwconverter.h
+++ b/kresources/groupwise/soap/gwconverter.h
@@ -21,8 +21,8 @@
#ifndef KABC_GW_CONVERTER_H
#define KABC_GW_CONVERTER_H
-#include <qdatetime.h>
-#include <qstring.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
#include "soapH.h"
@@ -33,30 +33,30 @@ class GWConverter
struct soap* soap() const;
- static QString stringToQString( const std::string& );
- static QString stringToQString( std::string* );
+ static TQString stringToQString( const std::string& );
+ static TQString stringToQString( std::string* );
- std::string* qStringToString( const QString& );
- char* qStringToChar( const QString& );
+ std::string* qStringToString( const TQString& );
+ char* qStringToChar( const TQString& );
- char* qDateToChar( const QDate& );
- QDate charToQDate( const char * );
+ char* qDateToChar( const TQDate& );
+ TQDate charToQDate( const char * );
- std::string* qDateToString( const QDate &string );
- QDate stringToQDate( std::string* );
+ std::string* qDateToString( const TQDate &string );
+ TQDate stringToQDate( std::string* );
- char *qDateTimeToChar( const QDateTime &dt, const QString &timezone );
- char *qDateTimeToChar( const QDateTime &dt );
+ char *qDateTimeToChar( const TQDateTime &dt, const TQString &timezone );
+ char *qDateTimeToChar( const TQDateTime &dt );
- QDateTime charToQDateTime( const char *str );
- QDateTime charToQDateTime( const char *str, const QString &timezone );
+ TQDateTime charToQDateTime( const char *str );
+ TQDateTime charToQDateTime( const char *str, const TQString &timezone );
- std::string* qDateTimeToString( const QDateTime &string, const QString &timezone );
- std::string* qDateTimeToString( const QDateTime &string );
+ std::string* qDateTimeToString( const TQDateTime &string, const TQString &timezone );
+ std::string* qDateTimeToString( const TQDateTime &string );
- QDateTime stringToQDateTime( const std::string* );
+ TQDateTime stringToQDateTime( const std::string* );
- bool emailsMatch( const QString & email1, const QString & email2 );
+ bool emailsMatch( const TQString & email1, const TQString & email2 );
private:
struct soap* mSoap;
};
diff --git a/kresources/groupwise/soap/gwjobs.cpp b/kresources/groupwise/soap/gwjobs.cpp
index f1cdd049a..43d5d58df 100644
--- a/kresources/groupwise/soap/gwjobs.cpp
+++ b/kresources/groupwise/soap/gwjobs.cpp
@@ -26,7 +26,7 @@
#include <libkcal/incidence.h>
#include <libkcal/resourcecached.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "contactconverter.h"
#include "incidenceconverter.h"
@@ -38,19 +38,19 @@
#define READ_ADDRESS_FOLDER_CHUNK_SIZE 50
#define READ_CALENDAR_FOLDER_CHUNK_SIZE 50
-GWJob::GWJob( GroupwiseServer *server, struct soap *soap, const QString &url,
+GWJob::GWJob( GroupwiseServer *server, struct soap *soap, const TQString &url,
const std::string &session )
: mServer( server ), mSoap( soap ), mUrl( url ), mSession( session ), mError( GroupWise::NoError )
{
}
ReadAddressBooksJob::ReadAddressBooksJob( GroupwiseServer *server,
- struct soap *soap, const QString &url, const std::string &session )
+ struct soap *soap, const TQString &url, const std::string &session )
: GWJob( server, soap, url, session )
{
}
-void ReadAddressBooksJob::setAddressBookIds( const QStringList &ids )
+void ReadAddressBooksJob::setAddressBookIds( const TQStringList &ids )
{
mAddressBookIds = ids;
@@ -82,7 +82,7 @@ void ReadAddressBooksJob::run()
if ( !(*it)->id ) {
kdError() << "No addressbook id" << endl;
} else {
- QString id = GWConverter::stringToQString( (*it)->id );
+ TQString id = GWConverter::stringToQString( (*it)->id );
kdDebug() << "Reading ID: " << id << endl;
if ( mAddressBookIds.find( id ) != mAddressBookIds.end() ) {
readAddressBook( *(*it)->id );
@@ -93,8 +93,8 @@ void ReadAddressBooksJob::run()
}
#else
GWConverter conv( mSoap );
- QStringList::Iterator it = mAddressBookIds.begin();
- const QStringList::Iterator end = mAddressBookIds.end();
+ TQStringList::Iterator it = mAddressBookIds.begin();
+ const TQStringList::Iterator end = mAddressBookIds.end();
for ( ; it != end; ++it )
{
std::string* id = conv.qStringToString( *it );
@@ -158,7 +158,7 @@ void ReadAddressBooksJob::readAddressBook( std::string &id )
addr.insertCustom( "GWRESOURCE", "CONTAINER", converter.stringToQString( id ) );
- QString remoteUid = converter.stringToQString( (*it)->id );
+ TQString remoteUid = converter.stringToQString( (*it)->id );
KABC::Addressee oldAddressee = mResource->findByUid( mResource->idMapper().localId( remoteUid ) );
if ( oldAddressee.isEmpty() ) // new addressee
@@ -323,7 +323,7 @@ void ReadAddressBooksJob::readAddressBook( std::string &id )
#endif
}
-ReadCalendarJob::ReadCalendarJob( GroupwiseServer *server, struct soap *soap, const QString &url,
+ReadCalendarJob::ReadCalendarJob( GroupwiseServer *server, struct soap *soap, const TQString &url,
const std::string &session )
: GWJob( server, soap, url, session ), mCalendar( 0 )
{
@@ -475,8 +475,8 @@ void ReadCalendarJob::readCalendarFolder( const std::string &id, ReadItemCounts
ngwt__Filter *filter = soap_new_ngwm__Filter( mSoap, -1 );
ngwt__FilterEntry *filterEntry = soap_new_ngwm__FilterEntry( mSoap, -1 );
filterEntry->op = gte;
- filterEntry->field = QString::fromLatin1( "startDate" ).utf8();
- filterEntry->value = QDateTime::currentDateTime().toString( "yyyyMMddThhmmZ" ).utf8();
+ filterEntry->field = TQString::fromLatin1( "startDate" ).utf8();
+ filterEntry->value = TQDateTime::currentDateTime().toString( "yyyyMMddThhmmZ" ).utf8();
filter->element = filterEntry;
@@ -636,12 +636,12 @@ void ReadCalendarJob::readCalendarFolder( const std::string &id, ReadItemCounts
}
UpdateAddressBooksJob::UpdateAddressBooksJob( GroupwiseServer *server,
- struct soap *soap, const QString &url, const std::string &session )
+ struct soap *soap, const TQString &url, const std::string &session )
: GWJob( server, soap, url, session )
{
}
-void UpdateAddressBooksJob::setAddressBookIds( const QStringList &ids )
+void UpdateAddressBooksJob::setAddressBookIds( const TQStringList &ids )
{
mAddressBookIds = ids;
diff --git a/kresources/groupwise/soap/gwjobs.h b/kresources/groupwise/soap/gwjobs.h
index 3cf47c095..815e6261e 100644
--- a/kresources/groupwise/soap/gwjobs.h
+++ b/kresources/groupwise/soap/gwjobs.h
@@ -20,7 +20,7 @@
#ifndef GROUPWISE_JOBS_H
#define GROUPWISE_JOBS_H
-#include <qobject.h>
+#include <tqobject.h>
#include <string>
@@ -45,12 +45,12 @@ class GroupwiseServer;
class GWJob
{
public:
- GWJob( GroupwiseServer *server, struct soap *soap, const QString &url, const std::string &session );
+ GWJob( GroupwiseServer *server, struct soap *soap, const TQString &url, const std::string &session );
int error() const { return mError; }
protected:
GroupwiseServer *mServer;
struct soap *mSoap;
- QString mUrl;
+ TQString mUrl;
const std::string mSession;
int mError;
};
@@ -59,10 +59,10 @@ class ReadAddressBooksJob : public GWJob
{
public:
ReadAddressBooksJob( GroupwiseServer *server, struct soap *soap,
- const QString &url,
+ const TQString &url,
const std::string &session );
- void setAddressBookIds( const QStringList& );
+ void setAddressBookIds( const TQStringList& );
void run();
@@ -70,7 +70,7 @@ class ReadAddressBooksJob : public GWJob
void readAddressBook( std::string& );
private:
- QStringList mAddressBookIds;
+ TQStringList mAddressBookIds;
KABC::Resource *mResource;
int mProgress;
};
@@ -78,7 +78,7 @@ class ReadAddressBooksJob : public GWJob
class ReadCalendarJob : public GWJob
{
public:
- ReadCalendarJob( GroupwiseServer *server, struct soap *soap, const QString &url,
+ ReadCalendarJob( GroupwiseServer *server, struct soap *soap, const TQString &url,
const std::string &session );
void setCalendarFolder( std::string* );
@@ -101,11 +101,11 @@ class UpdateAddressBooksJob : public GWJob
{
public:
UpdateAddressBooksJob( GroupwiseServer *server, struct soap *soap,
- const QString &url,
+ const TQString &url,
const std::string &session );
/** set the address book IDs to update - at the moment this is only the System Address Book (SAB) */
- void setAddressBookIds( const QStringList& );
+ void setAddressBookIds( const TQStringList& );
/**
* set the sequence number to start reading deltas from (usually the last sequenec number
@@ -122,7 +122,7 @@ class UpdateAddressBooksJob : public GWJob
void updateAddressBook( std::string& );
private:
- QStringList mAddressBookIds;
+ TQStringList mAddressBookIds;
KABC::Resource *mResource;
int mProgress;
unsigned long mLastPORebuildTime;
diff --git a/kresources/groupwise/soap/incidenceconverter.cpp b/kresources/groupwise/soap/incidenceconverter.cpp
index 051f00655..5e5e4c404 100644
--- a/kresources/groupwise/soap/incidenceconverter.cpp
+++ b/kresources/groupwise/soap/incidenceconverter.cpp
@@ -39,8 +39,8 @@ IncidenceConverter::IncidenceConverter( struct soap* soap )
mTimezone = KPimPrefs::timezone();
}
-void IncidenceConverter::setFrom( const QString &name,
- const QString &email, const QString &uuid )
+void IncidenceConverter::setFrom( const TQString &name,
+ const TQString &email, const TQString &uuid )
{
mFromName = name;
mFromEmail = email;
@@ -135,8 +135,8 @@ ngwt__Appointment* IncidenceConverter::convertToAppointment( KCal::Event* event
if ( event->dtStart().isValid() ) {
/* kdDebug() << " convertToAppointment() raw start date: " << event->dtStart().toString() << endl;*/
- QDateTime start = event->dtStart();
- start.setTime( QTime( 0, 0, 0 ) );
+ TQDateTime start = event->dtStart();
+ start.setTime( TQTime( 0, 0, 0 ) );
appointment->startDate = qDateTimeToChar( start, mTimezone );
//appointment->startDay = qDateToString( event->dtStart().date()/*.addDays( -1 )*/ );
/* kdDebug() << " converted start date: " << appointment->startDate << endl;*/
@@ -145,9 +145,9 @@ ngwt__Appointment* IncidenceConverter::convertToAppointment( KCal::Event* event
kdDebug() << " event start date not valid " << endl;
if ( event->hasEndDate() ) {
// kdDebug() << " convertToAppointment() raw end date: " << event->dtEnd().toString() << endl;
- QDateTime end = event->dtEnd();
+ TQDateTime end = event->dtEnd();
end = end.addDays( 1 );
- end.setTime( QTime( 0, 0, 0 ) );
+ end.setTime( TQTime( 0, 0, 0 ) );
appointment->endDate = qDateTimeToChar( end, mTimezone );
//appointment->endDay = qDateToString( event->dtEnd().date() );
// kdDebug() << " converted end date:" << appointment->endDate << endl;
@@ -215,7 +215,7 @@ KCal::Todo* IncidenceConverter::convertFromTask( ngwt__Task* task )
}
if ( task->taskPriority ) {
- QString priority = stringToQString( task->taskPriority );
+ TQString priority = stringToQString( task->taskPriority );
// FIXME: Store priority string somewhere
@@ -256,7 +256,7 @@ ngwt__Task* IncidenceConverter::convertToTask( KCal::Todo* todo )
}
// FIXME: Restore custom priorities
- QString priority = QString::number( todo->priority() );
+ TQString priority = TQString::number( todo->priority() );
task->taskPriority = qStringToString( priority );
task->completed = (bool*)soap_malloc( soap(), 1 );
@@ -311,7 +311,7 @@ ngwt__Note* IncidenceConverter::convertToNote( KCal::Journal* journal )
}
if ( !note->subject )
- note->subject = qStringToString( QString("NO SUBJECT") );
+ note->subject = qStringToString( TQString("NO SUBJECT") );
return note;
}
@@ -362,7 +362,7 @@ bool IncidenceConverter::convertToCalendarItem( KCal::Incidence* incidence, ngwt
item->modified = 0;
item->changes = 0;
- QString id = incidence->customProperty( "GWRESOURCE", "UID" );
+ TQString id = incidence->customProperty( "GWRESOURCE", "UID" );
if ( !id.isEmpty() ) item->id = qStringToString( id );
// Container
@@ -449,7 +449,7 @@ void IncidenceConverter::setAttendees( KCal::Incidence *incidence,
if ( !mFromEmail.isEmpty() ) item->distribution->from->email = qStringToString( mFromEmail );
if ( !mFromUuid.isEmpty() ) item->distribution->from->uuid = qStringToString( mFromUuid );
- QString to; // To list consists of display names of organizer and attendees separated by "; "
+ TQString to; // To list consists of display names of organizer and attendees separated by "; "
to += incidence->organizer().name();
item->distribution->sendoptions = soap_new_ngwt__SendOptions( soap(), -1 );
@@ -470,11 +470,11 @@ void IncidenceConverter::setAttendees( KCal::Incidence *incidence,
KCal::Attendee::List::ConstIterator it;
for( it = attendees.begin(); it != attendees.end(); ++it ) {
if ( !to.isEmpty() )
- to += QString::fromLatin1( "; %1" ).arg( (*it)->name() );
+ to += TQString::fromLatin1( "; %1" ).arg( (*it)->name() );
kdDebug() << "IncidenceConverter::setAttendees(), adding " << (*it)->fullName()
<< endl;
- QString uuid;
- QValueList<KABC::Addressee> addList = KABC::StdAddressBook::self()->findByEmail( (*it)->email() );
+ TQString uuid;
+ TQValueList<KABC::Addressee> addList = KABC::StdAddressBook::self()->findByEmail( (*it)->email() );
if ( !addList.first().isEmpty() )
uuid = addList.first().custom( "GWRESOURCE", "UUID" ); //uuid may be mandatory for the recipients list to be stored on the server...
item->distribution->recipients->recipient.push_back( createRecipient( (*it)->name(), (*it)->email(), uuid ) );
@@ -484,8 +484,8 @@ void IncidenceConverter::setAttendees( KCal::Incidence *incidence,
item->distribution->bc = 0;
}
-ngwt__Recipient *IncidenceConverter::createRecipient( const QString &name,
- const QString &email, const QString &uuid )
+ngwt__Recipient *IncidenceConverter::createRecipient( const TQString &name,
+ const TQString &email, const TQString &uuid )
{
ngwt__Recipient *recipient = soap_new_ngwt__Recipient( soap(), -1 );
@@ -534,7 +534,7 @@ bool IncidenceConverter::convertFromCalendarItem( ngwt__CalendarItem* item,
getAttendees( item, incidence );
if ( item->recurrenceKey )
- incidence->setCustomProperty( "GWRESOURCE", "RECURRENCEKEY", QString::number( *item->recurrenceKey ) );
+ incidence->setCustomProperty( "GWRESOURCE", "RECURRENCEKEY", TQString::number( *item->recurrenceKey ) );
/*
// This must just be a very early cut at recurrence
@@ -543,7 +543,7 @@ bool IncidenceConverter::convertFromCalendarItem( ngwt__CalendarItem* item,
std::vector<xsd__date>::const_iterator it;
for ( it = dateList->begin(); it != dateList->end(); ++it ) {
- QDate date = QDate::fromString( s2q( *it ), Qt::ISODate );
+ TQDate date = TQDate::fromString( s2q( *it ), Qt::ISODate );
if ( date.isValid() )
}
}
@@ -568,7 +568,7 @@ void IncidenceConverter::getItemDescription( ngwt__CalendarItem *item, KCal::Inc
// text/plain should be the description
if ( stringToQString( (*it)->contentType ) == "text/plain" ) {
- QString description = QString::fromUtf8( (char*)data.__ptr, data.__size );
+ TQString description = TQString::fromUtf8( (char*)data.__ptr, data.__size );
incidence->setDescription( description );
kdDebug() << "Incidence description decodes to: " << description << endl;
return;
@@ -731,7 +731,7 @@ void IncidenceConverter::setRecurrence( KCal::Incidence * incidence, ngwt__Calen
*freq = Weekly;
item->rrule->frequency = freq;
// now change the bitArray of the days of the week that it recurs on to a ngwt__DayOfWeekList *
- QBitArray ba = recur->days();
+ TQBitArray ba = recur->days();
ngwt__DayOfYearWeekList * weeklyDays = soap_new_ngwt__DayOfYearWeekList( soap(), -1 );
for ( int i = 0; i < 7; ++i )
{
@@ -795,11 +795,11 @@ void IncidenceConverter::setRecurrence( KCal::Incidence * incidence, ngwt__Calen
// TODO: translate '1st sunday in may'
ngwt__DayOfYearList * daysOfYear = soap_new_ngwt__DayOfYearList( soap(), -1 );
#if LIBKCAL_IS_VERSION( 1, 3, 0 )
- QValueList<int> rmd;
+ TQValueList<int> rmd;
rmd = recur->yearMonths();
daysOfYear->day.push_back( rmd.first() );
#else
- QPtrList<int> rmd;
+ TQPtrList<int> rmd;
rmd = recur->yearNums();
daysOfYear->day.push_back( *rmd.first() );
#endif
diff --git a/kresources/groupwise/soap/incidenceconverter.h b/kresources/groupwise/soap/incidenceconverter.h
index 8d7b6844e..6f2ced84a 100644
--- a/kresources/groupwise/soap/incidenceconverter.h
+++ b/kresources/groupwise/soap/incidenceconverter.h
@@ -35,8 +35,8 @@ class IncidenceConverter : public GWConverter
public:
IncidenceConverter( struct soap* );
- void setFrom( const QString &name, const QString &email,
- const QString &uuid );
+ void setFrom( const TQString &name, const TQString &email,
+ const TQString &uuid );
KCal::Event* convertFromAppointment( ngwt__Appointment* );
ngwt__Appointment* convertToAppointment( KCal::Event* );
@@ -61,16 +61,16 @@ class IncidenceConverter : public GWConverter
void setRecurrence( KCal::Incidence *, ngwt__CalendarItem * );
// used for converting weekly recurrences from GW
-// QBitArray getDayBitArray( ngwt__DayOfWeekList * );
+// TQBitArray getDayBitArray( ngwt__DayOfWeekList * );
- ngwt__Recipient *createRecipient( const QString &name,
- const QString &email, const QString &uuid = QString::null );
+ ngwt__Recipient *createRecipient( const TQString &name,
+ const TQString &email, const TQString &uuid = TQString::null );
- QString mTimezone;
+ TQString mTimezone;
- QString mFromName;
- QString mFromEmail;
- QString mFromUuid;
+ TQString mFromName;
+ TQString mFromEmail;
+ TQString mFromUuid;
};
#endif
diff --git a/kresources/groupwise/soap/ksslsocket.cpp b/kresources/groupwise/soap/ksslsocket.cpp
index 4fdc3f5f6..653a55317 100644
--- a/kresources/groupwise/soap/ksslsocket.cpp
+++ b/kresources/groupwise/soap/ksslsocket.cpp
@@ -17,7 +17,7 @@
*************************************************************************
*/
-#include <qsocketnotifier.h>
+#include <tqsocketnotifier.h>
#include <dcopclient.h>
#include <klocale.h>
@@ -39,8 +39,8 @@ struct KSSLSocketPrivate
mutable KSSL *kssl;
KSSLCertificateCache *cc;
DCOPClient *dcc;
- QMap<QString,QString> metaData;
- QSocketNotifier *socketNotifier;
+ TQMap<TQString,TQString> metaData;
+ TQSocketNotifier *socketNotifier;
};
KSSLSocket::KSSLSocket() : KExtendedSocket()
@@ -57,9 +57,9 @@ KSSLSocket::KSSLSocket() : KExtendedSocket()
setBlockingMode(false);
//Connect internal slots
- QObject::connect( this, SIGNAL(connectionSuccess()), this, SLOT(slotConnected()) );
- QObject::connect( this, SIGNAL(closed(int)), this, SLOT(slotDisconnected()) );
- QObject::connect( this, SIGNAL(connectionFailed(int)), this, SLOT(slotDisconnected()));
+ TQObject::connect( this, TQT_SIGNAL(connectionSuccess()), this, TQT_SLOT(slotConnected()) );
+ TQObject::connect( this, TQT_SIGNAL(closed(int)), this, TQT_SLOT(slotDisconnected()) );
+ TQObject::connect( this, TQT_SIGNAL(connectionFailed(int)), this, TQT_SLOT(slotDisconnected()));
}
KSSLSocket::~KSSLSocket()
@@ -142,22 +142,22 @@ void KSSLSocket::slotDisconnected()
readNotifier()->setEnabled(false);
}
-void KSSLSocket::setMetaData( const QString &key, const QVariant &data )
+void KSSLSocket::setMetaData( const TQString &key, const TQVariant &data )
{
- QVariant v = data;
+ TQVariant v = data;
d->metaData[key] = v.asString();
}
-bool KSSLSocket::hasMetaData( const QString &key )
+bool KSSLSocket::hasMetaData( const TQString &key )
{
return d->metaData.contains(key);
}
-QString KSSLSocket::metaData( const QString &key )
+TQString KSSLSocket::metaData( const TQString &key )
{
if( d->metaData.contains(key) )
return d->metaData[key];
- return QString::null;
+ return TQString::null;
}
/*
@@ -168,13 +168,13 @@ I basically copied the below from tcpKIO::SlaveBase.hpp, with some modificaions
* Copyright (C) 2001 Dawit Alemayehu <adawit@kde.org>
*/
-int KSSLSocket::messageBox( KIO::SlaveBase::MessageBoxType type, const QString &text, const QString &caption,
- const QString &buttonYes, const QString &buttonNo )
+int KSSLSocket::messageBox( KIO::SlaveBase::MessageBoxType type, const TQString &text, const TQString &caption,
+ const TQString &buttonYes, const TQString &buttonNo )
{
kdDebug(0) << "messageBox " << type << " " << text << " - " << caption << buttonYes << buttonNo << endl;
- QByteArray data, result;
- QCString returnType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, result;
+ TQCString returnType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)1 << (int)type << text << caption << buttonYes << buttonNo;
if ( ! d->dcc ){
@@ -183,16 +183,16 @@ int KSSLSocket::messageBox( KIO::SlaveBase::MessageBoxType type, const QString &
}
if (!d->dcc->isApplicationRegistered("kio_uiserver"))
{
- KApplication::startServiceByDesktopPath("kio_uiserver.desktop",QStringList());
+ KApplication::startServiceByDesktopPath("kio_uiserver.desktop",TQStringList());
}
d->dcc->call("kio_uiserver", "UIServer",
- "messageBox(int,int,QString,QString,QString,QString)", data, returnType, result);
+ "messageBox(int,int,TQString,TQString,TQString,TQString)", data, returnType, result);
if( returnType == "int" )
{
int res;
- QDataStream r(result, IO_ReadOnly);
+ TQDataStream r(result, IO_ReadOnly);
r >> res;
return res;
}
@@ -209,10 +209,10 @@ int KSSLSocket::verifyCertificate()
bool _IPmatchesCN = false;
int result;
bool doAddHost = false;
- QString ourHost = host();
- QString ourIp = peerAddress()->pretty();
+ TQString ourHost = host();
+ TQString ourIp = peerAddress()->pretty();
- QString theurl = "https://" + ourHost + ":" + port();
+ TQString theurl = "https://" + ourHost + ":" + port();
if (!d->cc)
d->cc = new KSSLCertificateCache;
@@ -241,15 +241,15 @@ int KSSLSocket::verifyCertificate()
setMetaData("ssl_cipher", d->kssl->connectionInfo().getCipher());
setMetaData("ssl_cipher_desc", d->kssl->connectionInfo().getCipherDescription());
setMetaData("ssl_cipher_version", d->kssl->connectionInfo().getCipherVersion());
- setMetaData("ssl_cipher_used_bits", QString::number(d->kssl->connectionInfo().getCipherUsedBits()));
- setMetaData("ssl_cipher_bits", QString::number(d->kssl->connectionInfo().getCipherBits()));
+ setMetaData("ssl_cipher_used_bits", TQString::number(d->kssl->connectionInfo().getCipherUsedBits()));
+ setMetaData("ssl_cipher_bits", TQString::number(d->kssl->connectionInfo().getCipherBits()));
setMetaData("ssl_peer_ip", ourIp );
- QString errorStr;
+ TQString errorStr;
for(KSSLCertificate::KSSLValidationList::ConstIterator it = ksvl.begin();
it != ksvl.end(); ++it)
{
- errorStr += QString::number(*it)+":";
+ errorStr += TQString::number(*it)+":";
}
setMetaData("ssl_cert_errors", errorStr);
@@ -257,8 +257,8 @@ int KSSLSocket::verifyCertificate()
if (pc.chain().isValid() && pc.chain().depth() > 1)
{
- QString theChain;
- QPtrList<KSSLCertificate> chain = pc.chain().getChain();
+ TQString theChain;
+ TQPtrList<KSSLCertificate> chain = pc.chain().getChain();
for (KSSLCertificate *c = chain.first(); c; c = chain.next())
{
theChain += c->toString();
@@ -271,7 +271,7 @@ int KSSLSocket::verifyCertificate()
setMetaData("ssl_peer_chain", "");
}
- setMetaData("ssl_cert_state", QString::number(ksv));
+ setMetaData("ssl_cert_state", TQString::number(ksv));
if (ksv == KSSLCertificate::Ok)
{
@@ -321,7 +321,7 @@ int KSSLSocket::verifyCertificate()
{
if (ksv == KSSLCertificate::InvalidHost)
{
- QString msg = i18n("The IP address of the host %1 "
+ TQString msg = i18n("The IP address of the host %1 "
"does not match the one the "
"certificate was issued to.");
result = messageBox( KIO::SlaveBase::WarningYesNoCancel,
@@ -332,7 +332,7 @@ int KSSLSocket::verifyCertificate()
}
else
{
- QString msg = i18n("The server certificate failed the "
+ TQString msg = i18n("The server certificate failed the "
"authenticity test (%1).");
result = messageBox( KIO::SlaveBase::WarningYesNoCancel,
msg.arg(ourHost),
diff --git a/kresources/groupwise/soap/ksslsocket.h b/kresources/groupwise/soap/ksslsocket.h
index 47874e0d5..d58b41918 100644
--- a/kresources/groupwise/soap/ksslsocket.h
+++ b/kresources/groupwise/soap/ksslsocket.h
@@ -19,7 +19,7 @@
*************************************************************************
*/
-#include <qvariant.h>
+#include <tqvariant.h>
#include <kextsock.h>
#include <kio/slavebase.h>
@@ -45,14 +45,14 @@ class KSSLSocket : public KExtendedSocket
private:
int verifyCertificate();
- int messageBox( KIO::SlaveBase::MessageBoxType type, const QString &text,
- const QString &caption, const QString &buttonYes, const QString &buttonNo );
+ int messageBox( KIO::SlaveBase::MessageBoxType type, const TQString &text,
+ const TQString &caption, const TQString &buttonYes, const TQString &buttonNo );
//Copied frm tcpslavebase to simply integrating their dialog function
- void setMetaData( const QString &, const QVariant & );
- bool hasMetaData( const QString & );
- QString metaData( const QString & );
+ void setMetaData( const TQString &, const TQVariant & );
+ bool hasMetaData( const TQString & );
+ TQString metaData( const TQString & );
KSSLSocketPrivate *d;
};
diff --git a/kresources/groupwise/soap/soapdebug.cpp b/kresources/groupwise/soap/soapdebug.cpp
index 3d0e3f223..caa56e5b5 100644
--- a/kresources/groupwise/soap/soapdebug.cpp
+++ b/kresources/groupwise/soap/soapdebug.cpp
@@ -56,9 +56,9 @@ int main( int argc, char **argv )
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- QString user = args->getOption( "user" );
- QString pass = args->getOption( "password" );
- QString url = args->getOption( "server" );
+ TQString user = args->getOption( "user" );
+ TQString pass = args->getOption( "password" );
+ TQString url = args->getOption( "server" );
#if 1
if ( user.isEmpty() ) {
@@ -97,7 +97,7 @@ int main( int argc, char **argv )
#endif
#if 0
- QString fbUser = args->getOption( "freebusy-user" );
+ TQString fbUser = args->getOption( "freebusy-user" );
if ( fbUser.isEmpty() ) {
kdError() << "Need user for which the freebusy data should be retrieved."
<< endl;
@@ -105,7 +105,7 @@ int main( int argc, char **argv )
KCal::FreeBusy *fb = new KCal::FreeBusy;
server.readFreeBusy( "user1",
- QDate( 2004, 9, 1 ), QDate( 2004, 10, 31 ), fb );
+ TQDate( 2004, 9, 1 ), TQDate( 2004, 10, 31 ), fb );
}
#endif
@@ -129,17 +129,17 @@ int main( int argc, char **argv )
}
KCal::ICalFormat format;
- QString ical = format.toString( &calendar );
+ TQString ical = format.toString( &calendar );
kdDebug() << "ICALENDAR: " << ical << endl;
#endif
#if 0
- QString id = args->getOption( "addressbook-id" );
+ TQString id = args->getOption( "addressbook-id" );
kdDebug() << "ADDRESSBOOK ID: " << id << endl;
- QStringList ids;
+ TQStringList ids;
ids.append( id );
KABC::ResourceMemory resource;
diff --git a/kresources/groupwise/soap/stdsoap2.h b/kresources/groupwise/soap/stdsoap2.h
index a7f6e3299..af603d801 100644
--- a/kresources/groupwise/soap/stdsoap2.h
+++ b/kresources/groupwise/soap/stdsoap2.h
@@ -1294,7 +1294,7 @@ struct soap
int send_timeout; /* when > 0, gives socket send timeout in seconds, < 0 in usec */
int connect_timeout; /* when > 0, gives socket connect() timeout in seconds, < 0 in usec */
int accept_timeout; /* when > 0, gives socket accept() timeout in seconds, < 0 in usec */
- int socket_flags; /* socket recv() and send() flags, e.g. set to MSG_NOSIGNAL to disable sigpipe */
+ int socket_flags; /* socket recv() and send() flags, e.g. set to MSG_NOQT_SIGNAL to disable sigpipe */
int connect_flags; /* connect() SOL_SOCKET sockopt flags, e.g. set to SO_DEBUG to debug socket */
int bind_flags; /* bind() SOL_SOCKET sockopt flags, e.g. set to SO_REUSEADDR to enable reuse */
int accept_flags; /* accept() SOL_SOCKET sockopt flags */