diff options
Diffstat (limited to 'kaddressbook/interfaces')
-rw-r--r-- | kaddressbook/interfaces/configurewidget.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/interfaces/configurewidget.h | 4 | ||||
-rw-r--r-- | kaddressbook/interfaces/contacteditorwidget.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/interfaces/contacteditorwidget.h | 16 | ||||
-rw-r--r-- | kaddressbook/interfaces/core.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/interfaces/core.h | 30 | ||||
-rw-r--r-- | kaddressbook/interfaces/extensionwidget.cpp | 10 | ||||
-rw-r--r-- | kaddressbook/interfaces/extensionwidget.h | 20 | ||||
-rw-r--r-- | kaddressbook/interfaces/xxport.cpp | 54 | ||||
-rw-r--r-- | kaddressbook/interfaces/xxport.h | 38 |
10 files changed, 92 insertions, 92 deletions
diff --git a/kaddressbook/interfaces/configurewidget.cpp b/kaddressbook/interfaces/configurewidget.cpp index 518a29538..f82b757fd 100644 --- a/kaddressbook/interfaces/configurewidget.cpp +++ b/kaddressbook/interfaces/configurewidget.cpp @@ -27,9 +27,9 @@ using namespace KAB; -ConfigureWidget::ConfigureWidget( KABC::AddressBook *ab, QWidget *parent, +ConfigureWidget::ConfigureWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name ) - : QWidget( parent, name ), mAddressBook( ab ) + : TQWidget( parent, name ), mAddressBook( ab ) { } diff --git a/kaddressbook/interfaces/configurewidget.h b/kaddressbook/interfaces/configurewidget.h index 601adce97..0ce35e5c7 100644 --- a/kaddressbook/interfaces/configurewidget.h +++ b/kaddressbook/interfaces/configurewidget.h @@ -24,7 +24,7 @@ #ifndef KAB_CONFIGUREWIDGET_H #define KAB_CONFIGUREWIDGET_H -#include <qwidget.h> +#include <tqwidget.h> #include <kconfig.h> #include <kdepimmacros.h> @@ -38,7 +38,7 @@ namespace KAB { class KDE_EXPORT ConfigureWidget : public QWidget { public: - ConfigureWidget( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); + ConfigureWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); ~ConfigureWidget(); /** diff --git a/kaddressbook/interfaces/contacteditorwidget.cpp b/kaddressbook/interfaces/contacteditorwidget.cpp index 366087c62..45b38ef3e 100644 --- a/kaddressbook/interfaces/contacteditorwidget.cpp +++ b/kaddressbook/interfaces/contacteditorwidget.cpp @@ -26,8 +26,8 @@ using namespace KAB; ContactEditorWidget::ContactEditorWidget( KABC::AddressBook *ab, - QWidget *parent, const char *name ) - : QWidget( parent, name ), mAddressBook( ab ), mModified( false ) + TQWidget *parent, const char *name ) + : TQWidget( parent, name ), mAddressBook( ab ), mModified( false ) { } diff --git a/kaddressbook/interfaces/contacteditorwidget.h b/kaddressbook/interfaces/contacteditorwidget.h index 4b80b44f4..28a376e77 100644 --- a/kaddressbook/interfaces/contacteditorwidget.h +++ b/kaddressbook/interfaces/contacteditorwidget.h @@ -24,7 +24,7 @@ #ifndef KAB_CONTACTEDITORWIDGET_H #define KAB_CONTACTEDITORWIDGET_H -#include <qwidget.h> +#include <tqwidget.h> #include <kabc/addressbook.h> #include <klibloader.h> @@ -39,9 +39,9 @@ class KDE_EXPORT ContactEditorWidget : public QWidget Q_OBJECT public: - typedef QValueList<ContactEditorWidget*> List; + typedef TQValueList<ContactEditorWidget*> List; - ContactEditorWidget( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); + ContactEditorWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); ~ContactEditorWidget(); /** @@ -116,23 +116,23 @@ class KDE_EXPORT ContactEditorWidget : public QWidget class ContactEditorWidgetFactory : public KLibFactory { public: - virtual ContactEditorWidget *createWidget( KABC::AddressBook *ab, QWidget *parent, + virtual ContactEditorWidget *createWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ) = 0; /** Returns the i18ned title of this tab page. */ - virtual QString pageTitle() const { return ""; } + virtual TQString pageTitle() const { return ""; } /** Returns the identifier of the tab page where the widget shall belong to. */ - virtual QString pageIdentifier() const = 0; + virtual TQString pageIdentifier() const = 0; protected: - virtual QObject* createObject( QObject*, const char*, const char*, - const QStringList & ) + virtual TQObject* createObject( TQObject*, const char*, const char*, + const TQStringList & ) { return 0; } diff --git a/kaddressbook/interfaces/core.cpp b/kaddressbook/interfaces/core.cpp index 6c8e10910..7f7d10481 100644 --- a/kaddressbook/interfaces/core.cpp +++ b/kaddressbook/interfaces/core.cpp @@ -25,8 +25,8 @@ using namespace KAB; -Core::Core( KXMLGUIClient *client, QObject *parent, const char *name ) - : QObject( parent, name ), mGUIClient( client ) +Core::Core( KXMLGUIClient *client, TQObject *parent, const char *name ) + : TQObject( parent, name ), mGUIClient( client ) { } diff --git a/kaddressbook/interfaces/core.h b/kaddressbook/interfaces/core.h index 276b20d61..1897a0bd1 100644 --- a/kaddressbook/interfaces/core.h +++ b/kaddressbook/interfaces/core.h @@ -30,7 +30,7 @@ #include <libkdepim/distributionlist.h> #endif -#include <qobject.h> +#include <tqobject.h> #include <kabc/field.h> #include <kcommand.h> @@ -57,7 +57,7 @@ class KDE_EXPORT Core : public QObject Q_OBJECT public: - Core( KXMLGUIClient *client, QObject *parent, const char *name = 0 ); + Core( KXMLGUIClient *client, TQObject *parent, const char *name = 0 ); /** Returns a pointer to the StdAddressBook of the application. @@ -88,33 +88,33 @@ class KDE_EXPORT Core : public QObject /** Returns the uid list of the currently selected contacts. */ - virtual QStringList selectedUIDs() const = 0; + virtual TQStringList selectedUIDs() const = 0; /** Displays a ResourceSelectDialog and returns the selected resource or a null pointer if no resource was selected by the user. */ - virtual KABC::Resource *requestResource( QWidget *parent ) = 0; + virtual KABC::Resource *requestResource( TQWidget *parent ) = 0; /** Returns the parent widget. */ - virtual QWidget *widget() const = 0; + virtual TQWidget *widget() const = 0; /** Deletes given contacts from the address book. @param uids The uids of the contacts, which shall be deleted. */ - virtual void deleteContacts( const QStringList &uids ) = 0; + virtual void deleteContacts( const TQStringList &uids ) = 0; /** Deletes given contacts from the address book. @param uids The uids of the contacts, which shall be deleted. */ - virtual void deleteDistributionLists( const QStringList &uids ) = 0; + virtual void deleteDistributionLists( const TQStringList &uids ) = 0; #ifdef KDEPIM_NEW_DISTRLISTS /** @@ -126,13 +126,13 @@ class KDE_EXPORT Core : public QObject /** Returns the name of all the distribution lists. */ - virtual QStringList distributionListNames() const = 0; + virtual TQStringList distributionListNames() const = 0; /** sets the distribution list to display. If null, the regular address book is to be displayed. */ - virtual void setSelectedDistributionList( const QString &name ) = 0; + virtual void setSelectedDistributionList( const TQString &name ) = 0; #endif //// This class isn't part of interfaces/, so this method here isn't really useful @@ -151,12 +151,12 @@ class KDE_EXPORT Core : public QObject /** Is called whenever a contact is selected in the view. */ - virtual void setContactSelected( const QString &uid ) = 0; + virtual void setContactSelected( const TQString &uid ) = 0; /** DCOP METHOD: Adds the given email address to address book. */ - virtual void addEmail( const QString& addr ) = 0; + virtual void addEmail( const TQString& addr ) = 0; /** DCOP METHOD: Imports the vCard, located at the given url. @@ -166,7 +166,7 @@ class KDE_EXPORT Core : public QObject /** DCOP METHOD: Imports the given vCard. */ - virtual void importVCardFromData( const QString& vCard ) = 0; + virtual void importVCardFromData( const TQString& vCard ) = 0; /** DCOP METHOD: Opens contact editor to input a new contact. @@ -182,17 +182,17 @@ class KDE_EXPORT Core : public QObject DCOP METHOD: Returns the name of the contact, that matches the given phone number. */ - virtual QString getNameByPhone( const QString& phone ) = 0; + virtual TQString getNameByPhone( const TQString& phone ) = 0; /** Shows an edit dialog for the given uid. */ - virtual void editContact( const QString &uid = QString::null ) = 0; + virtual void editContact( const TQString &uid = TQString::null ) = 0; /** Shows an edit dialog for the given distribution list */ - virtual void editDistributionList( const QString &name ) = 0; + virtual void editDistributionList( const TQString &name ) = 0; private: KXMLGUIClient *mGUIClient; diff --git a/kaddressbook/interfaces/extensionwidget.cpp b/kaddressbook/interfaces/extensionwidget.cpp index b70291583..8c98e5e0f 100644 --- a/kaddressbook/interfaces/extensionwidget.cpp +++ b/kaddressbook/interfaces/extensionwidget.cpp @@ -27,9 +27,9 @@ using namespace KAB; -ExtensionWidget::ExtensionWidget( Core *core, QWidget *parent, +ExtensionWidget::ExtensionWidget( Core *core, TQWidget *parent, const char *name ) - : QWidget( parent, name ), mCore( core ) + : TQWidget( parent, name ), mCore( core ) { } @@ -51,9 +51,9 @@ KABC::Addressee::List ExtensionWidget::selectedContacts() { KABC::Addressee::List list; - const QStringList uids = mCore->selectedUIDs(); - QStringList::ConstIterator it; - const QStringList::ConstIterator endIt = uids.end(); + const TQStringList uids = mCore->selectedUIDs(); + TQStringList::ConstIterator it; + const TQStringList::ConstIterator endIt = uids.end(); for ( it = uids.begin(); it != endIt; ++it ) list.append( mCore->addressBook()->findByUid( *it ) ); diff --git a/kaddressbook/interfaces/extensionwidget.h b/kaddressbook/interfaces/extensionwidget.h index 076defad2..52ee946ca 100644 --- a/kaddressbook/interfaces/extensionwidget.h +++ b/kaddressbook/interfaces/extensionwidget.h @@ -24,7 +24,7 @@ #ifndef KAB_EXTENSIONWIDGET_H #define KAB_EXTENSIONWIDGET_H -#include <qwidget.h> +#include <tqwidget.h> #include <kabc/addressbook.h> #include <klibloader.h> @@ -41,7 +41,7 @@ class KDE_EXPORT ExtensionWidget : public QWidget Q_OBJECT public: - ExtensionWidget( Core *core, QWidget *parent, const char *name = 0 ); + ExtensionWidget( Core *core, TQWidget *parent, const char *name = 0 ); ~ExtensionWidget(); /** @@ -70,16 +70,16 @@ class KDE_EXPORT ExtensionWidget : public QWidget This method should be reimplemented and return the i18ned title of this widget. */ - virtual QString title() const = 0; + virtual TQString title() const = 0; /** This method should be reimplemented and return a unique identifier. */ - virtual QString identifier() const = 0; + virtual TQString identifier() const = 0; signals: void modified( const KABC::Addressee::List &list ); - void deleted( const QStringList& uidList ); + void deleted( const TQStringList& uidList ); private: KAB::Core *mCore; @@ -91,10 +91,10 @@ class KDE_EXPORT ExtensionWidget : public QWidget class ExtensionFactory : public KLibFactory { public: - virtual ExtensionWidget *extension( KAB::Core *core, QWidget *parent, + virtual ExtensionWidget *extension( KAB::Core *core, TQWidget *parent, const char *name = 0 ) = 0; - virtual ConfigureWidget *configureWidget( QWidget*, const char* = 0 ) + virtual ConfigureWidget *configureWidget( TQWidget*, const char* = 0 ) { return 0; } @@ -105,11 +105,11 @@ class ExtensionFactory : public KLibFactory This method should return the same identifier like the config widget. */ - virtual QString identifier() const = 0; + virtual TQString identifier() const = 0; protected: - virtual QObject* createObject( QObject*, const char*, const char*, - const QStringList & ) + virtual TQObject* createObject( TQObject*, const char*, const char*, + const TQStringList & ) { return 0; } diff --git a/kaddressbook/interfaces/xxport.cpp b/kaddressbook/interfaces/xxport.cpp index 0e9e515c2..53be55197 100644 --- a/kaddressbook/interfaces/xxport.cpp +++ b/kaddressbook/interfaces/xxport.cpp @@ -21,8 +21,8 @@ without including the source code for Qt in the source distribution. */ -#include <qmap.h> -#include <qsignalmapper.h> +#include <tqmap.h> +#include <tqsignalmapper.h> #include <kaction.h> #include <kinstance.h> @@ -35,25 +35,25 @@ using namespace KAB; class XXPort::XXPortPrivate { public: - QSignalMapper *mExportMapper; - QSignalMapper *mImportMapper; + TQSignalMapper *mExportMapper; + TQSignalMapper *mImportMapper; KApplication *mKApp; }; -XXPort::XXPort( KABC::AddressBook *ab, QWidget *parent, +XXPort::XXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name ) - : QObject( parent, name ), mAddressBook( ab ), mParentWidget( parent ), + : TQObject( parent, name ), mAddressBook( ab ), mParentWidget( parent ), d( new XXPortPrivate ) { setInstance( new KInstance( "kaddressbook" ) ); - d->mExportMapper = new QSignalMapper( this ); - d->mImportMapper = new QSignalMapper( this ); + d->mExportMapper = new TQSignalMapper( this ); + d->mImportMapper = new TQSignalMapper( this ); - connect( d->mExportMapper, SIGNAL( mapped( const QString& ) ), - SLOT( slotExportActivated( const QString& ) ) ); - connect( d->mImportMapper, SIGNAL( mapped( const QString& ) ), - SLOT( slotImportActivated( const QString& ) ) ); + connect( d->mExportMapper, TQT_SIGNAL( mapped( const TQString& ) ), + TQT_SLOT( slotExportActivated( const TQString& ) ) ); + connect( d->mImportMapper, TQT_SIGNAL( mapped( const TQString& ) ), + TQT_SLOT( slotImportActivated( const TQString& ) ) ); } XXPort::~XXPort() @@ -62,34 +62,34 @@ XXPort::~XXPort() d = 0; } -bool XXPort::exportContacts( const KABC::AddresseeList&, const QString& ) +bool XXPort::exportContacts( const KABC::AddresseeList&, const TQString& ) { // do nothing return false; } -KABC::AddresseeList XXPort::importContacts( const QString& ) const +KABC::AddresseeList XXPort::importContacts( const TQString& ) const { // do nothing return KABC::AddresseeList(); } -void XXPort::createImportAction( const QString &label, const QString &data ) +void XXPort::createImportAction( const TQString &label, const TQString &data ) { - QString id = "file_import_" + identifier() + ( data.isEmpty() ? QString( "" ) : "_" + data ); - KAction *action = new KAction( label, 0, d->mImportMapper, SLOT( map() ), actionCollection(), id.latin1() ); + TQString id = "file_import_" + identifier() + ( data.isEmpty() ? TQString( "" ) : "_" + data ); + KAction *action = new KAction( label, 0, d->mImportMapper, TQT_SLOT( map() ), actionCollection(), id.latin1() ); - d->mImportMapper->setMapping( action, ( data.isEmpty() ? QString( "<empty>" ) : data ) ); + d->mImportMapper->setMapping( action, ( data.isEmpty() ? TQString( "<empty>" ) : data ) ); setXMLFile( identifier() + "_xxportui.rc" ); } -void XXPort::createExportAction( const QString &label, const QString &data ) +void XXPort::createExportAction( const TQString &label, const TQString &data ) { - QString id = "file_export_" + identifier() + ( data.isEmpty() ? QString( "" ) : "_" + data ); - KAction *action = new KAction( label, 0, d->mExportMapper, SLOT( map() ), actionCollection(), id.latin1() ); + TQString id = "file_export_" + identifier() + ( data.isEmpty() ? TQString( "" ) : "_" + data ); + KAction *action = new KAction( label, 0, d->mExportMapper, TQT_SLOT( map() ), actionCollection(), id.latin1() ); - d->mExportMapper->setMapping( action, ( data.isEmpty() ? QString( "<empty>" ) : data ) ); + d->mExportMapper->setMapping( action, ( data.isEmpty() ? TQString( "<empty>" ) : data ) ); setXMLFile( identifier() + "_xxportui.rc" ); } @@ -99,7 +99,7 @@ KABC::AddressBook *XXPort::addressBook() const return mAddressBook; } -QWidget *XXPort::parentWidget() const +TQWidget *XXPort::parentWidget() const { return mParentWidget; } @@ -115,14 +115,14 @@ void XXPort::processEvents() const d->mKApp->processEvents(); } -void XXPort::slotExportActivated( const QString &data ) +void XXPort::slotExportActivated( const TQString &data ) { - emit exportActivated( identifier(), ( data == "<empty>" ? QString::null : data ) ); + emit exportActivated( identifier(), ( data == "<empty>" ? TQString::null : data ) ); } -void XXPort::slotImportActivated( const QString &data ) +void XXPort::slotImportActivated( const TQString &data ) { - emit importActivated( identifier(), ( data == "<empty>" ? QString::null : data ) ); + emit importActivated( identifier(), ( data == "<empty>" ? TQString::null : data ) ); } #include "xxport.moc" diff --git a/kaddressbook/interfaces/xxport.h b/kaddressbook/interfaces/xxport.h index 098688b94..29b54acc1 100644 --- a/kaddressbook/interfaces/xxport.h +++ b/kaddressbook/interfaces/xxport.h @@ -24,7 +24,7 @@ #ifndef KAB_XXPORT_H #define KAB_XXPORT_H -#include <qobject.h> +#include <tqobject.h> #include <kabc/addressbook.h> #include <kabc/addresseelist.h> @@ -45,7 +45,7 @@ class KApplication; */ #define K_EXPORT_KADDRESSBOOK_XXFILTER_CATALOG( libname, XXPortClass, catalog ) \ class KDE_NO_EXPORT localXXPortFactory : public KAB::XXPortFactory { \ - KAB::XXPort *xxportObject( KABC::AddressBook *ab, QWidget *parent, const char *name ) \ + KAB::XXPort *xxportObject( KABC::AddressBook *ab, TQWidget *parent, const char *name ) \ { const char *cat = catalog; \ if (cat) KGlobal::locale()->insertCatalogue(cat); \ return new XXPortClass( ab, parent, name ); \ @@ -65,19 +65,19 @@ class KApplication; namespace KAB { -class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient +class KDE_EXPORT XXPort : public TQObject, virtual public KXMLGUIClient { Q_OBJECT public: - XXPort( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); + XXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); ~XXPort(); /** Returns the unique identifier of this xxport modul, it should be the lowercase name of the import/export format e.g. 'vcard' */ - virtual QString identifier() const = 0; + virtual TQString identifier() const = 0; /** Reimplement this method if the XXPortManager shall @@ -95,7 +95,7 @@ class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient Processes outstanding KApplication events. It should be called occasionally when the import/export filter is busy performing a long operation (e.g. reading from slow external devices). - @see: QApplication::processEvents() + @see: TQApplication::processEvents() */ void processEvents() const; @@ -103,12 +103,12 @@ class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient /** Reimplement this method for exporting the contacts. */ - virtual bool exportContacts( const KABC::AddresseeList &list, const QString& identifier ); + virtual bool exportContacts( const KABC::AddresseeList &list, const TQString& identifier ); /** Reimplement this method for importing the contacts. */ - virtual KABC::AddresseeList importContacts( const QString& identifier ) const; + virtual KABC::AddresseeList importContacts( const TQString& identifier ) const; signals: /** @@ -116,25 +116,25 @@ class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient The parameter contains the @ref identifier() for unique identification. */ - void exportActivated( const QString&, const QString& ); + void exportActivated( const TQString&, const TQString& ); /** Emitted whenever the import action is activated. The parameter contains the @ref identifier() for unique identification. */ - void importActivated( const QString&, const QString& ); + void importActivated( const TQString&, const TQString& ); protected: /** Create the import action. The identifier is passed in the import slot. */ - void createImportAction( const QString &label, const QString &identifier = QString::null ); + void createImportAction( const TQString &label, const TQString &identifier = TQString::null ); /** Create the export action. The identifier is passed in the export slot. */ - void createExportAction( const QString &label, const QString &identifier = QString::null ); + void createExportAction( const TQString &label, const TQString &identifier = TQString::null ); /** Returns a pointer to the address book object. @@ -145,15 +145,15 @@ class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient Returns a pointer to the parent widget. It can be used as parent for message boxes. */ - QWidget *parentWidget() const; + TQWidget *parentWidget() const; private slots: - void slotImportActivated( const QString& ); - void slotExportActivated( const QString& ); + void slotImportActivated( const TQString& ); + void slotExportActivated( const TQString& ); private: KABC::AddressBook *mAddressBook; - QWidget *mParentWidget; + TQWidget *mParentWidget; class XXPortPrivate; XXPortPrivate *d; @@ -162,12 +162,12 @@ class KDE_EXPORT XXPort : public QObject, virtual public KXMLGUIClient class XXPortFactory : public KLibFactory { public: - virtual XXPort *xxportObject( KABC::AddressBook *ab, QWidget *parent, + virtual XXPort *xxportObject( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ) = 0; protected: - virtual QObject* createObject( QObject*, const char*, const char*, - const QStringList & ) + virtual TQObject* createObject( TQObject*, const char*, const char*, + const TQStringList & ) { return 0; } |