summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/kmail/kmail_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/kmail/kmail_plugin.cpp')
-rw-r--r--kontact/plugins/kmail/kmail_plugin.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kontact/plugins/kmail/kmail_plugin.cpp b/kontact/plugins/kmail/kmail_plugin.cpp
index 3d9f45bec..5a8797472 100644
--- a/kontact/plugins/kmail/kmail_plugin.cpp
+++ b/kontact/plugins/kmail/kmail_plugin.cpp
@@ -21,7 +21,7 @@
without including the source code for Qt in the source distribution.
*/
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kaction.h>
#include <kapplication.h>
@@ -55,35 +55,35 @@ typedef KGenericFactory<KMailPlugin, Kontact::Core> KMailPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkontact_kmailplugin,
KMailPluginFactory( "kontact_kmailplugin" ) )
-KMailPlugin::KMailPlugin(Kontact::Core *core, const char *, const QStringList& )
+KMailPlugin::KMailPlugin(Kontact::Core *core, const char *, const TQStringList& )
: Kontact::Plugin( core, core, "kmail" ),
mStub( 0 )
{
setInstance( KMailPluginFactory::instance() );
insertNewAction( new KAction( i18n( "New Message..." ), "mail_new",
- CTRL+SHIFT+Key_M, this, SLOT( slotNewMail() ), actionCollection(),
+ CTRL+SHIFT+Key_M, this, TQT_SLOT( slotNewMail() ), actionCollection(),
"new_mail" ) );
insertSyncAction( new KAction( i18n( "Synchronize Mail" ), "reload",
- 0, this, SLOT( slotSyncFolders() ), actionCollection(),
+ 0, this, TQT_SLOT( slotSyncFolders() ), actionCollection(),
"sync_mail" ) );
mUniqueAppWatcher = new Kontact::UniqueAppWatcher(
new Kontact::UniqueAppHandlerFactory<KMailUniqueAppHandler>(), this );
}
-bool KMailPlugin::canDecodeDrag( QMimeSource *qms )
+bool KMailPlugin::canDecodeDrag( TQMimeSource *qms )
{
return ( ICalDrag::canDecode( qms ) ||
VCalDrag::canDecode( qms ) ||
KVCardDrag::canDecode( qms ) );
}
-void KMailPlugin::processDropEvent( QDropEvent * de )
+void KMailPlugin::processDropEvent( TQDropEvent * de )
{
kdDebug() << k_funcinfo << endl;
- CalendarLocal cal( QString::fromLatin1("UTC") );
+ CalendarLocal cal( TQString::fromLatin1("UTC") );
KABC::Addressee::List list;
if ( VCalDrag::decode( de, &cal ) || ICalDrag::decode( de, &cal ) ) {
@@ -93,7 +93,7 @@ void KMailPlugin::processDropEvent( QDropEvent * de )
}
else if ( KVCardDrag::decode( de, list ) ) {
KABC::Addressee::List::Iterator it;
- QStringList to;
+ TQStringList to;
for ( it = list.begin(); it != list.end(); ++it ) {
to.append( ( *it ).fullEmail() );
}
@@ -114,7 +114,7 @@ void KMailPlugin::openComposer( const KURL& attach )
}
}
-void KMailPlugin::openComposer( const QString& to )
+void KMailPlugin::openComposer( const TQString& to )
{
(void) part(); // ensure part is loaded
Q_ASSERT( mStub );
@@ -125,7 +125,7 @@ void KMailPlugin::openComposer( const QString& to )
void KMailPlugin::slotNewMail()
{
- openComposer( QString::null );
+ openComposer( TQString::null );
}
void KMailPlugin::slotSyncFolders()
@@ -138,7 +138,7 @@ KMailPlugin::~KMailPlugin()
{
}
-bool KMailPlugin::createDCOPInterface( const QString& serviceType )
+bool KMailPlugin::createDCOPInterface( const TQString& serviceType )
{
if ( serviceType == "DCOP/ResourceBackend/IMAP" ) {
if ( part() )
@@ -148,9 +148,9 @@ bool KMailPlugin::createDCOPInterface( const QString& serviceType )
return false;
}
-QString KMailPlugin::tipFile() const
+TQString KMailPlugin::tipFile() const
{
- QString file = ::locate("data", "kmail/tips");
+ TQString file = ::locate("data", "kmail/tips");
return file;
}
@@ -164,9 +164,9 @@ KParts::ReadOnlyPart* KMailPlugin::createPart()
return part;
}
-QStringList KMailPlugin::invisibleToolbarActions() const
+TQStringList KMailPlugin::invisibleToolbarActions() const
{
- return QStringList( "new_message" );
+ return TQStringList( "new_message" );
}
bool KMailPlugin::isRunningStandalone()
@@ -174,7 +174,7 @@ bool KMailPlugin::isRunningStandalone()
return mUniqueAppWatcher->isRunningStandalone();
}
-Kontact::Summary *KMailPlugin::createSummaryWidget( QWidget *parent )
+Kontact::Summary *KMailPlugin::createSummaryWidget( TQWidget *parent )
{
return new SummaryWidget( this, parent );
}
@@ -208,12 +208,12 @@ bool KMailPlugin::queryClose() const {
return canClose;
}
-void KMailPlugin::loadProfile( const QString& profileDirectory ) {
+void KMailPlugin::loadProfile( const TQString& profileDirectory ) {
DCOPRef ref( "kmail", "KMailIface" );
ref.send( "loadProfile", profileDirectory );
}
-void KMailPlugin::saveToProfile( const QString& profileDirectory ) {
+void KMailPlugin::saveToProfile( const TQString& profileDirectory ) {
DCOPRef ref( "kmail", "KMailIface" );
ref.send( "saveToProfile", profileDirectory );
}