summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/scalixadmin/otheruserpage.cpp
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/scalix/scalixadmin/otheruserpage.cpp
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/scalix/scalixadmin/otheruserpage.cpp')
-rw-r--r--kresources/scalix/scalixadmin/otheruserpage.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kresources/scalix/scalixadmin/otheruserpage.cpp b/kresources/scalix/scalixadmin/otheruserpage.cpp
index ae12290c7..8570cab06 100644
--- a/kresources/scalix/scalixadmin/otheruserpage.cpp
+++ b/kresources/scalix/scalixadmin/otheruserpage.cpp
@@ -18,9 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqapplication.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <dcopref.h>
#include <kdcopservicestarter.h>
@@ -37,24 +37,24 @@
#include "otheruserpage.h"
-OtherUserPage::OtherUserPage( QWidget *parent )
- : QWidget( parent )
+OtherUserPage::OtherUserPage( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 2, 2, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 2, 11, 6 );
mView = new OtherUserView( &mManager, this );
layout->addMultiCellWidget( mView, 0, 0, 0, 1 );
- mAddButton = new QPushButton( i18n( "Add Account..." ), this );
+ mAddButton = new TQPushButton( i18n( "Add Account..." ), this );
layout->addWidget( mAddButton, 1, 0 );
- mDeleteButton = new QPushButton( i18n( "Remove Account" ), this );
+ mDeleteButton = new TQPushButton( i18n( "Remove Account" ), this );
mDeleteButton->setEnabled( false );
layout->addWidget( mDeleteButton, 1, 1 );
- connect( mView, SIGNAL( selectionChanged() ), SLOT( selectionChanged() ) );
- connect( mAddButton, SIGNAL( clicked() ), SLOT( addUser() ) );
- connect( mDeleteButton, SIGNAL( clicked() ), SLOT( removeUser() ) );
+ connect( mView, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( selectionChanged() ) );
+ connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addUser() ) );
+ connect( mDeleteButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeUser() ) );
loadAllUsers();
}
@@ -67,7 +67,7 @@ void OtherUserPage::loadAllUsers()
{
Scalix::GetOtherUsersJob *job = Scalix::getOtherUsers( Settings::self()->globalSlave(),
Settings::self()->accountUrl() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( allUsers( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( allUsers( KIO::Job* ) ) );
}
void OtherUserPage::addUser()
@@ -76,24 +76,24 @@ void OtherUserPage::addUser()
if ( !dlg.exec() )
return;
- const QString email = dlg.selectedUser();
+ const TQString email = dlg.selectedUser();
if ( email.isEmpty() )
return;
Scalix::AddOtherUserJob *job = Scalix::addOtherUser( Settings::self()->globalSlave(),
Settings::self()->accountUrl(), email );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( userAdded( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( userAdded( KIO::Job* ) ) );
}
void OtherUserPage::removeUser()
{
- const QString email = mView->selectedUser();
+ const TQString email = mView->selectedUser();
if ( email.isEmpty() )
return;
Scalix::DeleteOtherUserJob *job = Scalix::deleteOtherUser( Settings::self()->globalSlave(),
Settings::self()->accountUrl(), email );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( userRemoved( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( userRemoved( KIO::Job* ) ) );
}
void OtherUserPage::allUsers( KIO::Job *job )
@@ -105,7 +105,7 @@ void OtherUserPage::allUsers( KIO::Job *job )
mManager.clear();
- const QStringList users = userJob->otherUsers();
+ const TQStringList users = userJob->otherUsers();
for ( uint i = 0; i < users.count(); ++i )
mManager.addOtherUser( users[ i ] );
@@ -139,18 +139,18 @@ void OtherUserPage::selectionChanged()
void OtherUserPage::updateKmail()
{
- QMessageBox *msg = new QMessageBox( qApp->mainWidget() );
+ TQMessageBox *msg = new TQMessageBox( qApp->mainWidget() );
msg->setText( i18n( "Updating account..." ) );
msg->show();
qApp->processEvents();
sleep( 1 );
qApp->processEvents();
- QString error;
- QCString dcopService;
+ TQString error;
+ TQCString dcopService;
int result = KDCOPServiceStarter::self()->
- findServiceFor( "DCOP/ResourceBackend/IMAP", QString::null,
- QString::null, &error, &dcopService );
+ findServiceFor( "DCOP/ResourceBackend/IMAP", TQString::null,
+ TQString::null, &error, &dcopService );
if ( result != 0 ) {
KMessageBox::error( 0, i18n( "Unable to start KMail to trigger account update with Scalix server" ) );
delete msg;
@@ -160,12 +160,12 @@ void OtherUserPage::updateKmail()
DCOPRef ref( dcopService, "KMailIface" );
// loop until dcop iface is set up correctly
- QStringList list;
+ TQStringList list;
while ( list.isEmpty() ) {
ref.call( "accounts()" ).get( list );
}
- ref.call( "checkAccount(QString)", i18n( "Scalix Server" ) );
+ ref.call( "checkAccount(TQString)", i18n( "Scalix Server" ) );
delete msg;
}