summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/scalixadmin
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/scalix/scalixadmin')
-rw-r--r--kresources/scalix/scalixadmin/delegatedialog.cpp34
-rw-r--r--kresources/scalix/scalixadmin/delegatedialog.h8
-rw-r--r--kresources/scalix/scalixadmin/delegatemanager.h4
-rw-r--r--kresources/scalix/scalixadmin/delegatepage.cpp32
-rw-r--r--kresources/scalix/scalixadmin/delegatepage.h10
-rw-r--r--kresources/scalix/scalixadmin/delegateview.cpp8
-rw-r--r--kresources/scalix/scalixadmin/delegateview.h2
-rw-r--r--kresources/scalix/scalixadmin/jobs.cpp130
-rw-r--r--kresources/scalix/scalixadmin/jobs.h54
-rw-r--r--kresources/scalix/scalixadmin/ldapdialog.cpp4
-rw-r--r--kresources/scalix/scalixadmin/ldapdialog.h4
-rw-r--r--kresources/scalix/scalixadmin/ldapview.cpp28
-rw-r--r--kresources/scalix/scalixadmin/ldapview.h8
-rw-r--r--kresources/scalix/scalixadmin/mainwindow.cpp6
-rw-r--r--kresources/scalix/scalixadmin/otherusermanager.cpp4
-rw-r--r--kresources/scalix/scalixadmin/otherusermanager.h10
-rw-r--r--kresources/scalix/scalixadmin/otheruserpage.cpp48
-rw-r--r--kresources/scalix/scalixadmin/otheruserpage.h8
-rw-r--r--kresources/scalix/scalixadmin/otheruserview.cpp18
-rw-r--r--kresources/scalix/scalixadmin/otheruserview.h4
-rw-r--r--kresources/scalix/scalixadmin/outofofficepage.cpp42
-rw-r--r--kresources/scalix/scalixadmin/outofofficepage.h14
-rw-r--r--kresources/scalix/scalixadmin/passwordpage.cpp48
-rw-r--r--kresources/scalix/scalixadmin/passwordpage.h10
-rw-r--r--kresources/scalix/scalixadmin/settings.cpp18
-rw-r--r--kresources/scalix/scalixadmin/settings.h14
26 files changed, 285 insertions, 285 deletions
diff --git a/kresources/scalix/scalixadmin/delegatedialog.cpp b/kresources/scalix/scalixadmin/delegatedialog.cpp
index 3dc0412a4..661f57430 100644
--- a/kresources/scalix/scalixadmin/delegatedialog.cpp
+++ b/kresources/scalix/scalixadmin/delegatedialog.cpp
@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qtoolbutton.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqtoolbutton.h>
#include <klocale.h>
@@ -31,24 +31,24 @@
#include "delegatedialog.h"
-DelegateDialog::DelegateDialog( QWidget *parent )
+DelegateDialog::DelegateDialog( TQWidget *parent )
: KDialogBase( parent, "", true, "", Ok | Cancel, Ok, true )
{
- QWidget *page = new QWidget( this );
- QGridLayout *layout = new QGridLayout( page, 5, 3, 11, 6 );
+ TQWidget *page = new TQWidget( this );
+ TQGridLayout *layout = new TQGridLayout( page, 5, 3, 11, 6 );
- QLabel *label = new QLabel( i18n( "User:" ), page );
+ TQLabel *label = new TQLabel( i18n( "User:" ), page );
layout->addWidget( label, 0, 0 );
- mEmail = new QLineEdit( page );
+ mEmail = new TQLineEdit( page );
layout->addWidget( mEmail, 0, 1 );
- QToolButton *emailSelector = new QToolButton( page );
+ TQToolButton *emailSelector = new TQToolButton( page );
emailSelector->setUsesTextLabel( true );
emailSelector->setTextLabel( i18n( "..." ) );
layout->addWidget( emailSelector, 0, 2 );
- QValueList<Scalix::DelegateTypes> types;
+ TQValueList<Scalix::DelegateTypes> types;
types << Scalix::SendOnBehalfOf;
types << Scalix::SeePrivate;
types << Scalix::GetMeetings;
@@ -56,14 +56,14 @@ DelegateDialog::DelegateDialog( QWidget *parent )
int row = 1;
for ( uint i = 0; i < types.count(); ++i ) {
- QCheckBox *box = new QCheckBox( Scalix::Delegate::rightsAsString( types[ i ] ), page );
+ TQCheckBox *box = new TQCheckBox( Scalix::Delegate::rightsAsString( types[ i ] ), page );
layout->addMultiCellWidget( box, row, row, 1, 2 );
mRights.insert( types[ i ], box );
row++;
}
- connect( emailSelector, SIGNAL( clicked() ), SLOT( selectEmail() ) );
+ connect( emailSelector, TQT_SIGNAL( clicked() ), TQT_SLOT( selectEmail() ) );
setMainWidget( page );
}
@@ -72,7 +72,7 @@ void DelegateDialog::setDelegate( const Scalix::Delegate &delegate )
{
mEmail->setText( delegate.email() );
- QMap<int, QCheckBox*>::Iterator it;
+ TQMap<int, TQCheckBox*>::Iterator it;
for ( it = mRights.begin(); it != mRights.end(); ++it )
it.data()->setChecked( delegate.rights() & it.key() );
}
@@ -81,7 +81,7 @@ Scalix::Delegate DelegateDialog::delegate() const
{
int rights = 0;
- QMap<int, QCheckBox*>::ConstIterator it;
+ TQMap<int, TQCheckBox*>::ConstIterator it;
for ( it = mRights.begin(); it != mRights.end(); ++it )
if ( it.data()->isChecked() )
rights |= it.key();
@@ -95,7 +95,7 @@ void DelegateDialog::selectEmail()
if ( !dlg.exec() )
return;
- const QString email = dlg.selectedUser();
+ const TQString email = dlg.selectedUser();
if ( email.isEmpty() )
return;
diff --git a/kresources/scalix/scalixadmin/delegatedialog.h b/kresources/scalix/scalixadmin/delegatedialog.h
index b5503a4f3..3d712d8e2 100644
--- a/kresources/scalix/scalixadmin/delegatedialog.h
+++ b/kresources/scalix/scalixadmin/delegatedialog.h
@@ -21,7 +21,7 @@
#ifndef DELEGATEDIALOG_H
#define DELEGATEDIALOG_H
-#include <qmap.h>
+#include <tqmap.h>
#include <kdialogbase.h>
@@ -37,7 +37,7 @@ class DelegateDialog : public KDialogBase
Q_OBJECT
public:
- DelegateDialog( QWidget *parent = 0 );
+ DelegateDialog( TQWidget *parent = 0 );
void setDelegate( const Scalix::Delegate &delegate );
Scalix::Delegate delegate() const;
@@ -46,8 +46,8 @@ class DelegateDialog : public KDialogBase
void selectEmail();
private:
- QLineEdit *mEmail;
- QMap<int, QCheckBox*> mRights;
+ TQLineEdit *mEmail;
+ TQMap<int, TQCheckBox*> mRights;
};
#endif
diff --git a/kresources/scalix/scalixadmin/delegatemanager.h b/kresources/scalix/scalixadmin/delegatemanager.h
index f27b79a1b..7f5e2e5a7 100644
--- a/kresources/scalix/scalixadmin/delegatemanager.h
+++ b/kresources/scalix/scalixadmin/delegatemanager.h
@@ -21,8 +21,8 @@
#ifndef DELEGATEMANAGER_H
#define DELEGATEMANAGER_H
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
#include "jobs.h"
diff --git a/kresources/scalix/scalixadmin/delegatepage.cpp b/kresources/scalix/scalixadmin/delegatepage.cpp
index f9a9b8e7a..033472901 100644
--- a/kresources/scalix/scalixadmin/delegatepage.cpp
+++ b/kresources/scalix/scalixadmin/delegatepage.cpp
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kinputdialog.h>
#include <klocale.h>
@@ -34,29 +34,29 @@
#include "delegatepage.h"
-DelegatePage::DelegatePage( QWidget *parent )
- : QWidget( parent )
+DelegatePage::DelegatePage( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 2, 3, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 3, 11, 6 );
mView = new DelegateView( &mManager, this );
layout->addMultiCellWidget( mView, 0, 0, 0, 2 );
- mAddButton = new QPushButton( i18n( "Add Delegate..." ), this );
+ mAddButton = new TQPushButton( i18n( "Add Delegate..." ), this );
layout->addWidget( mAddButton, 1, 0 );
- mEditButton = new QPushButton( i18n( "Edit Delegate..." ), this );
+ mEditButton = new TQPushButton( i18n( "Edit Delegate..." ), this );
mEditButton->setEnabled( false );
layout->addWidget( mEditButton, 1, 1 );
- mRemoveButton = new QPushButton( i18n( "Remove Delegate" ), this );
+ mRemoveButton = new TQPushButton( i18n( "Remove Delegate" ), this );
mRemoveButton->setEnabled( false );
layout->addWidget( mRemoveButton, 1, 2 );
- connect( mView, SIGNAL( selectionChanged() ), SLOT( selectionChanged() ) );
- connect( mAddButton, SIGNAL( clicked() ), SLOT( addDelegate() ) );
- connect( mEditButton, SIGNAL( clicked() ), SLOT( editDelegate() ) );
- connect( mRemoveButton, SIGNAL( clicked() ), SLOT( removeDelegate() ) );
+ connect( mView, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( selectionChanged() ) );
+ connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addDelegate() ) );
+ connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( editDelegate() ) );
+ connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeDelegate() ) );
loadAllDelegates();
}
@@ -69,7 +69,7 @@ void DelegatePage::loadAllDelegates()
{
Scalix::GetDelegatesJob *job = Scalix::getDelegates( Settings::self()->globalSlave(),
Settings::self()->accountUrl() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( allDelegates( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( allDelegates( KIO::Job* ) ) );
}
void DelegatePage::addDelegate()
@@ -88,7 +88,7 @@ void DelegatePage::addDelegate()
Scalix::SetDelegateJob *job = Scalix::setDelegate( Settings::self()->globalSlave(),
Settings::self()->accountUrl(),
delegate.email(), delegate.rights() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( delegateAdded( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( delegateAdded( KIO::Job* ) ) );
}
void DelegatePage::editDelegate()
@@ -113,7 +113,7 @@ void DelegatePage::editDelegate()
Scalix::SetDelegateJob *job = Scalix::setDelegate( Settings::self()->globalSlave(),
Settings::self()->accountUrl(),
delegate.email(), delegate.rights() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( delegateAdded( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( delegateAdded( KIO::Job* ) ) );
}
void DelegatePage::removeDelegate()
@@ -124,7 +124,7 @@ void DelegatePage::removeDelegate()
Scalix::DeleteDelegateJob *job = Scalix::deleteDelegate( Settings::self()->globalSlave(),
Settings::self()->accountUrl(), delegate.email() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( delegateRemoved( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( delegateRemoved( KIO::Job* ) ) );
}
void DelegatePage::allDelegates( KIO::Job *job )
diff --git a/kresources/scalix/scalixadmin/delegatepage.h b/kresources/scalix/scalixadmin/delegatepage.h
index 243c0f0d3..edaad8e78 100644
--- a/kresources/scalix/scalixadmin/delegatepage.h
+++ b/kresources/scalix/scalixadmin/delegatepage.h
@@ -21,7 +21,7 @@
#ifndef DELEGATEPAGE_H
#define DELEGATEPAGE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "delegatemanager.h"
@@ -33,7 +33,7 @@ class DelegatePage : public QWidget
Q_OBJECT
public:
- DelegatePage( QWidget *parent = 0 );
+ DelegatePage( TQWidget *parent = 0 );
~DelegatePage();
private slots:
@@ -49,9 +49,9 @@ class DelegatePage : public QWidget
void selectionChanged();
private:
- QPushButton *mAddButton;
- QPushButton *mEditButton;
- QPushButton *mRemoveButton;
+ TQPushButton *mAddButton;
+ TQPushButton *mEditButton;
+ TQPushButton *mRemoveButton;
DelegateManager mManager;
DelegateView *mView;
diff --git a/kresources/scalix/scalixadmin/delegateview.cpp b/kresources/scalix/scalixadmin/delegateview.cpp
index 9ea16cf1a..e253f1f36 100644
--- a/kresources/scalix/scalixadmin/delegateview.cpp
+++ b/kresources/scalix/scalixadmin/delegateview.cpp
@@ -27,8 +27,8 @@
class DelegateItem : public QListViewItem
{
public:
- DelegateItem( QListView *parent, const Scalix::Delegate &delegate )
- : QListViewItem( parent ), mDelegate( delegate )
+ DelegateItem( TQListView *parent, const Scalix::Delegate &delegate )
+ : TQListViewItem( parent ), mDelegate( delegate )
{
setText( 0, mDelegate.email() );
setText( 1, Scalix::Delegate::rightsAsString( mDelegate.rights() ) );
@@ -40,7 +40,7 @@ class DelegateItem : public QListViewItem
Scalix::Delegate mDelegate;
};
-DelegateView::DelegateView( DelegateManager *manager, QWidget *parent )
+DelegateView::DelegateView( DelegateManager *manager, TQWidget *parent )
: KListView( parent ), mManager( manager )
{
addColumn( i18n( "Delegate" ) );
@@ -48,7 +48,7 @@ DelegateView::DelegateView( DelegateManager *manager, QWidget *parent )
setFullWidth( true );
setAllColumnsShowFocus( true );
- connect( mManager, SIGNAL( changed() ), SLOT( delegateChanged() ) );
+ connect( mManager, TQT_SIGNAL( changed() ), TQT_SLOT( delegateChanged() ) );
delegateChanged();
}
diff --git a/kresources/scalix/scalixadmin/delegateview.h b/kresources/scalix/scalixadmin/delegateview.h
index 61725be29..1e9e6300f 100644
--- a/kresources/scalix/scalixadmin/delegateview.h
+++ b/kresources/scalix/scalixadmin/delegateview.h
@@ -34,7 +34,7 @@ class DelegateView : public KListView
Q_OBJECT
public:
- DelegateView( DelegateManager *manager, QWidget *parent = 0 );
+ DelegateView( DelegateManager *manager, TQWidget *parent = 0 );
Scalix::Delegate selectedDelegate() const;
diff --git a/kresources/scalix/scalixadmin/jobs.cpp b/kresources/scalix/scalixadmin/jobs.cpp
index c463463d2..f1bce9f2c 100644
--- a/kresources/scalix/scalixadmin/jobs.cpp
+++ b/kresources/scalix/scalixadmin/jobs.cpp
@@ -30,7 +30,7 @@ Delegate::Delegate()
{
}
-Delegate::Delegate( const QString &email, int rights )
+Delegate::Delegate( const TQString &email, int rights )
: mEmail( email ), mRights( rights )
{
}
@@ -40,7 +40,7 @@ bool Delegate::isValid() const
return ( !mEmail.isEmpty() && mRights != -1 );
}
-QString Delegate::email() const
+TQString Delegate::email() const
{
return mEmail;
}
@@ -50,9 +50,9 @@ int Delegate::rights() const
return mRights;
}
-QString Delegate::rightsAsString( int rights )
+TQString Delegate::rightsAsString( int rights )
{
- QStringList rightNames;
+ TQStringList rightNames;
if ( rights & SendOnBehalfOf )
rightNames.append( i18n( "Send on behalf of" ) );
@@ -68,21 +68,21 @@ QString Delegate::rightsAsString( int rights )
SetPasswordJob* Scalix::setPassword( KIO::Slave* slave, const KURL& url,
- const QString &oldPassword, const QString& newPassword )
+ const TQString &oldPassword, const TQString& newPassword )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-SCALIX-PASSWORD" ) << QString( "%1 %2" ).arg( oldPassword ).arg( newPassword );
+ << TQString( "X-SCALIX-PASSWORD" ) << TQString( "%1 %2" ).arg( oldPassword ).arg( newPassword );
SetPasswordJob* job = new SetPasswordJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-SetDelegateJob* Scalix::setDelegate( KIO::Slave* slave, const KURL& url, const QString& email, int params )
+SetDelegateJob* Scalix::setDelegate( KIO::Slave* slave, const KURL& url, const TQString& email, int params )
{
- QStringList types;
+ TQStringList types;
if ( params & SendOnBehalfOf )
types.append( "SOBO" );
if ( params & SeePrivate )
@@ -92,22 +92,22 @@ SetDelegateJob* Scalix::setDelegate( KIO::Slave* slave, const KURL& url, const Q
if ( params & InsteadOfMe )
types.append( "INSTEADOFME" );
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-SET-DELEGATE" ) << QString( "%1 %2" ).arg( email ).arg( types.join( " " ) );
+ << TQString( "X-SET-DELEGATE" ) << TQString( "%1 %2" ).arg( email ).arg( types.join( " " ) );
SetDelegateJob* job = new SetDelegateJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-DeleteDelegateJob* Scalix::deleteDelegate( KIO::Slave* slave, const KURL& url, const QString& email )
+DeleteDelegateJob* Scalix::deleteDelegate( KIO::Slave* slave, const KURL& url, const TQString& email )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-DELETE-DELEGATE" ) << email;
+ << TQString( "X-DELETE-DELEGATE" ) << email;
DeleteDelegateJob* job = new DeleteDelegateJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
@@ -116,33 +116,33 @@ DeleteDelegateJob* Scalix::deleteDelegate( KIO::Slave* slave, const KURL& url, c
GetDelegatesJob* Scalix::getDelegates( KIO::Slave* slave, const KURL& url )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
- stream << (int)'X' << (int)'N' << QString( "X-GET-DELEGATES" ) << QString();
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
+ stream << (int)'X' << (int)'N' << TQString( "X-GET-DELEGATES" ) << TQString();
GetDelegatesJob* job = new GetDelegatesJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-AddOtherUserJob* Scalix::addOtherUser( KIO::Slave* slave, const KURL& url, const QString& email )
+AddOtherUserJob* Scalix::addOtherUser( KIO::Slave* slave, const KURL& url, const TQString& email )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-ADD-OTHER-USER" ) << email;
+ << TQString( "X-ADD-OTHER-USER" ) << email;
AddOtherUserJob* job = new AddOtherUserJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-DeleteOtherUserJob* Scalix::deleteOtherUser( KIO::Slave* slave, const KURL& url, const QString& email )
+DeleteOtherUserJob* Scalix::deleteOtherUser( KIO::Slave* slave, const KURL& url, const TQString& email )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-DELETE-OTHER-USER" ) << email;
+ << TQString( "X-DELETE-OTHER-USER" ) << email;
DeleteOtherUserJob* job = new DeleteOtherUserJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
@@ -151,25 +151,25 @@ DeleteOtherUserJob* Scalix::deleteOtherUser( KIO::Slave* slave, const KURL& url,
GetOtherUsersJob* Scalix::getOtherUsers( KIO::Slave* slave, const KURL& url )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-GET-OTHER-USERS" ) << QString();
+ << TQString( "X-GET-OTHER-USERS" ) << TQString();
GetOtherUsersJob* job = new GetOtherUsersJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-SetOutOfOfficeJob* Scalix::setOutOfOffice( KIO::Slave* slave, const KURL& url, bool enabled, const QString& msg )
+SetOutOfOfficeJob* Scalix::setOutOfOffice( KIO::Slave* slave, const KURL& url, bool enabled, const TQString& msg )
{
- const QString argument = msg;
- const QString command = QString( "X-SET-OUT-OF-OFFICE %1 %2 {%3}" ).arg( enabled ? "ENABLED" : "DISABLED" )
+ const TQString argument = msg;
+ const TQString command = TQString( "X-SET-OUT-OF-OFFICE %1 %2 {%3}" ).arg( enabled ? "ENABLED" : "DISABLED" )
.arg( "UTF-8" )
.arg( msg.utf8().length() );
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int) 'X' << (int)'E' << command << argument;
SetOutOfOfficeJob* job = new SetOutOfOfficeJob( url, packedArgs, false );
@@ -179,36 +179,36 @@ SetOutOfOfficeJob* Scalix::setOutOfOffice( KIO::Slave* slave, const KURL& url, b
GetOutOfOfficeJob* Scalix::getOutOfOffice( KIO::Slave* slave, const KURL& url )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'X' << (int)'N'
- << QString( "X-GET-OUT-OF-OFFICE" ) << QString();
+ << TQString( "X-GET-OUT-OF-OFFICE" ) << TQString();
GetOutOfOfficeJob* job = new GetOutOfOfficeJob( url, packedArgs, false );
KIO::Scheduler::assignJobToSlave( slave, job );
return job;
}
-SetPasswordJob::SetPasswordJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+SetPasswordJob::SetPasswordJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-SetDelegateJob::SetDelegateJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+SetDelegateJob::SetDelegateJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-DeleteDelegateJob::DeleteDelegateJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+DeleteDelegateJob::DeleteDelegateJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-GetDelegatesJob::GetDelegatesJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+GetDelegatesJob::GetDelegatesJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, SIGNAL( infoMessage( KIO::Job*, const QString& ) ),
- this, SLOT( slotInfoMessage( KIO::Job*, const QString& ) ) );
+ connect( this, TQT_SIGNAL( infoMessage( KIO::Job*, const TQString& ) ),
+ this, TQT_SLOT( slotInfoMessage( KIO::Job*, const TQString& ) ) );
}
Delegate::List GetDelegatesJob::delegates() const
@@ -216,21 +216,21 @@ Delegate::List GetDelegatesJob::delegates() const
return mDelegates;
}
-void GetDelegatesJob::slotInfoMessage( KIO::Job*, const QString &data )
+void GetDelegatesJob::slotInfoMessage( KIO::Job*, const TQString &data )
{
/**
* The passed data have the following form:
*
* "user1@host.com:right1,right2,right4 user2@host.com:right3,right5"
*/
- QStringList delegates = QStringList::split( ' ', data );
+ TQStringList delegates = TQStringList::split( ' ', data );
for ( uint i = 0; i < delegates.count(); ++i ) {
- QStringList delegate = QStringList::split( ':', delegates[ i ] );
+ TQStringList delegate = TQStringList::split( ':', delegates[ i ] );
- const QString email = delegate[ 0 ];
+ const TQString email = delegate[ 0 ];
int rights = 0;
- QStringList rightsList = QStringList::split( ',', delegate[ 1 ] );
+ TQStringList rightsList = TQStringList::split( ',', delegate[ 1 ] );
for ( uint j = 0; j < rightsList.count(); ++j ) {
if ( rightsList[ j ] == "SOBO" )
rights |= SendOnBehalfOf;
@@ -246,43 +246,43 @@ void GetDelegatesJob::slotInfoMessage( KIO::Job*, const QString &data )
}
}
-AddOtherUserJob::AddOtherUserJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+AddOtherUserJob::AddOtherUserJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-DeleteOtherUserJob::DeleteOtherUserJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+DeleteOtherUserJob::DeleteOtherUserJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-GetOtherUsersJob::GetOtherUsersJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+GetOtherUsersJob::GetOtherUsersJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, SIGNAL( infoMessage( KIO::Job*, const QString& ) ),
- this, SLOT( slotInfoMessage( KIO::Job*, const QString& ) ) );
+ connect( this, TQT_SIGNAL( infoMessage( KIO::Job*, const TQString& ) ),
+ this, TQT_SLOT( slotInfoMessage( KIO::Job*, const TQString& ) ) );
}
-QStringList GetOtherUsersJob::otherUsers() const
+TQStringList GetOtherUsersJob::otherUsers() const
{
return mOtherUsers;
}
-void GetOtherUsersJob::slotInfoMessage( KIO::Job*, const QString &data )
+void GetOtherUsersJob::slotInfoMessage( KIO::Job*, const TQString &data )
{
- mOtherUsers = QStringList::split( ' ', data );
+ mOtherUsers = TQStringList::split( ' ', data );
}
-SetOutOfOfficeJob::SetOutOfOfficeJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+SetOutOfOfficeJob::SetOutOfOfficeJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
}
-GetOutOfOfficeJob::GetOutOfOfficeJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo )
+GetOutOfOfficeJob::GetOutOfOfficeJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, SIGNAL( infoMessage( KIO::Job*, const QString& ) ),
- this, SLOT( slotInfoMessage( KIO::Job*, const QString& ) ) );
+ connect( this, TQT_SIGNAL( infoMessage( KIO::Job*, const TQString& ) ),
+ this, TQT_SLOT( slotInfoMessage( KIO::Job*, const TQString& ) ) );
}
bool GetOutOfOfficeJob::enabled() const
@@ -290,14 +290,14 @@ bool GetOutOfOfficeJob::enabled() const
return mEnabled;
}
-QString GetOutOfOfficeJob::message() const
+TQString GetOutOfOfficeJob::message() const
{
return mMessage;
}
-void GetOutOfOfficeJob::slotInfoMessage( KIO::Job*, const QString &data )
+void GetOutOfOfficeJob::slotInfoMessage( KIO::Job*, const TQString &data )
{
- const QStringList fields = QStringList::split( '^', data );
+ const TQStringList fields = TQStringList::split( '^', data );
mEnabled = ( fields[ 0 ] == "ENABLED" );
mMessage = fields[ 1 ];
diff --git a/kresources/scalix/scalixadmin/jobs.h b/kresources/scalix/scalixadmin/jobs.h
index 3b5a1b81f..24ce1c020 100644
--- a/kresources/scalix/scalixadmin/jobs.h
+++ b/kresources/scalix/scalixadmin/jobs.h
@@ -46,37 +46,37 @@ namespace Scalix {
class Delegate
{
public:
- typedef QValueList<Delegate> List;
+ typedef TQValueList<Delegate> List;
Delegate();
- Delegate( const QString &email, int rights );
+ Delegate( const TQString &email, int rights );
bool isValid() const;
- QString email() const;
+ TQString email() const;
int rights() const;
- static QString rightsAsString( int rights );
+ static TQString rightsAsString( int rights );
private:
- QString mEmail;
+ TQString mEmail;
int mRights;
};
/**
* Sets/Changes the password of the user encoded in @p url.
*/
- SetPasswordJob* setPassword( KIO::Slave* slave, const KURL& url, const QString& oldPassword, const QString& newPassword );
+ SetPasswordJob* setPassword( KIO::Slave* slave, const KURL& url, const TQString& oldPassword, const TQString& newPassword );
/**
* Adds a delegate represented by @p email with the given @p params for the user encoded in @p url.
*/
- SetDelegateJob* setDelegate( KIO::Slave* slave, const KURL& url, const QString& email, int params );
+ SetDelegateJob* setDelegate( KIO::Slave* slave, const KURL& url, const TQString& email, int params );
/**
* Deletes the delegate represented by @p email for the user encoded in @p url.
*/
- DeleteDelegateJob* deleteDelegate( KIO::Slave* slave, const KURL& url, const QString& email );
+ DeleteDelegateJob* deleteDelegate( KIO::Slave* slave, const KURL& url, const TQString& email );
/**
* Retrieves the delegates for the user encoded in @p url.
@@ -86,12 +86,12 @@ namespace Scalix {
/**
* Adds the mailbox of another user represented by @p email to the users 'Other Users' namespace.
*/
- AddOtherUserJob* addOtherUser( KIO::Slave* slave, const KURL& url, const QString& email );
+ AddOtherUserJob* addOtherUser( KIO::Slave* slave, const KURL& url, const TQString& email );
/**
* Deletes the mailbox of another user represented by @p email from the users 'Other Users' namespace.
*/
- DeleteOtherUserJob* deleteOtherUser( KIO::Slave* slave, const KURL& url, const QString& email );
+ DeleteOtherUserJob* deleteOtherUser( KIO::Slave* slave, const KURL& url, const TQString& email );
/**
* Retrieves the list of all other users.
@@ -104,7 +104,7 @@ namespace Scalix {
* @param enabled Whether the out-of-office functionality is enabled.
* @param msg The out-of-office message.
*/
- SetOutOfOfficeJob* setOutOfOffice( KIO::Slave* slave, const KURL& url, bool enabled, const QString& msg );
+ SetOutOfOfficeJob* setOutOfOffice( KIO::Slave* slave, const KURL& url, bool enabled, const TQString& msg );
/**
* Retrieves the out-of-office data.
@@ -115,19 +115,19 @@ namespace Scalix {
class SetPasswordJob : public KIO::SimpleJob
{
public:
- SetPasswordJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ SetPasswordJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class SetDelegateJob : public KIO::SimpleJob
{
public:
- SetDelegateJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ SetDelegateJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class DeleteDelegateJob : public KIO::SimpleJob
{
public:
- DeleteDelegateJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ DeleteDelegateJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class GetDelegatesJob : public KIO::SimpleJob
@@ -135,12 +135,12 @@ namespace Scalix {
Q_OBJECT
public:
- GetDelegatesJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ GetDelegatesJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
Delegate::List delegates() const;
private slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
Delegate::List mDelegates;
@@ -149,13 +149,13 @@ namespace Scalix {
class AddOtherUserJob : public KIO::SimpleJob
{
public:
- AddOtherUserJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ AddOtherUserJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class DeleteOtherUserJob : public KIO::SimpleJob
{
public:
- DeleteOtherUserJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ DeleteOtherUserJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class GetOtherUsersJob : public KIO::SimpleJob
@@ -163,21 +163,21 @@ namespace Scalix {
Q_OBJECT
public:
- GetOtherUsersJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ GetOtherUsersJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
- QStringList otherUsers() const;
+ TQStringList otherUsers() const;
private slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
- QStringList mOtherUsers;
+ TQStringList mOtherUsers;
};
class SetOutOfOfficeJob : public KIO::SimpleJob
{
public:
- SetOutOfOfficeJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ SetOutOfOfficeJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
};
class GetOutOfOfficeJob : public KIO::SimpleJob
@@ -185,17 +185,17 @@ namespace Scalix {
Q_OBJECT
public:
- GetOutOfOfficeJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ GetOutOfOfficeJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
bool enabled() const;
- QString message() const;
+ TQString message() const;
private slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
bool mEnabled;
- QString mMessage;
+ TQString mMessage;
};
}
diff --git a/kresources/scalix/scalixadmin/ldapdialog.cpp b/kresources/scalix/scalixadmin/ldapdialog.cpp
index be624f131..6af08c4d7 100644
--- a/kresources/scalix/scalixadmin/ldapdialog.cpp
+++ b/kresources/scalix/scalixadmin/ldapdialog.cpp
@@ -24,7 +24,7 @@
#include "ldapdialog.h"
-LdapDialog::LdapDialog( QWidget *parent )
+LdapDialog::LdapDialog( TQWidget *parent )
: KDialogBase( parent, "", true, "", Ok | Cancel, Ok, true )
{
setCaption( i18n( "User Account Selection" ) );
@@ -37,7 +37,7 @@ LdapDialog::LdapDialog( QWidget *parent )
resize( 400, 250 );
}
-QString LdapDialog::selectedUser() const
+TQString LdapDialog::selectedUser() const
{
return mView->selectedUser();
}
diff --git a/kresources/scalix/scalixadmin/ldapdialog.h b/kresources/scalix/scalixadmin/ldapdialog.h
index 6b326f550..9d822af19 100644
--- a/kresources/scalix/scalixadmin/ldapdialog.h
+++ b/kresources/scalix/scalixadmin/ldapdialog.h
@@ -27,9 +27,9 @@ class LdapView;
class LdapDialog : public KDialogBase
{
public:
- LdapDialog( QWidget *parent = 0 );
+ LdapDialog( TQWidget *parent = 0 );
- QString selectedUser() const;
+ TQString selectedUser() const;
private:
diff --git a/kresources/scalix/scalixadmin/ldapview.cpp b/kresources/scalix/scalixadmin/ldapview.cpp
index 660f1944a..0e40f3ae6 100644
--- a/kresources/scalix/scalixadmin/ldapview.cpp
+++ b/kresources/scalix/scalixadmin/ldapview.cpp
@@ -29,8 +29,8 @@
class LdapItem : public QListViewItem
{
public:
- LdapItem( QListView *parent, const QString &text, const QString &email )
- : QListViewItem( parent )
+ LdapItem( TQListView *parent, const TQString &text, const TQString &email )
+ : TQListViewItem( parent )
{
setText( 0, text );
setText( 1, email );
@@ -38,7 +38,7 @@ class LdapItem : public QListViewItem
};
-LdapView::LdapView( QWidget *parent )
+LdapView::LdapView( TQWidget *parent )
: KListView( parent )
{
addColumn( i18n( "User" ) );
@@ -52,14 +52,14 @@ LdapView::LdapView( QWidget *parent )
mClient->setBindDN( Settings::self()->ldapBindDn() );
mClient->setPwdBindDN( Settings::self()->ldapPassword() );
- QStringList attrs;
+ TQStringList attrs;
attrs << "surname" << "mail";
mClient->setAttrs( attrs );
- connect( mClient, SIGNAL( result( const KABC::LdapObject& ) ),
- this, SLOT( entryAdded( const KABC::LdapObject& ) ) );
- connect( mClient, SIGNAL( error( const QString& ) ),
- this, SLOT( error( const QString& ) ) );
+ connect( mClient, TQT_SIGNAL( result( const KABC::LdapObject& ) ),
+ this, TQT_SLOT( entryAdded( const KABC::LdapObject& ) ) );
+ connect( mClient, TQT_SIGNAL( error( const TQString& ) ),
+ this, TQT_SLOT( error( const TQString& ) ) );
}
LdapView::~LdapView()
@@ -68,16 +68,16 @@ LdapView::~LdapView()
delete mClient;
}
-QString LdapView::selectedUser() const
+TQString LdapView::selectedUser() const
{
- QListViewItem *item = selectedItem();
+ TQListViewItem *item = selectedItem();
if ( !item )
- return QString();
+ return TQString();
else
return item->text( 1 );
}
-void LdapView::setQuery( const QString &query )
+void LdapView::setQuery( const TQString &query )
{
clear();
mClient->startQuery( query );
@@ -85,13 +85,13 @@ void LdapView::setQuery( const QString &query )
void LdapView::entryAdded( const KABC::LdapObject &obj )
{
- const QString text = QString( "%1 (%2)" ).arg( obj.attrs[ "surname" ].first() )
+ const TQString text = TQString( "%1 (%2)" ).arg( obj.attrs[ "surname" ].first() )
.arg( obj.attrs[ "mail" ].first() );
new LdapItem( this, text, obj.attrs[ "mail" ].first() );
}
-void LdapView::error( const QString &msg )
+void LdapView::error( const TQString &msg )
{
KMessageBox::error( this, msg );
}
diff --git a/kresources/scalix/scalixadmin/ldapview.h b/kresources/scalix/scalixadmin/ldapview.h
index 0acb3602c..4616e11ce 100644
--- a/kresources/scalix/scalixadmin/ldapview.h
+++ b/kresources/scalix/scalixadmin/ldapview.h
@@ -32,17 +32,17 @@ class LdapView : public KListView
Q_OBJECT
public:
- LdapView( QWidget *parent = 0 );
+ LdapView( TQWidget *parent = 0 );
~LdapView();
- QString selectedUser() const;
+ TQString selectedUser() const;
public slots:
- void setQuery( const QString &query );
+ void setQuery( const TQString &query );
private slots:
void entryAdded( const KABC::LdapObject& );
- void error( const QString& );
+ void error( const TQString& );
private:
KABC::LdapClient *mClient;
diff --git a/kresources/scalix/scalixadmin/mainwindow.cpp b/kresources/scalix/scalixadmin/mainwindow.cpp
index e6cac550d..4f3dbf94b 100644
--- a/kresources/scalix/scalixadmin/mainwindow.cpp
+++ b/kresources/scalix/scalixadmin/mainwindow.cpp
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qvbox.h>
+#include <tqvbox.h>
#include <kglobal.h>
#include <kiconloader.h>
@@ -37,8 +37,8 @@ MainWindow::MainWindow()
{
KJanusWidget *wdg = new KJanusWidget( this, "", KJanusWidget::IconList );
- QPixmap icon = KGlobal::iconLoader()->loadIcon( "folder_yellow", KIcon::Desktop );
- QVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon );
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon( "folder_yellow", KIcon::Desktop );
+ TQVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon );
new OtherUserPage( page );
icon = KGlobal::iconLoader()->loadIcon( "edu_languages", KIcon::Desktop );
diff --git a/kresources/scalix/scalixadmin/otherusermanager.cpp b/kresources/scalix/scalixadmin/otherusermanager.cpp
index b5b3d3ccf..a3c19de12 100644
--- a/kresources/scalix/scalixadmin/otherusermanager.cpp
+++ b/kresources/scalix/scalixadmin/otherusermanager.cpp
@@ -28,7 +28,7 @@ OtherUserManager::~OtherUserManager()
{
}
-void OtherUserManager::addOtherUser( const QString &email )
+void OtherUserManager::addOtherUser( const TQString &email )
{
if ( !mOtherUsers.contains( email ) ) {
mOtherUsers.append( email );
@@ -43,7 +43,7 @@ void OtherUserManager::clear()
emit changed();
}
-QStringList OtherUserManager::otherUsers() const
+TQStringList OtherUserManager::otherUsers() const
{
return mOtherUsers;
}
diff --git a/kresources/scalix/scalixadmin/otherusermanager.h b/kresources/scalix/scalixadmin/otherusermanager.h
index 6f7f9ac77..90d7195a4 100644
--- a/kresources/scalix/scalixadmin/otherusermanager.h
+++ b/kresources/scalix/scalixadmin/otherusermanager.h
@@ -21,8 +21,8 @@
#ifndef OTHERUSERMANAGER_H
#define OTHERUSERMANAGER_H
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
class OtherUserManager : public QObject
{
@@ -32,16 +32,16 @@ class OtherUserManager : public QObject
OtherUserManager();
~OtherUserManager();
- void addOtherUser( const QString &email );
+ void addOtherUser( const TQString &email );
void clear();
- QStringList otherUsers() const;
+ TQStringList otherUsers() const;
signals:
void changed();
private:
- QStringList mOtherUsers;
+ TQStringList mOtherUsers;
};
#endif
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;
}
diff --git a/kresources/scalix/scalixadmin/otheruserpage.h b/kresources/scalix/scalixadmin/otheruserpage.h
index f847a05d3..50e9292ca 100644
--- a/kresources/scalix/scalixadmin/otheruserpage.h
+++ b/kresources/scalix/scalixadmin/otheruserpage.h
@@ -21,7 +21,7 @@
#ifndef OTHERUSERPAGE_H
#define OTHERUSERPAGE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "otherusermanager.h"
@@ -33,7 +33,7 @@ class OtherUserPage : public QWidget
Q_OBJECT
public:
- OtherUserPage( QWidget *parent = 0 );
+ OtherUserPage( TQWidget *parent = 0 );
~OtherUserPage();
private slots:
@@ -50,8 +50,8 @@ class OtherUserPage : public QWidget
private:
void updateKmail();
- QPushButton *mAddButton;
- QPushButton *mDeleteButton;
+ TQPushButton *mAddButton;
+ TQPushButton *mDeleteButton;
OtherUserManager mManager;
OtherUserView *mView;
diff --git a/kresources/scalix/scalixadmin/otheruserview.cpp b/kresources/scalix/scalixadmin/otheruserview.cpp
index 70bc9e3d5..19b9c3b65 100644
--- a/kresources/scalix/scalixadmin/otheruserview.cpp
+++ b/kresources/scalix/scalixadmin/otheruserview.cpp
@@ -27,43 +27,43 @@
class OtherUserItem : public QListViewItem
{
public:
- OtherUserItem( QListView *parent, const QString &user )
- : QListViewItem( parent ), mUser( user )
+ OtherUserItem( TQListView *parent, const TQString &user )
+ : TQListViewItem( parent ), mUser( user )
{
setText( 0, mUser );
}
- QString user() const { return mUser; }
+ TQString user() const { return mUser; }
private:
- QString mUser;
+ TQString mUser;
};
-OtherUserView::OtherUserView( OtherUserManager *manager, QWidget *parent )
+OtherUserView::OtherUserView( OtherUserManager *manager, TQWidget *parent )
: KListView( parent ), mManager( manager )
{
addColumn( i18n( "Registered Accounts" ) );
setFullWidth( true );
- connect( mManager, SIGNAL( changed() ), SLOT( userChanged() ) );
+ connect( mManager, TQT_SIGNAL( changed() ), TQT_SLOT( userChanged() ) );
userChanged();
}
-QString OtherUserView::selectedUser() const
+TQString OtherUserView::selectedUser() const
{
OtherUserItem *item = dynamic_cast<OtherUserItem*>( selectedItem() );
if ( item )
return item->user();
- return QString();
+ return TQString();
}
void OtherUserView::userChanged()
{
clear();
- QStringList users = mManager->otherUsers();
+ TQStringList users = mManager->otherUsers();
for ( uint i = 0; i < users.count(); ++i )
new OtherUserItem( this, users[ i ] );
}
diff --git a/kresources/scalix/scalixadmin/otheruserview.h b/kresources/scalix/scalixadmin/otheruserview.h
index 6eacc93c9..def14a84b 100644
--- a/kresources/scalix/scalixadmin/otheruserview.h
+++ b/kresources/scalix/scalixadmin/otheruserview.h
@@ -30,9 +30,9 @@ class OtherUserView : public KListView
Q_OBJECT
public:
- OtherUserView( OtherUserManager *manager, QWidget *parent = 0 );
+ OtherUserView( OtherUserManager *manager, TQWidget *parent = 0 );
- QString selectedUser() const;
+ TQString selectedUser() const;
private slots:
void userChanged();
diff --git a/kresources/scalix/scalixadmin/outofofficepage.cpp b/kresources/scalix/scalixadmin/outofofficepage.cpp
index 0b8d3f803..e1e331fc4 100644
--- a/kresources/scalix/scalixadmin/outofofficepage.cpp
+++ b/kresources/scalix/scalixadmin/outofofficepage.cpp
@@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qtextedit.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqtextedit.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -33,20 +33,20 @@
#include "outofofficepage.h"
-OutOfOfficePage::OutOfOfficePage( QWidget *parent )
- : QWidget( parent )
+OutOfOfficePage::OutOfOfficePage( TQWidget *parent )
+ : TQWidget( parent )
{
- QGridLayout *layout = new QGridLayout( this, 4, 2, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 );
- QButtonGroup *group = new QButtonGroup( 1, Qt::Vertical, this );
+ TQButtonGroup *group = new TQButtonGroup( 1, Qt::Vertical, this );
- mDisabled = new QRadioButton( i18n( "I am in the office" ), group );
+ mDisabled = new TQRadioButton( i18n( "I am in the office" ), group );
mDisabled->setChecked( true );
- mEnabled = new QRadioButton( i18n( "I am out of the office" ), group );
+ mEnabled = new TQRadioButton( i18n( "I am out of the office" ), group );
- mLabel = new QLabel( i18n( "Auto-reply once to each sender with the following text:" ), this );
- mMessage = new QTextEdit( this );
- mSaveButton = new QPushButton( i18n( "Save" ), this );
+ mLabel = new TQLabel( i18n( "Auto-reply once to each sender with the following text:" ), this );
+ mMessage = new TQTextEdit( this );
+ mSaveButton = new TQPushButton( i18n( "Save" ), this );
layout->addMultiCellWidget( group, 0, 0, 0, 1 );
layout->addMultiCellWidget( mLabel, 1, 1, 0, 1 );
@@ -55,10 +55,10 @@ OutOfOfficePage::OutOfOfficePage( QWidget *parent )
statusChanged();
- connect( mEnabled, SIGNAL( toggled( bool ) ), this, SLOT( statusChanged() ) );
- connect( mEnabled, SIGNAL( toggled( bool ) ), this, SLOT( changed() ) );
- connect( mSaveButton, SIGNAL( clicked() ), this, SLOT( store() ) );
- connect( mMessage, SIGNAL( textChanged() ), this, SLOT( changed() ) );
+ connect( mEnabled, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( statusChanged() ) );
+ connect( mEnabled, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( changed() ) );
+ connect( mSaveButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( store() ) );
+ connect( mMessage, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( changed() ) );
load();
}
@@ -71,7 +71,7 @@ void OutOfOfficePage::load()
{
Scalix::GetOutOfOfficeJob *job = Scalix::getOutOfOffice( Settings::self()->globalSlave(),
Settings::self()->accountUrl() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( loaded( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( loaded( KIO::Job* ) ) );
}
void OutOfOfficePage::loaded( KIO::Job* job )
@@ -98,7 +98,7 @@ void OutOfOfficePage::store()
mEnabled->isChecked(),
mMessage->text() );
- connect( job, SIGNAL( result( KIO::Job* ) ), SLOT( stored( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( stored( KIO::Job* ) ) );
mSaveButton->setEnabled( false );
}
diff --git a/kresources/scalix/scalixadmin/outofofficepage.h b/kresources/scalix/scalixadmin/outofofficepage.h
index cc5b2591a..cd5f04915 100644
--- a/kresources/scalix/scalixadmin/outofofficepage.h
+++ b/kresources/scalix/scalixadmin/outofofficepage.h
@@ -21,7 +21,7 @@
#ifndef OUTOFOFFICEPAGE_H
#define OUTOFOFFICEPAGE_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QLabel;
class QPushButton;
@@ -33,7 +33,7 @@ class OutOfOfficePage : public QWidget
Q_OBJECT
public:
- OutOfOfficePage( QWidget *parent = 0 );
+ OutOfOfficePage( TQWidget *parent = 0 );
~OutOfOfficePage();
private slots:
@@ -45,11 +45,11 @@ class OutOfOfficePage : public QWidget
void changed();
private:
- QRadioButton *mEnabled;
- QRadioButton *mDisabled;
- QLabel *mLabel;
- QTextEdit *mMessage;
- QPushButton *mSaveButton;
+ TQRadioButton *mEnabled;
+ TQRadioButton *mDisabled;
+ TQLabel *mLabel;
+ TQTextEdit *mMessage;
+ TQPushButton *mSaveButton;
bool mChanged;
};
diff --git a/kresources/scalix/scalixadmin/passwordpage.cpp b/kresources/scalix/scalixadmin/passwordpage.cpp
index 7d4182348..facc29170 100644
--- a/kresources/scalix/scalixadmin/passwordpage.cpp
+++ b/kresources/scalix/scalixadmin/passwordpage.cpp
@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
#include <kconfig.h>
#include <klocale.h>
@@ -35,36 +35,36 @@
#include "passwordpage.h"
-PasswordPage::PasswordPage( QWidget *parent )
- : QWidget( parent ), mJob( 0 )
+PasswordPage::PasswordPage( TQWidget *parent )
+ : TQWidget( parent ), mJob( 0 )
{
- QGridLayout *layout = new QGridLayout( this, 2, 3, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 3, 11, 6 );
- QLabel *label = new QLabel( i18n( "New password:" ), this );
+ TQLabel *label = new TQLabel( i18n( "New password:" ), this );
layout->addWidget( label, 0, 0 );
- mPassword = new QLineEdit( this );
- mPassword->setEchoMode( QLineEdit::Password );
+ mPassword = new TQLineEdit( this );
+ mPassword->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPassword );
layout->addWidget( mPassword, 0, 1 );
- label = new QLabel( i18n( "Retype new password:" ), this );
+ label = new TQLabel( i18n( "Retype new password:" ), this );
layout->addWidget( label, 1, 0 );
- mPasswordRetype = new QLineEdit( this );
- mPasswordRetype->setEchoMode( QLineEdit::Password );
+ mPasswordRetype = new TQLineEdit( this );
+ mPasswordRetype->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPasswordRetype );
layout->addWidget( mPasswordRetype, 1, 1 );
- mButton = new QPushButton( i18n( "Change" ), this );
+ mButton = new TQPushButton( i18n( "Change" ), this );
mButton->setEnabled( false );
layout->addWidget( mButton, 2, 1 );
layout->setRowSpacing( 3, 1 );
- connect( mPassword, SIGNAL( textChanged( const QString& ) ), this, SLOT( textChanged() ) );
- connect( mPasswordRetype, SIGNAL( textChanged( const QString& ) ), this, SLOT( textChanged() ) );
- connect( mButton, SIGNAL( clicked() ), this, SLOT( buttonClicked() ) );
+ connect( mPassword, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( textChanged() ) );
+ connect( mPasswordRetype, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( textChanged() ) );
+ connect( mButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) );
}
void PasswordPage::buttonClicked()
@@ -77,7 +77,7 @@ void PasswordPage::buttonClicked()
mJob = Scalix::setPassword( Settings::self()->globalSlave(), Settings::self()->accountUrl(),
Settings::self()->accountPassword(), mPassword->text() );
- connect( mJob, SIGNAL( result( KIO::Job* ) ), this, SLOT( finished( KIO::Job* ) ) );
+ connect( mJob, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( finished( KIO::Job* ) ) );
updateState( true );
} else {
@@ -120,7 +120,7 @@ void PasswordPage::finished( KIO::Job* job )
// Update configuration files to the new password as well
- const QString newPassword = mPassword->text();
+ const TQString newPassword = mPassword->text();
{ // ScalixAdmin config
KConfig config( "scalixadminrc" );
@@ -138,8 +138,8 @@ void PasswordPage::finished( KIO::Job* job )
KConfig config( "kmailrc" );
// Try to find account group for Scalix
- QString scalixAccount;
- const QStringList groupList = config.groupList();
+ TQString scalixAccount;
+ const TQStringList groupList = config.groupList();
for ( uint i = 0; i < groupList.count(); ++i ) {
if ( groupList[ i ].startsWith( "Account " ) ) {
KConfigGroup group( &config, groupList[ i ] );
@@ -173,13 +173,13 @@ void PasswordPage::finished( KIO::Job* job )
if ( !wallet->hasFolder( "kmail" ) )
wallet->createFolder( "kmail" );
wallet->setFolder( "kmail" );
- wallet->writePassword( "account-" + QString::number( accountId ), newPassword );
+ wallet->writePassword( "account-" + TQString::number( accountId ), newPassword );
}
} else {
group.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
- KConfigGroup fileGroup( &config, QString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
+ KConfigGroup fileGroup( &config, TQString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
fileGroup.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
}
diff --git a/kresources/scalix/scalixadmin/passwordpage.h b/kresources/scalix/scalixadmin/passwordpage.h
index a397be416..b4cf3da00 100644
--- a/kresources/scalix/scalixadmin/passwordpage.h
+++ b/kresources/scalix/scalixadmin/passwordpage.h
@@ -21,7 +21,7 @@
#ifndef PASSWORDPAGE_H
#define PASSWORDPAGE_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QLineEdit;
class QPushButton;
@@ -35,7 +35,7 @@ class PasswordPage : public QWidget
Q_OBJECT
public:
- PasswordPage( QWidget *parent = 0 );
+ PasswordPage( TQWidget *parent = 0 );
private slots:
void buttonClicked();
@@ -45,9 +45,9 @@ class PasswordPage : public QWidget
private:
void updateState( bool );
- QLineEdit *mPassword;
- QLineEdit *mPasswordRetype;
- QPushButton *mButton;
+ TQLineEdit *mPassword;
+ TQLineEdit *mPasswordRetype;
+ TQPushButton *mButton;
KIO::Job *mJob;
};
diff --git a/kresources/scalix/scalixadmin/settings.cpp b/kresources/scalix/scalixadmin/settings.cpp
index 2f6b49bad..52f72296f 100644
--- a/kresources/scalix/scalixadmin/settings.cpp
+++ b/kresources/scalix/scalixadmin/settings.cpp
@@ -71,7 +71,7 @@ KURL Settings::accountUrl() const
return url;
}
-QString Settings::accountPassword() const
+TQString Settings::accountPassword() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "Account" );
@@ -84,50 +84,50 @@ KIO::Slave* Settings::globalSlave() const
return mSlave;
}
-QString Settings::rulesWizardUrl() const
+TQString Settings::rulesWizardUrl() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "Misc" );
- QString url = group.readEntry( "rulesWizardUrl" );
+ TQString url = group.readEntry( "rulesWizardUrl" );
if ( url.isEmpty() ) {
KConfigGroup group( &config, "Account" );
- url = QString( "http://%1/Scalix/rw/?username=%2" ).arg( group.readEntry( "host" ) )
+ url = TQString( "http://%1/Scalix/rw/?username=%2" ).arg( group.readEntry( "host" ) )
.arg( group.readEntry( "user" ) );
}
return url;
}
-QString Settings::ldapHost() const
+TQString Settings::ldapHost() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "LDAP" );
return group.readEntry( "host" );
}
-QString Settings::ldapPort() const
+TQString Settings::ldapPort() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "LDAP" );
return group.readEntry( "port" );
}
-QString Settings::ldapBase() const
+TQString Settings::ldapBase() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "LDAP" );
return group.readEntry( "base" );
}
-QString Settings::ldapBindDn() const
+TQString Settings::ldapBindDn() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "LDAP" );
return group.readEntry( "bindDn" );
}
-QString Settings::ldapPassword() const
+TQString Settings::ldapPassword() const
{
KConfig config( "scalixadminrc" );
KConfigGroup group( &config, "LDAP" );
diff --git a/kresources/scalix/scalixadmin/settings.h b/kresources/scalix/scalixadmin/settings.h
index 17ed9a2c9..1e36833ad 100644
--- a/kresources/scalix/scalixadmin/settings.h
+++ b/kresources/scalix/scalixadmin/settings.h
@@ -34,17 +34,17 @@ class Settings
KIO::MetaData accountData() const;
KURL accountUrl() const;
- QString accountPassword() const;
+ TQString accountPassword() const;
KIO::Slave *globalSlave() const;
- QString rulesWizardUrl() const;
+ TQString rulesWizardUrl() const;
- QString ldapHost() const;
- QString ldapPort() const;
- QString ldapBase() const;
- QString ldapBindDn() const;
- QString ldapPassword() const;
+ TQString ldapHost() const;
+ TQString ldapPort() const;
+ TQString ldapBase() const;
+ TQString ldapBindDn() const;
+ TQString ldapPassword() const;
private:
Settings();