summaryrefslogtreecommitdiffstats
path: root/kresources/groupware
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/groupware
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/groupware')
-rw-r--r--kresources/groupware/kabc_resourcegroupware.cpp56
-rw-r--r--kresources/groupware/kabc_resourcegroupware.h6
-rw-r--r--kresources/groupware/kabc_resourcegroupwareconfig.cpp42
-rw-r--r--kresources/groupware/kabc_resourcegroupwareconfig.h6
-rw-r--r--kresources/groupware/kcal_resourcegroupware.cpp32
-rw-r--r--kresources/groupware/kcal_resourcegroupware.h4
-rw-r--r--kresources/groupware/kcal_resourcegroupwareconfig.cpp16
-rw-r--r--kresources/groupware/kcal_resourcegroupwareconfig.h2
8 files changed, 82 insertions, 82 deletions
diff --git a/kresources/groupware/kabc_resourcegroupware.cpp b/kresources/groupware/kabc_resourcegroupware.cpp
index 722024adf..c04988aa0 100644
--- a/kresources/groupware/kabc_resourcegroupware.cpp
+++ b/kresources/groupware/kabc_resourcegroupware.cpp
@@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kabc/addressee.h>
#include <kabc/vcardconverter.h>
@@ -47,8 +47,8 @@ ResourceGroupware::ResourceGroupware( const KConfig *config )
}
ResourceGroupware::ResourceGroupware( const KURL &url,
- const QString &user,
- const QString &password )
+ const TQString &user,
+ const TQString &password )
: ResourceCached( 0 )
{
init();
@@ -95,10 +95,10 @@ void ResourceGroupware::writeConfig( KConfig *config )
void ResourceGroupware::readAddressBooks()
{
#if 0
- QStringList ids = prefs()->ids();
- QStringList names = prefs()->names();
- QStringList personals = prefs()->personals();
- QStringList frequents = prefs()->frequents();
+ TQStringList ids = prefs()->ids();
+ TQStringList names = prefs()->names();
+ TQStringList personals = prefs()->personals();
+ TQStringList frequents = prefs()->frequents();
if ( ids.count() != names.count() || ids.count() != personals.count() ||
ids.count() != frequents.count() ) {
@@ -123,10 +123,10 @@ void ResourceGroupware::readAddressBooks()
void ResourceGroupware::writeAddressBooks()
{
#if 0
- QStringList ids;
- QStringList names;
- QStringList personals;
- QStringList frequents;
+ TQStringList ids;
+ TQStringList names;
+ TQStringList personals;
+ TQStringList frequents;
Groupware::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
ids.append( (*it).id );
@@ -155,8 +155,8 @@ void ResourceGroupware::retrieveAddressBooks()
server.logout();
if ( firstRetrieve ) {
- QStringList reads;
- QString write;
+ TQStringList reads;
+ TQString write;
Groupware::AddressBook::List::ConstIterator it;
for( it = mAddressBooks.begin(); it != mAddressBooks.end(); ++it ) {
@@ -227,9 +227,9 @@ bool ResourceGroupware::asyncLoad()
url.setPass( prefs()->password() );
#if 0
- QString query = "?";
- QStringList ids = mPrefs->readAddressBooks();
- QStringList::ConstIterator it;
+ TQString query = "?";
+ TQStringList ids = mPrefs->readAddressBooks();
+ TQStringList::ConstIterator it;
for( it = ids.begin(); it != ids.end(); ++it ) {
if ( it != ids.begin() ) query += "&";
query += "addressbookid=" + *it;
@@ -239,21 +239,21 @@ bool ResourceGroupware::asyncLoad()
kdDebug() << "Download URL: " << url << endl;
- mJobData = QString::null;
+ mJobData = TQString::null;
mDownloadJob = KPIM::GroupwareJob::getAddressBook( url );
- connect( mDownloadJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotJobResult( KIO::Job * ) ) );
- connect( mDownloadJob, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotJobData( KIO::Job *, const QByteArray & ) ) );
- connect( mDownloadJob, SIGNAL( percent( KIO::Job *, unsigned long ) ),
- SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( slotJobResult( KIO::Job * ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotJobData( KIO::Job *, const TQByteArray & ) ) );
+ connect( mDownloadJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
+ TQT_SLOT( slotJobPercent( KIO::Job *, unsigned long ) ) );
mProgress = KPIM::ProgressManager::instance()->createProgressItem(
KPIM::ProgressManager::getUniqueID(), i18n("Downloading addressbook") );
connect( mProgress,
- SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
- SLOT( cancelLoad() ) );
+ TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
+ TQT_SLOT( cancelLoad() ) );
return true;
}
@@ -316,8 +316,8 @@ void ResourceGroupware::slotJobResult( KIO::Job *job )
if ( !addr.isEmpty() ) {
addr.setResource( this );
- QString remote = addr.custom( "GWRESOURCE", "UID" );
- QString local = idMapper().localId( remote );
+ TQString remote = addr.custom( "GWRESOURCE", "UID" );
+ TQString local = idMapper().localId( remote );
if ( local.isEmpty() ) {
idMapper().setRemoteId( addr.uid(), remote );
} else {
@@ -339,7 +339,7 @@ void ResourceGroupware::slotJobResult( KIO::Job *job )
mProgress = 0;
}
-void ResourceGroupware::slotJobData( KIO::Job *, const QByteArray &data )
+void ResourceGroupware::slotJobData( KIO::Job *, const TQByteArray &data )
{
// kdDebug() << "ResourceGroupware::slotJobData()" << endl;
diff --git a/kresources/groupware/kabc_resourcegroupware.h b/kresources/groupware/kabc_resourcegroupware.h
index cea679f39..46547fc60 100644
--- a/kresources/groupware/kabc_resourcegroupware.h
+++ b/kresources/groupware/kabc_resourcegroupware.h
@@ -39,7 +39,7 @@ class ResourceGroupware : public ResourceCached
public:
ResourceGroupware( const KConfig * );
ResourceGroupware( const KURL &url,
- const QString &user, const QString &password );
+ const TQString &user, const TQString &password );
~ResourceGroupware();
void readConfig( const KConfig * );
@@ -68,7 +68,7 @@ class ResourceGroupware : public ResourceCached
private slots:
void slotJobResult( KIO::Job * );
- void slotJobData( KIO::Job *, const QByteArray & );
+ void slotJobData( KIO::Job *, const TQByteArray & );
void slotJobPercent( KIO::Job *job, unsigned long percent );
void cancelLoad();
@@ -78,7 +78,7 @@ class ResourceGroupware : public ResourceCached
KIO::TransferJob *mDownloadJob;
KPIM::ProgressItem *mProgress;
- QString mJobData;
+ TQString mJobData;
};
}
diff --git a/kresources/groupware/kabc_resourcegroupwareconfig.cpp b/kresources/groupware/kabc_resourcegroupwareconfig.cpp
index 8cb656a93..cfe6ba98c 100644
--- a/kresources/groupware/kabc_resourcegroupwareconfig.cpp
+++ b/kresources/groupware/kabc_resourcegroupwareconfig.cpp
@@ -31,16 +31,16 @@
#include <klistview.h>
#include <kurlrequester.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
using namespace KABC;
class AddressBookItem : public QCheckListItem
{
public:
- AddressBookItem( KListView *parent, const QString &id )
- : QCheckListItem( parent, "", CheckBox ),
+ AddressBookItem( KListView *parent, const TQString &id )
+ : TQCheckListItem( parent, "", CheckBox ),
mId( id )
{
setText( 0, mId );
@@ -52,42 +52,42 @@ class AddressBookItem : public QCheckListItem
#endif
}
- QString id() const { return mId; }
+ TQString id() const { return mId; }
private:
- QString mId;
+ TQString mId;
};
-ResourceGroupwareConfig::ResourceGroupwareConfig( QWidget* parent, const char* name )
+ResourceGroupwareConfig::ResourceGroupwareConfig( 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 );
@@ -100,13 +100,13 @@ ResourceGroupwareConfig::ResourceGroupwareConfig( 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 ResourceGroupwareConfig::loadSettings( KRES::Resource *res )
@@ -158,10 +158,10 @@ void ResourceGroupwareConfig::updateAddressBookList()
void ResourceGroupwareConfig::saveAddressBookSettings()
{
#if 0
- 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() )
@@ -187,7 +187,7 @@ void ResourceGroupwareConfig::updateAddressBookView()
mWriteAddressBookIds.clear();
#if 0
- QStringList selectedRead = mResource->prefs()->readAddressBooks();
+ TQStringList selectedRead = mResource->prefs()->readAddressBooks();
Groupware::AddressBook::List addressBooks = mResource->addressBooks();
Groupware::AddressBook::List::ConstIterator abIt;
diff --git a/kresources/groupware/kabc_resourcegroupwareconfig.h b/kresources/groupware/kabc_resourcegroupwareconfig.h
index f8df15bc4..32bcfa710 100644
--- a/kresources/groupware/kabc_resourcegroupwareconfig.h
+++ b/kresources/groupware/kabc_resourcegroupwareconfig.h
@@ -22,7 +22,7 @@
#include <kresources/configwidget.h>
-#include <qmap.h>
+#include <tqmap.h>
class KComboBox;
class KLineEdit;
@@ -38,7 +38,7 @@ class ResourceGroupwareConfig : public KRES::ConfigWidget
Q_OBJECT
public:
- ResourceGroupwareConfig( QWidget* parent = 0, const char* name = 0 );
+ ResourceGroupwareConfig( TQWidget* parent = 0, const char* name = 0 );
public slots:
void loadSettings( KRES::Resource* );
@@ -60,7 +60,7 @@ class ResourceGroupwareConfig : public KRES::ConfigWidget
KListView *mAddressBookView;
KComboBox *mAddressBookBox;
- QStringList mWriteAddressBookIds;
+ TQStringList mWriteAddressBookIds;
ResourceGroupware *mResource;
};
diff --git a/kresources/groupware/kcal_resourcegroupware.cpp b/kresources/groupware/kcal_resourcegroupware.cpp
index 9adbffdd7..b651d7390 100644
--- a/kresources/groupware/kcal_resourcegroupware.cpp
+++ b/kresources/groupware/kcal_resourcegroupware.cpp
@@ -28,11 +28,11 @@
#include <libkcal/icalformat.h>
#include <libkcal/calendarlocal.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>
@@ -152,19 +152,19 @@ bool ResourceGroupware::doLoad()
kdDebug() << "Download URL: " << url << endl;
- mJobData = QString::null;
+ mJobData = TQString::null;
mDownloadJob = KPIM::GroupwareJob::getCalendar( url );
- connect( mDownloadJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotJobResult( KIO::Job * ) ) );
- connect( mDownloadJob, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotJobData( KIO::Job *, const QByteArray & ) ) );
+ connect( mDownloadJob, 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;
}
@@ -193,8 +193,8 @@ void ResourceGroupware::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 {
@@ -217,7 +217,7 @@ void ResourceGroupware::slotJobResult( KIO::Job *job )
mProgress = 0;
}
-void ResourceGroupware::slotJobData( KIO::Job *, const QByteArray &data )
+void ResourceGroupware::slotJobData( KIO::Job *, const TQByteArray &data )
{
// kdDebug() << "ResourceGroupware::slotJobData()" << endl;
@@ -281,7 +281,7 @@ bool ResourceGroupware::confirmSave()
dlg.addIncidences( deletedIncidences(), i18n("Deleted") );
int result = dlg.exec();
- return result == QDialog::Accepted;
+ return result == TQDialog::Accepted;
}
KABC::Lock *ResourceGroupware::lock()
diff --git a/kresources/groupware/kcal_resourcegroupware.h b/kresources/groupware/kcal_resourcegroupware.h
index 7ddece926..610203fc3 100644
--- a/kresources/groupware/kcal_resourcegroupware.h
+++ b/kresources/groupware/kcal_resourcegroupware.h
@@ -70,7 +70,7 @@ class ResourceGroupware : public ResourceCached
void loadFinished();
void slotJobResult( KIO::Job * );
- void slotJobData( KIO::Job *, const QByteArray & );
+ void slotJobData( KIO::Job *, const TQByteArray & );
void cancelLoad();
@@ -80,7 +80,7 @@ class ResourceGroupware : public ResourceCached
KIO::TransferJob *mDownloadJob;
KPIM::ProgressItem *mProgress;
- QString mJobData;
+ TQString mJobData;
bool mIsShowingError;
};
diff --git a/kresources/groupware/kcal_resourcegroupwareconfig.cpp b/kresources/groupware/kcal_resourcegroupwareconfig.cpp
index d0581182d..2d5cffe00 100644
--- a/kresources/groupware/kcal_resourcegroupwareconfig.cpp
+++ b/kresources/groupware/kcal_resourcegroupwareconfig.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 <kdebug.h>
@@ -38,23 +38,23 @@
using namespace KCal;
-ResourceGroupwareConfig::ResourceGroupwareConfig( QWidget* parent, const char* name )
+ResourceGroupwareConfig::ResourceGroupwareConfig( 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 );
diff --git a/kresources/groupware/kcal_resourcegroupwareconfig.h b/kresources/groupware/kcal_resourcegroupwareconfig.h
index ab2fd424d..10115f7e7 100644
--- a/kresources/groupware/kcal_resourcegroupwareconfig.h
+++ b/kresources/groupware/kcal_resourcegroupwareconfig.h
@@ -42,7 +42,7 @@ class ResourceGroupwareConfig : public KRES::ConfigWidget
{
Q_OBJECT
public:
- ResourceGroupwareConfig( QWidget *parent = 0, const char *name = 0 );
+ ResourceGroupwareConfig( TQWidget *parent = 0, const char *name = 0 );
public slots:
virtual void loadSettings( KRES::Resource *resource );