summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/exchange
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/exchange')
-rw-r--r--korganizer/plugins/exchange/exchange.cpp44
-rw-r--r--korganizer/plugins/exchange/exchange.h12
-rw-r--r--korganizer/plugins/exchange/exchangeconfig.cpp40
-rw-r--r--korganizer/plugins/exchange/exchangeconfig.h12
-rw-r--r--korganizer/plugins/exchange/exchangedialog.cpp16
-rw-r--r--korganizer/plugins/exchange/exchangedialog.h2
6 files changed, 63 insertions, 63 deletions
diff --git a/korganizer/plugins/exchange/exchange.cpp b/korganizer/plugins/exchange/exchange.cpp
index 86377f046..3d3719ed4 100644
--- a/korganizer/plugins/exchange/exchange.cpp
+++ b/korganizer/plugins/exchange/exchange.cpp
@@ -17,7 +17,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qfile.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -69,29 +69,29 @@ Exchange::Exchange(KOrg::MainWindow *parent, const char *name) :
setXMLFile("plugins/exchangeui.rc");
- new KAction(i18n("&Download..."), 0, this, SLOT(download()),
+ new KAction(i18n("&Download..."), 0, this, TQT_SLOT(download()),
actionCollection(), "exchange_download");
- KAction *action = new KAction(i18n("&Upload Event..."), 0, this, SLOT(upload()),
+ KAction *action = new KAction(i18n("&Upload Event..."), 0, this, TQT_SLOT(upload()),
actionCollection(), "exchange_upload");
- QObject::connect(mainWindow()->view(),SIGNAL(incidenceSelected(Incidence *)),
- this, SLOT(slotIncidenceSelected(Incidence *)));
+ TQObject::connect(mainWindow()->view(),TQT_SIGNAL(incidenceSelected(Incidence *)),
+ this, TQT_SLOT(slotIncidenceSelected(Incidence *)));
action->setEnabled( false );
- QObject::connect(this,SIGNAL(enableIncidenceActions(bool)),
- action,SLOT(setEnabled(bool)));
+ TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)),
+ action,TQT_SLOT(setEnabled(bool)));
- action = new KAction(i18n("De&lete Event"), 0, this, SLOT(remove()),
+ action = new KAction(i18n("De&lete Event"), 0, this, TQT_SLOT(remove()),
actionCollection(), "exchange_delete");
- QObject::connect(this,SIGNAL(enableIncidenceActions(bool)),
- action,SLOT(setEnabled(bool)));
+ TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)),
+ action,TQT_SLOT(setEnabled(bool)));
action->setEnabled( false );
- new KAction(i18n("&Configure..."), 0, this, SLOT(configure()),
+ new KAction(i18n("&Configure..."), 0, this, TQT_SLOT(configure()),
actionCollection(), "exchange_configure");
- connect( this, SIGNAL( calendarChanged() ), mainWindow()->view(), SLOT( updateView() ) );
- connect( this, SIGNAL( calendarChanged(const QDate &, const QDate &)),
- mainWindow()->view(), SLOT(updateView(const QDate &, const QDate &)) );
+ connect( this, TQT_SIGNAL( calendarChanged() ), mainWindow()->view(), TQT_SLOT( updateView() ) );
+ connect( this, TQT_SIGNAL( calendarChanged(const TQDate &, const TQDate &)),
+ mainWindow()->view(), TQT_SLOT(updateView(const TQDate &, const TQDate &)) );
}
Exchange::~Exchange()
@@ -99,12 +99,12 @@ Exchange::~Exchange()
kdDebug(5850) << "Exchange Plugin destructor" << endl;
}
-QString Exchange::info()
+TQString Exchange::info()
{
return i18n("This plugin imports and export calendar events from/to a Microsoft Exchange 2000 Server.");
}
-QString Exchange::shortInfo()
+TQString Exchange::shortInfo()
{
return i18n("Exchange Plugin");
}
@@ -118,11 +118,11 @@ void Exchange::download()
{
ExchangeDialog dialog( mainWindow()->view()->startDate(), mainWindow()->view()->endDate() );
- if (dialog.exec() != QDialog::Accepted )
+ if (dialog.exec() != TQDialog::Accepted )
return;
- QDate start = dialog.m_start->date();
- QDate end = dialog.m_end->date();
+ TQDate start = dialog.m_start->date();
+ TQDate end = dialog.m_end->date();
KCal::Calendar* calendar = mainWindow()->view()->calendar();
@@ -183,13 +183,13 @@ void Exchange::configure()
kdDebug(5850) << "Exchange::configure" << endl;
ExchangeConfig dialog( mAccount );
- if (dialog.exec() == QDialog::Accepted )
+ if (dialog.exec() == TQDialog::Accepted )
mAccount->save( "Calendar/Exchange Plugin" );
}
-void Exchange::showError( int error, const QString& moreInfo /* = QString::null */ )
+void Exchange::showError( int error, const TQString& moreInfo /* = TQString::null */ )
{
- QString errorText;
+ TQString errorText;
switch( error ) {
case KPIM::ExchangeClient::ResultOK:
errorText = i18n( "No Error" );
diff --git a/korganizer/plugins/exchange/exchange.h b/korganizer/plugins/exchange/exchange.h
index a145bd12f..22a15f1c7 100644
--- a/korganizer/plugins/exchange/exchange.h
+++ b/korganizer/plugins/exchange/exchange.h
@@ -19,8 +19,8 @@
#ifndef KORG_EXCHANGE_H
#define KORG_EXCHANGE_H
-#include <qstring.h>
-#include <qdatetime.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
#include <korganizer/part.h>
@@ -39,14 +39,14 @@ class Exchange : public KOrg::Part {
Exchange( KOrg::MainWindow *, const char *name );
~Exchange();
- QString info();
+ TQString info();
// This method is used for the category of the key bindings
- QString shortInfo();
+ TQString shortInfo();
signals:
void enableIncidenceActions( bool );
void calendarChanged();
- void calendarChanged(const QDate&start,const QDate&end);
+ void calendarChanged(const TQDate&start,const TQDate&end);
private slots:
void download();
@@ -58,7 +58,7 @@ class Exchange : public KOrg::Part {
private:
void test2();
- void showError( int error, const QString& moreInfo = QString::null );
+ void showError( int error, const TQString& moreInfo = TQString::null );
KPIM::ExchangeClient *mClient;
KPIM::ExchangeAccount* mAccount;
diff --git a/korganizer/plugins/exchange/exchangeconfig.cpp b/korganizer/plugins/exchange/exchangeconfig.cpp
index e75265caa..fe01324ac 100644
--- a/korganizer/plugins/exchange/exchangeconfig.cpp
+++ b/korganizer/plugins/exchange/exchangeconfig.cpp
@@ -17,9 +17,9 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -31,7 +31,7 @@
#include "exchangeconfig.h"
-ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, QWidget* parent )
+ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, TQWidget* parent )
: KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent)
{
mAccount = account;
@@ -39,38 +39,38 @@ ExchangeConfig::ExchangeConfig( KPIM::ExchangeAccount* account, QWidget* parent
kdDebug(5850) << "Creating ExchangeConfig with account: " <<
account->host() << ":" << account->account() << endl;
- QFrame *topFrame = plainPage();
- QGridLayout *topLayout = new QGridLayout( topFrame, 5, 3, 3 );
+ TQFrame *topFrame = plainPage();
+ TQGridLayout *topLayout = new TQGridLayout( topFrame, 5, 3, 3 );
m_host = new KLineEdit( mAccount->host(), topFrame );
- topLayout->addWidget( new QLabel( i18n( "Exchange server:" ), topFrame ), 0, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "Exchange server:" ), topFrame ), 0, 0 );
topLayout->addWidget( m_host, 0, 1 );
m_port = new KLineEdit( mAccount->port(), topFrame );
- topLayout->addWidget( new QLabel( i18n( "Port:" ), topFrame ), 1, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "Port:" ), topFrame ), 1, 0 );
topLayout->addWidget( m_port, 1, 1 );
m_user = new KLineEdit( mAccount->account(), topFrame );
- topLayout->addWidget( new QLabel( i18n( "User:" ), topFrame ), 2, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "User:" ), topFrame ), 2, 0 );
topLayout->addWidget( m_user, 2, 1 );
- connect( m_user, SIGNAL(textChanged(const QString&)), this, SLOT(slotUserChanged(const QString&)) );
+ connect( m_user, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUserChanged(const TQString&)) );
m_password = new KLineEdit( mAccount->password(), topFrame );
- topLayout->addWidget( new QLabel( i18n( "Password:" ), topFrame ), 3, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "Password:" ), topFrame ), 3, 0 );
topLayout->addWidget( m_password, 3, 1 );
- m_password->setEchoMode( QLineEdit::Password );
+ m_password->setEchoMode( TQLineEdit::Password );
- m_autoMailbox = new QCheckBox( i18n( "Determine mailbox automatically" ), topFrame );
+ m_autoMailbox = new TQCheckBox( i18n( "Determine mailbox automatically" ), topFrame );
topLayout->addMultiCellWidget( m_autoMailbox, 4, 4, 0, 1 );
- connect( m_autoMailbox, SIGNAL(toggled(bool)), this, SLOT(slotToggleAuto(bool)) );
+ connect( m_autoMailbox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAuto(bool)) );
m_mailbox= new KLineEdit( mAccount->mailbox(), topFrame );
- topLayout->addWidget( new QLabel( i18n( "Mailbox URL:" ), topFrame ), 5, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "Mailbox URL:" ), topFrame ), 5, 0 );
topLayout->addWidget( m_mailbox, 5, 1 );
- m_tryFindMailbox = new QPushButton( "&Find", topFrame );
+ m_tryFindMailbox = new TQPushButton( "&Find", topFrame );
topLayout->addWidget( m_tryFindMailbox, 5, 2 );
- connect( m_tryFindMailbox, SIGNAL(clicked()), this, SLOT(slotFindClicked()) );
+ connect( m_tryFindMailbox, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFindClicked()) );
kapp->config()->setGroup( "Calendar/Exchange Plugin" );
bool autoChecked = kapp->config()->readBoolEntry( "auto-mailbox", true );
@@ -90,7 +90,7 @@ void ExchangeConfig::slotToggleAuto( bool on )
// }
}
-void ExchangeConfig::slotUserChanged( const QString& /*text*/ )
+void ExchangeConfig::slotUserChanged( const TQString& /*text*/ )
{
// if ( m_mailboxEqualsUser->isChecked() ) {
// m_mailbox->setText( "webdav://" + m_host->text() + "/exchange/" + text );
@@ -100,7 +100,7 @@ void ExchangeConfig::slotUserChanged( const QString& /*text*/ )
void ExchangeConfig::slotOk()
{
if ( m_autoMailbox->isChecked() ) {
- QString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() );
+ TQString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() );
if ( mailbox.isNull() ) {
kdWarning() << "Could not find Exchange mailbox URL, incomplete settings!"<< endl;
KMessageBox::sorry( this, "Could not determine mailbox URL" );
@@ -124,7 +124,7 @@ void ExchangeConfig::slotOk()
void ExchangeConfig::slotFindClicked()
{
- QString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() );
+ TQString mailbox = mAccount->tryFindMailbox( m_host->text(), m_port->text(), m_user->text(), m_password->text() );
if ( mailbox.isNull() ) {
KMessageBox::sorry( this, "Could not determine mailbox URL" );
} else {
diff --git a/korganizer/plugins/exchange/exchangeconfig.h b/korganizer/plugins/exchange/exchangeconfig.h
index ba974ba26..0e18bfe2e 100644
--- a/korganizer/plugins/exchange/exchangeconfig.h
+++ b/korganizer/plugins/exchange/exchangeconfig.h
@@ -19,8 +19,8 @@
#ifndef EXCHANGECONFIG_H
#define EXCHANGECONFIG_H
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include <kdialogbase.h>
#include <klineedit.h>
//#include <kpassdlg.h>
@@ -31,7 +31,7 @@ class ExchangeConfig : public KDialogBase
{
Q_OBJECT
public:
- ExchangeConfig(KPIM::ExchangeAccount* account, QWidget *parent=0);
+ ExchangeConfig(KPIM::ExchangeAccount* account, TQWidget *parent=0);
virtual ~ExchangeConfig();
// protected:
@@ -40,7 +40,7 @@ class ExchangeConfig : public KDialogBase
protected slots:
void slotToggleAuto( bool on );
- void slotUserChanged( const QString& text );
+ void slotUserChanged( const TQString& text );
void slotFindClicked();
void slotOk();
@@ -50,9 +50,9 @@ class ExchangeConfig : public KDialogBase
KLineEdit *m_host;
KLineEdit *m_port;
KLineEdit *m_user;
- QCheckBox *m_autoMailbox;
+ TQCheckBox *m_autoMailbox;
KLineEdit *m_mailbox;
- QPushButton* m_tryFindMailbox;
+ TQPushButton* m_tryFindMailbox;
KLineEdit *m_password;
};
diff --git a/korganizer/plugins/exchange/exchangedialog.cpp b/korganizer/plugins/exchange/exchangedialog.cpp
index 249b07a91..de56a3a19 100644
--- a/korganizer/plugins/exchange/exchangedialog.cpp
+++ b/korganizer/plugins/exchange/exchangedialog.cpp
@@ -17,9 +17,9 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -30,20 +30,20 @@
#include "exchangedialog.h"
-ExchangeDialog::ExchangeDialog( const QDate &_start, const QDate &_end, QWidget *parent)
+ExchangeDialog::ExchangeDialog( const TQDate &_start, const TQDate &_end, TQWidget *parent)
: KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent)
{
- QFrame *topFrame = plainPage();
- QGridLayout *topLayout = new QGridLayout( topFrame, 2, 2, 3 );
+ TQFrame *topFrame = plainPage();
+ TQGridLayout *topLayout = new TQGridLayout( topFrame, 2, 2, 3 );
- QLabel *label = new QLabel(i18n("Start date:"),topFrame);
+ TQLabel *label = new TQLabel(i18n("Start date:"),topFrame);
topLayout->addWidget(label, 0, 0);
m_start = new KDateWidget( _start, topFrame );
topLayout->addWidget( m_start, 0, 1 );
m_end = new KDateWidget( _end, topFrame );
- topLayout->addWidget( new QLabel( i18n( "End date:" ), topFrame ), 1, 0 );
+ topLayout->addWidget( new TQLabel( i18n( "End date:" ), topFrame ), 1, 0 );
topLayout->addWidget( m_end, 1, 1 );
}
diff --git a/korganizer/plugins/exchange/exchangedialog.h b/korganizer/plugins/exchange/exchangedialog.h
index 440d48fd9..bd0e2f26a 100644
--- a/korganizer/plugins/exchange/exchangedialog.h
+++ b/korganizer/plugins/exchange/exchangedialog.h
@@ -28,7 +28,7 @@ class ExchangeDialog : public KDialogBase
{
Q_OBJECT
public:
- ExchangeDialog( const QDate &start, const QDate &end, QWidget *parent=0);
+ ExchangeDialog( const TQDate &start, const TQDate &end, TQWidget *parent=0);
virtual ~ExchangeDialog();
protected slots: