diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/kmail/kmail_plugin.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kontact/plugins/kmail/kmail_plugin.cpp')
-rw-r--r-- | kontact/plugins/kmail/kmail_plugin.cpp | 36 |
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 ); } |