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/kaddressbook | |
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/kaddressbook')
-rw-r--r-- | kontact/plugins/kaddressbook/kaddressbook_plugin.cpp | 36 | ||||
-rw-r--r-- | kontact/plugins/kaddressbook/kaddressbook_plugin.h | 16 |
2 files changed, 26 insertions, 26 deletions
diff --git a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp index e2f5a706..be1fb08d 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 <qwidget.h> -#include <qdragobject.h> +#include <tqwidget.h> +#include <tqdragobject.h> #include <kaction.h> #include <kapplication.h> @@ -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<KABUniqueAppHandler>(), 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 <dcopref.h> -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 f66d44aa..85107d0b 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(); |