diff options
Diffstat (limited to 'konversation/src/linkaddressbook/addressbook_base.h')
-rw-r--r-- | konversation/src/linkaddressbook/addressbook_base.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/konversation/src/linkaddressbook/addressbook_base.h b/konversation/src/linkaddressbook/addressbook_base.h index d7db6c8..2fe1d25 100644 --- a/konversation/src/linkaddressbook/addressbook_base.h +++ b/konversation/src/linkaddressbook/addressbook_base.h @@ -20,8 +20,8 @@ #include "../channelnick.h" #include <kstaticdeleter.h> -#include <qobject.h> -#include <qregexp.h> +#include <tqobject.h> +#include <tqregexp.h> #include <config.h> @@ -31,28 +31,28 @@ namespace Konversation { - class AddressbookBase : public QObject, public KIMIface + class AddressbookBase : public TQObject, public KIMIface { Q_OBJECT public: virtual ~AddressbookBase(); // This needs to be public so it can be deleted by our static pointer - KABC::Addressee getKABCAddresseeFromNick(const QString &ircnick, const QString &servername, const QString &servergroup); - KABC::Addressee getKABCAddresseeFromNick(const QString &nick_server); - bool hasNick(const KABC::Addressee &addressee, const QString &ircnick, const QString &servername, const QString &servergroup); - bool hasNick(const KABC::Addressee &addressee, const QString &nick_server); + KABC::Addressee getKABCAddresseeFromNick(const TQString &ircnick, const TQString &servername, const TQString &servergroup); + KABC::Addressee getKABCAddresseeFromNick(const TQString &nick_server); + bool hasNick(const KABC::Addressee &addressee, const TQString &ircnick, const TQString &servername, const TQString &servergroup); + bool hasNick(const KABC::Addressee &addressee, const TQString &nick_server); /** For a given contact, remove the ircnick if they have it. If you * pass an addressBook, the contact is inserted if it has changed. */ - void unassociateNick(KABC::Addressee &addressee, const QString &ircnick, const QString &servername, const QString &servergroup); - void associateNick(KABC::Addressee &addressee, const QString &ircnick, const QString &servername, const QString &servergroup); - bool associateNickAndUnassociateFromEveryoneElse(KABC::Addressee &addressee, const QString &ircnick, const QString &servername, const QString &servergroup); + void unassociateNick(KABC::Addressee &addressee, const TQString &ircnick, const TQString &servername, const TQString &servergroup); + void associateNick(KABC::Addressee &addressee, const TQString &ircnick, const TQString &servername, const TQString &servergroup); + bool associateNickAndUnassociateFromEveryoneElse(KABC::Addressee &addressee, const TQString &ircnick, const TQString &servername, const TQString &servergroup); /** If this user is online, return one of the nicks that they are * using. Otherwise return the first nick listed. * If there are multiple matches, it will prefer ones that are not set to away. - * @return online nick, first nick, or QString::null if they aren't known at all. + * @return online nick, first nick, or TQString::null if they aren't known at all. */ - QString getBestNick(const KABC::Addressee &addressee); + TQString getBestNick(const KABC::Addressee &addressee); bool hasAnyNicks(const KABC::Addressee &addresse); int presenceStatusByAddressee(const KABC::Addressee &addressee); bool isOnline(KABC::Addressee &addressee); @@ -62,8 +62,8 @@ namespace Konversation bool saveAddressee(KABC::Addressee &addressee); bool saveAddressbook(); - QStringList allContactsNicksForServer(const QString &servername, const QString &servergroup); - QStringList getNicks(const KABC::Addressee &addressee, const QString &servername, const QString &servergroup); + TQStringList allContactsNicksForServer(const TQString &servername, const TQString &servergroup); + TQStringList getNicks(const KABC::Addressee &addressee, const TQString &servername, const TQString &servergroup); KABC::AddressBook *getAddressBook(); @@ -78,11 +78,11 @@ namespace Konversation /** * Lets outsiders tell us to emit presenceChanged signal. */ - virtual void emitContactPresenceChanged(const QString &uid, int presence) = 0; + virtual void emitContactPresenceChanged(const TQString &uid, int presence) = 0; /** * Lets outsiders tell us to emit presenceChanged signal. */ - virtual void emitContactPresenceChanged(const QString &uid) = 0; + virtual void emitContactPresenceChanged(const TQString &uid) = 0; /** * Run kmail (or whatever the users email client is) @@ -101,20 +101,20 @@ namespace Konversation /** * Run kaddressbook to edit the addressee passed in. */ - bool editAddressee(const QString &uid); + bool editAddressee(const TQString &uid); /** * Run the users email program (e.g. kmail) passing "mailto:" + mailtoaddress. * Note that mailto: will be prepended for you. * @param mailtoaddress A comma delimited set of email address topass as "mailto:" * @return True if there were no problems running the email program. An error will be shown to the user if there was. */ - bool runEmailProgram(const QString &mailtoaddress); + bool runEmailProgram(const TQString &mailtoaddress); - /** Just calls KonversationMainWindow::focusAndShowErrorMessage(const QString *errorMsg) + /** Just calls KonversationMainWindow::focusAndShowErrorMessage(const TQString *errorMsg) * - * @see KonversationMainWindow::focusAndShowErrorMessage(const QString *errorMsg) + * @see KonversationMainWindow::focusAndShowErrorMessage(const TQString *errorMsg) */ - void focusAndShowErrorMessage(const QString &errorMsg); + void focusAndShowErrorMessage(const TQString &errorMsg); signals: void addresseesChanged(); |