From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../plugins/kaddressbook/kaddressbook_plugin.cpp | 36 +++++++++++----------- kontact/plugins/kaddressbook/kaddressbook_plugin.h | 16 +++++----- 2 files changed, 26 insertions(+), 26 deletions(-) (limited to 'kontact/plugins/kaddressbook') diff --git a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp index e2f5a706f..be1fb08de 100644 --- a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp +++ b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp @@ -22,8 +22,8 @@ without including the source code for Qt in the source distribution. */ -#include -#include +#include +#include #include #include @@ -51,21 +51,21 @@ typedef KGenericFactory< KAddressbookPlugin, Kontact::Core > KAddressbookPluginF K_EXPORT_COMPONENT_FACTORY( libkontact_kaddressbookplugin, KAddressbookPluginFactory( "kontact_kaddressbookplugin" ) ) -KAddressbookPlugin::KAddressbookPlugin( Kontact::Core *core, const char *, const QStringList& ) +KAddressbookPlugin::KAddressbookPlugin( Kontact::Core *core, const char *, const TQStringList& ) : Kontact::Plugin( core, core, "kaddressbook" ), mStub( 0 ) { setInstance( KAddressbookPluginFactory::instance() ); insertNewAction( new KAction( i18n( "New Contact..." ), "identity", - CTRL+SHIFT+Key_C, this, SLOT( slotNewContact() ), actionCollection(), + CTRL+SHIFT+Key_C, this, TQT_SLOT( slotNewContact() ), actionCollection(), "new_contact" ) ); insertNewAction( new KAction( i18n( "&New Distribution List..." ), "kontact_contacts", 0, this, - SLOT( slotNewDistributionList() ), actionCollection(), "new_distributionlist" ) ); + TQT_SLOT( slotNewDistributionList() ), actionCollection(), "new_distributionlist" ) ); insertSyncAction( new KAction( i18n( "Synchronize Contacts" ), "reload", - 0, this, SLOT( slotSyncContacts() ), actionCollection(), + 0, this, TQT_SLOT( slotSyncContacts() ), actionCollection(), "kaddressbook_sync" ) ); mUniqueAppWatcher = new Kontact::UniqueAppWatcher( new Kontact::UniqueAppHandlerFactory(), this ); @@ -86,16 +86,16 @@ KParts::ReadOnlyPart* KAddressbookPlugin::createPart() return part; } -QStringList KAddressbookPlugin::configModules() const +TQStringList KAddressbookPlugin::configModules() const { - QStringList modules; + TQStringList modules; modules << "PIM/kabconfig.desktop" << "PIM/kabldapconfig.desktop"; return modules; } -QStringList KAddressbookPlugin::invisibleToolbarActions() const +TQStringList KAddressbookPlugin::invisibleToolbarActions() const { - return QStringList( "file_new_contact" ); + return TQStringList( "file_new_contact" ); } KAddressBookIface_stub *KAddressbookPlugin::interface() @@ -121,10 +121,10 @@ void KAddressbookPlugin::slotNewDistributionList() void KAddressbookPlugin::slotSyncContacts() { DCOPRef ref( "kmail", "KMailICalIface" ); - ref.send( "triggerSync", QString("Contact") ); + ref.send( "triggerSync", TQString("Contact") ); } -bool KAddressbookPlugin::createDCOPInterface( const QString& serviceType ) +bool KAddressbookPlugin::createDCOPInterface( const TQString& serviceType ) { if ( serviceType == "DCOP/AddressBook" ) { Q_ASSERT( mStub ); @@ -143,15 +143,15 @@ bool KAddressbookPlugin::isRunningStandalone() return mUniqueAppWatcher->isRunningStandalone(); } -bool KAddressbookPlugin::canDecodeDrag( QMimeSource *mimeSource ) +bool KAddressbookPlugin::canDecodeDrag( TQMimeSource *mimeSource ) { - return QTextDrag::canDecode( mimeSource ) || + return TQTextDrag::canDecode( mimeSource ) || KPIM::MailListDrag::canDecode( mimeSource ); } #include -void KAddressbookPlugin::processDropEvent( QDropEvent *event ) +void KAddressbookPlugin::processDropEvent( TQDropEvent *event ) { KPIM::MailList mails; if ( KPIM::MailListDrag::decode( event, mails ) ) { @@ -162,7 +162,7 @@ void KAddressbookPlugin::processDropEvent( QDropEvent *event ) KPIM::MailSummary mail = mails.first(); KMailIface_stub kmailIface( "kmail", "KMailIface" ); - QString sFrom = kmailIface.getFrom( mail.serialNumber() ); + TQString sFrom = kmailIface.getFrom( mail.serialNumber() ); if ( !sFrom.isEmpty() ) { KAddrBookExternal::addEmail( sFrom, core() ); @@ -176,13 +176,13 @@ void KAddressbookPlugin::processDropEvent( QDropEvent *event ) } -void KAddressbookPlugin::loadProfile( const QString& directory ) +void KAddressbookPlugin::loadProfile( const TQString& directory ) { DCOPRef ref( "kaddressbook", "KAddressBookIface" ); ref.send( "loadProfile", directory ); } -void KAddressbookPlugin::saveToProfile( const QString& directory ) const +void KAddressbookPlugin::saveToProfile( const TQString& directory ) const { DCOPRef ref( "kaddressbook", "KAddressBookIface" ); ref.send( "saveToProfile", directory ); diff --git a/kontact/plugins/kaddressbook/kaddressbook_plugin.h b/kontact/plugins/kaddressbook/kaddressbook_plugin.h index f66d44aaf..85107d0be 100644 --- a/kontact/plugins/kaddressbook/kaddressbook_plugin.h +++ b/kontact/plugins/kaddressbook/kaddressbook_plugin.h @@ -47,29 +47,29 @@ class KAddressbookPlugin : public Kontact::Plugin Q_OBJECT public: - KAddressbookPlugin( Kontact::Core *core, const char *name, const QStringList& ); + KAddressbookPlugin( Kontact::Core *core, const char *name, const TQStringList& ); ~KAddressbookPlugin(); - virtual bool createDCOPInterface( const QString &serviceType ); + virtual bool createDCOPInterface( const TQString &serviceType ); virtual bool isRunningStandalone(); int weight() const { return 300; } - bool canDecodeDrag( QMimeSource * ); - void processDropEvent( QDropEvent * ); + bool canDecodeDrag( TQMimeSource * ); + void processDropEvent( TQDropEvent * ); - virtual QStringList configModules() const; + virtual TQStringList configModules() const; - virtual QStringList invisibleToolbarActions() const; + virtual TQStringList invisibleToolbarActions() const; virtual void configUpdated(); KAddressBookIface_stub *interface(); //override - void loadProfile( const QString& directory ); + void loadProfile( const TQString& directory ); //override - void saveToProfile( const QString& directory ) const; + void saveToProfile( const TQString& directory ) const; protected: KParts::ReadOnlyPart *createPart(); -- cgit v1.2.1