summaryrefslogtreecommitdiffstats
path: root/kwallet/client
diff options
context:
space:
mode:
Diffstat (limited to 'kwallet/client')
-rw-r--r--kwallet/client/kwallet.cc146
-rw-r--r--kwallet/client/kwallet.h106
-rw-r--r--kwallet/client/kwallettypes.h8
3 files changed, 130 insertions, 130 deletions
diff --git a/kwallet/client/kwallet.cc b/kwallet/client/kwallet.cc
index 266135f85..0575050e5 100644
--- a/kwallet/client/kwallet.cc
+++ b/kwallet/client/kwallet.cc
@@ -25,68 +25,68 @@
#include <kdeversion.h>
#include <dcopclient.h>
#include <dcopref.h>
-#include <qpopupmenu.h>
-#include <qapplication.h>
+#include <tqpopupmenu.h>
+#include <tqapplication.h>
#include <assert.h>
using namespace KWallet;
-const QString Wallet::LocalWallet() {
+const TQString Wallet::LocalWallet() {
KConfig cfg("kwalletrc", true);
cfg.setGroup("Wallet");
if (!cfg.readBoolEntry("Use One Wallet", true)) {
- QString tmp = cfg.readEntry("Local Wallet", "localwallet");
+ TQString tmp = cfg.readEntry("Local Wallet", "localwallet");
if (tmp.isEmpty()) {
return "localwallet";
}
return tmp;
}
- QString tmp = cfg.readEntry("Default Wallet", "kdewallet");
+ TQString tmp = cfg.readEntry("Default Wallet", "kdewallet");
if (tmp.isEmpty()) {
return "kdewallet";
}
return tmp;
}
-const QString Wallet::NetworkWallet() {
+const TQString Wallet::NetworkWallet() {
KConfig cfg("kwalletrc", true);
cfg.setGroup("Wallet");
- QString tmp = cfg.readEntry("Default Wallet", "kdewallet");
+ TQString tmp = cfg.readEntry("Default Wallet", "kdewallet");
if (tmp.isEmpty()) {
return "kdewallet";
}
return tmp;
}
-const QString Wallet::PasswordFolder() {
+const TQString Wallet::PasswordFolder() {
return "Passwords";
}
-const QString Wallet::FormDataFolder() {
+const TQString Wallet::FormDataFolder() {
return "Form Data";
}
-Wallet::Wallet(int handle, const QString& name)
-: QObject(0L), DCOPObject(), d(0L), _name(name), _handle(handle) {
+Wallet::Wallet(int handle, const TQString& name)
+: TQObject(0L), DCOPObject(), d(0L), _name(name), _handle(handle) {
_dcopRef = new DCOPRef("kded", "kwalletd");
_dcopRef->dcopClient()->setNotifications(true);
connect(_dcopRef->dcopClient(),
- SIGNAL(applicationRemoved(const QCString&)),
+ TQT_SIGNAL(applicationRemoved(const TQCString&)),
this,
- SLOT(slotAppUnregistered(const QCString&)));
+ TQT_SLOT(slotAppUnregistered(const TQCString&)));
connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "walletClosed(int)", "slotWalletClosed(int)", false);
- connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderListUpdated(QString)", "slotFolderListUpdated(QString)", false);
- connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderUpdated(QString, QString)", "slotFolderUpdated(QString, QString)", false);
- connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "applicationDisconnected(QString, QCString)", "slotApplicationDisconnected(QString, QCString)", false);
+ connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderListUpdated(TQString)", "slotFolderListUpdated(TQString)", false);
+ connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderUpdated(TQString, TQString)", "slotFolderUpdated(TQString, TQString)", false);
+ connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "applicationDisconnected(TQString, TQCString)", "slotApplicationDisconnected(TQString, TQCString)", false);
// Verify that the wallet is still open
if (_handle != -1) {
@@ -96,7 +96,7 @@ Wallet::Wallet(int handle, const QString& name)
r.get(rc);
if (!rc) {
_handle = -1;
- _name = QString::null;
+ _name = TQString::null;
}
}
}
@@ -107,8 +107,8 @@ Wallet::~Wallet() {
if (_handle != -1) {
_dcopRef->call("close", _handle, false);
_handle = -1;
- _folder = QString::null;
- _name = QString::null;
+ _folder = TQString::null;
+ _name = TQString::null;
}
delete _dcopRef;
@@ -116,9 +116,9 @@ Wallet::~Wallet() {
}
-QStringList Wallet::walletList() {
+TQStringList Wallet::walletList() {
DCOPReply r = DCOPRef("kded", "kwalletd").call("wallets");
- QStringList rc;
+ TQStringList rc;
if (r.isValid()) {
r.get(rc);
}
@@ -126,7 +126,7 @@ QStringList Wallet::walletList() {
}
-void Wallet::changePassword(const QString& name, WId w) {
+void Wallet::changePassword(const TQString& name, WId w) {
DCOPRef("kded", "kwalletd").send("changePassword", name, uint(w));
}
@@ -141,7 +141,7 @@ bool Wallet::isEnabled() {
}
-bool Wallet::isOpen(const QString& name) {
+bool Wallet::isOpen(const TQString& name) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("isOpen", name);
bool rc = false;
if (r.isValid()) {
@@ -151,7 +151,7 @@ bool Wallet::isOpen(const QString& name) {
}
-int Wallet::closeWallet(const QString& name, bool force) {
+int Wallet::closeWallet(const TQString& name, bool force) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("close", name, force);
int rc = -1;
if (r.isValid()) {
@@ -161,7 +161,7 @@ int Wallet::closeWallet(const QString& name, bool force) {
}
-int Wallet::deleteWallet(const QString& name) {
+int Wallet::deleteWallet(const TQString& name) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("deleteWallet", name);
int rc = -1;
if (r.isValid()) {
@@ -171,7 +171,7 @@ int Wallet::deleteWallet(const QString& name) {
}
-Wallet *Wallet::openWallet(const QString& name, WId w, OpenType ot) {
+Wallet *Wallet::openWallet(const TQString& name, WId w, OpenType ot) {
if (ot == Asynchronous) {
Wallet *wallet = new Wallet(-1, name);
DCOPRef("kded", "kwalletd").send("openAsynchronous", name, wallet->objId(), uint(w));
@@ -179,7 +179,7 @@ Wallet *Wallet::openWallet(const QString& name, WId w, OpenType ot) {
}
// avoid deadlock if the app has some popup open (#65978/#71048)
- while( QWidget* widget = qApp->activePopupWidget())
+ while( TQWidget* widget = qApp->activePopupWidget())
widget->close();
bool isPath = ot == Path;
@@ -203,7 +203,7 @@ Wallet *Wallet::openWallet(const QString& name, WId w, OpenType ot) {
}
-bool Wallet::disconnectApplication(const QString& wallet, const QCString& app) {
+bool Wallet::disconnectApplication(const TQString& wallet, const TQCString& app) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("disconnectApplication", wallet, app);
bool rc = false;
if (r.isValid()) {
@@ -213,9 +213,9 @@ bool Wallet::disconnectApplication(const QString& wallet, const QCString& app) {
}
-QStringList Wallet::users(const QString& name) {
+TQStringList Wallet::users(const TQString& name) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("users", name);
- QStringList drc;
+ TQStringList drc;
if (r.isValid()) {
r.get(drc);
}
@@ -240,8 +240,8 @@ int Wallet::lockWallet() {
DCOPReply r = _dcopRef->call("close", _handle, true);
_handle = -1;
- _folder = QString::null;
- _name = QString::null;
+ _folder = TQString::null;
+ _name = TQString::null;
if (r.isValid()) {
int drc = -1;
r.get(drc);
@@ -251,7 +251,7 @@ int Wallet::lockWallet() {
}
-const QString& Wallet::walletName() const {
+const TQString& Wallet::walletName() const {
return _name;
}
@@ -273,15 +273,15 @@ void Wallet::requestChangePassword(WId w) {
void Wallet::slotWalletClosed(int handle) {
if (_handle == handle) {
_handle = -1;
- _folder = QString::null;
- _name = QString::null;
+ _folder = TQString::null;
+ _name = TQString::null;
emit walletClosed();
}
}
-QStringList Wallet::folderList() {
- QStringList rc;
+TQStringList Wallet::folderList() {
+ TQStringList rc;
if (_handle == -1) {
return rc;
@@ -296,8 +296,8 @@ QStringList Wallet::folderList() {
}
-QStringList Wallet::entryList() {
- QStringList rc;
+TQStringList Wallet::entryList() {
+ TQStringList rc;
if (_handle == -1) {
return rc;
@@ -312,7 +312,7 @@ QStringList Wallet::entryList() {
}
-bool Wallet::hasFolder(const QString& f) {
+bool Wallet::hasFolder(const TQString& f) {
bool rc = false;
if (_handle == -1) {
@@ -328,7 +328,7 @@ bool Wallet::hasFolder(const QString& f) {
}
-bool Wallet::createFolder(const QString& f) {
+bool Wallet::createFolder(const TQString& f) {
bool rc = true;
if (_handle == -1) {
@@ -346,7 +346,7 @@ bool Wallet::createFolder(const QString& f) {
}
-bool Wallet::setFolder(const QString& f) {
+bool Wallet::setFolder(const TQString& f) {
bool rc = false;
if (_handle == -1) {
@@ -369,7 +369,7 @@ bool Wallet::setFolder(const QString& f) {
}
-bool Wallet::removeFolder(const QString& f) {
+bool Wallet::removeFolder(const TQString& f) {
bool rc = false;
if (_handle == -1) {
@@ -382,19 +382,19 @@ bool Wallet::removeFolder(const QString& f) {
}
if (_folder == f) {
- setFolder(QString::null);
+ setFolder(TQString::null);
}
return rc;
}
-const QString& Wallet::currentFolder() const {
+const TQString& Wallet::currentFolder() const {
return _folder;
}
-int Wallet::readEntry(const QString& key, QByteArray& value) {
+int Wallet::readEntry(const TQString& key, TQByteArray& value) {
int rc = -1;
if (_handle == -1) {
@@ -411,7 +411,7 @@ int Wallet::readEntry(const QString& key, QByteArray& value) {
}
-int Wallet::readEntryList(const QString& key, QMap<QString, QByteArray>& value) {
+int Wallet::readEntryList(const TQString& key, TQMap<TQString, TQByteArray>& value) {
int rc = -1;
if (_handle == -1) {
@@ -428,7 +428,7 @@ int Wallet::readEntryList(const QString& key, QMap<QString, QByteArray>& value)
}
-int Wallet::renameEntry(const QString& oldName, const QString& newName) {
+int Wallet::renameEntry(const TQString& oldName, const TQString& newName) {
int rc = -1;
if (_handle == -1) {
@@ -444,7 +444,7 @@ int Wallet::renameEntry(const QString& oldName, const QString& newName) {
}
-int Wallet::readMap(const QString& key, QMap<QString,QString>& value) {
+int Wallet::readMap(const TQString& key, TQMap<TQString,TQString>& value) {
int rc = -1;
if (_handle == -1) {
@@ -453,10 +453,10 @@ int Wallet::readMap(const QString& key, QMap<QString,QString>& value) {
DCOPReply r = _dcopRef->call("readMap", _handle, _folder, key);
if (r.isValid()) {
- QByteArray v;
+ TQByteArray v;
r.get(v);
if (!v.isEmpty()) {
- QDataStream ds(v, IO_ReadOnly);
+ TQDataStream ds(v, IO_ReadOnly);
ds >> value;
}
rc = 0;
@@ -466,7 +466,7 @@ int Wallet::readMap(const QString& key, QMap<QString,QString>& value) {
}
-int Wallet::readMapList(const QString& key, QMap<QString, QMap<QString, QString> >& value) {
+int Wallet::readMapList(const TQString& key, TQMap<TQString, TQMap<TQString, TQString> >& value) {
int rc = -1;
if (_handle == -1) {
@@ -475,12 +475,12 @@ int Wallet::readMapList(const QString& key, QMap<QString, QMap<QString, QString>
DCOPReply r = _dcopRef->call("readMapList", _handle, _folder, key);
if (r.isValid()) {
- QMap<QString,QByteArray> unparsed;
+ TQMap<TQString,TQByteArray> unparsed;
r.get(unparsed);
- for (QMap<QString,QByteArray>::ConstIterator i = unparsed.begin(); i != unparsed.end(); ++i) {
+ for (TQMap<TQString,TQByteArray>::ConstIterator i = unparsed.begin(); i != unparsed.end(); ++i) {
if (!i.data().isEmpty()) {
- QDataStream ds(i.data(), IO_ReadOnly);
- QMap<QString,QString> v;
+ TQDataStream ds(i.data(), IO_ReadOnly);
+ TQMap<TQString,TQString> v;
ds >> v;
value.insert(i.key(), v);
}
@@ -492,7 +492,7 @@ int Wallet::readMapList(const QString& key, QMap<QString, QMap<QString, QString>
}
-int Wallet::readPassword(const QString& key, QString& value) {
+int Wallet::readPassword(const TQString& key, TQString& value) {
int rc = -1;
if (_handle == -1) {
@@ -509,7 +509,7 @@ int Wallet::readPassword(const QString& key, QString& value) {
}
-int Wallet::readPasswordList(const QString& key, QMap<QString, QString>& value) {
+int Wallet::readPasswordList(const TQString& key, TQMap<TQString, TQString>& value) {
int rc = -1;
if (_handle == -1) {
@@ -526,7 +526,7 @@ int Wallet::readPasswordList(const QString& key, QMap<QString, QString>& value)
}
-int Wallet::writeEntry(const QString& key, const QByteArray& value, EntryType entryType) {
+int Wallet::writeEntry(const TQString& key, const TQByteArray& value, EntryType entryType) {
int rc = -1;
if (_handle == -1) {
@@ -542,7 +542,7 @@ int Wallet::writeEntry(const QString& key, const QByteArray& value, EntryType en
}
-int Wallet::writeEntry(const QString& key, const QByteArray& value) {
+int Wallet::writeEntry(const TQString& key, const TQByteArray& value) {
int rc = -1;
if (_handle == -1) {
@@ -558,15 +558,15 @@ int Wallet::writeEntry(const QString& key, const QByteArray& value) {
}
-int Wallet::writeMap(const QString& key, const QMap<QString,QString>& value) {
+int Wallet::writeMap(const TQString& key, const TQMap<TQString,TQString>& value) {
int rc = -1;
if (_handle == -1) {
return rc;
}
- QByteArray a;
- QDataStream ds(a, IO_WriteOnly);
+ TQByteArray a;
+ TQDataStream ds(a, IO_WriteOnly);
ds << value;
DCOPReply r = _dcopRef->call("writeMap", _handle, _folder, key, a);
if (r.isValid()) {
@@ -577,7 +577,7 @@ int Wallet::writeMap(const QString& key, const QMap<QString,QString>& value) {
}
-int Wallet::writePassword(const QString& key, const QString& value) {
+int Wallet::writePassword(const TQString& key, const TQString& value) {
int rc = -1;
if (_handle == -1) {
@@ -593,7 +593,7 @@ int Wallet::writePassword(const QString& key, const QString& value) {
}
-bool Wallet::hasEntry(const QString& key) {
+bool Wallet::hasEntry(const TQString& key) {
bool rc = false;
if (_handle == -1) {
@@ -609,7 +609,7 @@ bool Wallet::hasEntry(const QString& key) {
}
-int Wallet::removeEntry(const QString& key) {
+int Wallet::removeEntry(const TQString& key) {
int rc = -1;
if (_handle == -1) {
@@ -625,7 +625,7 @@ int Wallet::removeEntry(const QString& key) {
}
-Wallet::EntryType Wallet::entryType(const QString& key) {
+Wallet::EntryType Wallet::entryType(const TQString& key) {
int rc = 0;
if (_handle == -1) {
@@ -641,28 +641,28 @@ Wallet::EntryType Wallet::entryType(const QString& key) {
}
-void Wallet::slotAppUnregistered(const QCString& app) {
+void Wallet::slotAppUnregistered(const TQCString& app) {
if (_handle >= 0 && app == "kded") {
slotWalletClosed(_handle);
}
}
-void Wallet::slotFolderUpdated(const QString& wallet, const QString& folder) {
+void Wallet::slotFolderUpdated(const TQString& wallet, const TQString& folder) {
if (_name == wallet) {
emit folderUpdated(folder);
}
}
-void Wallet::slotFolderListUpdated(const QString& wallet) {
+void Wallet::slotFolderListUpdated(const TQString& wallet) {
if (_name == wallet) {
emit folderListUpdated();
}
}
-void Wallet::slotApplicationDisconnected(const QString& wallet, const QCString& application) {
+void Wallet::slotApplicationDisconnected(const TQString& wallet, const TQCString& application) {
if (_handle >= 0
&& _name == wallet
&& application == _dcopRef->dcopClient()->appId()) {
@@ -686,7 +686,7 @@ void Wallet::walletOpenResult(int id) {
}
-bool Wallet::folderDoesNotExist(const QString& wallet, const QString& folder) {
+bool Wallet::folderDoesNotExist(const TQString& wallet, const TQString& folder) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("folderDoesNotExist", wallet, folder);
bool rc = true;
if (r.isValid()) {
@@ -696,7 +696,7 @@ return rc;
}
-bool Wallet::keyDoesNotExist(const QString& wallet, const QString& folder, const QString& key) {
+bool Wallet::keyDoesNotExist(const TQString& wallet, const TQString& folder, const TQString& key) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("keyDoesNotExist", wallet, folder, key);
bool rc = true;
if (r.isValid()) {
diff --git a/kwallet/client/kwallet.h b/kwallet/client/kwallet.h
index e49839ddc..b7b3bce31 100644
--- a/kwallet/client/kwallet.h
+++ b/kwallet/client/kwallet.h
@@ -22,12 +22,12 @@
#ifndef _KWALLET_H
#define _KWALLET_H
-#include <qglobal.h>
+#include <tqglobal.h>
#ifdef Q_OS_UNIX
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
#include <dcopobject.h>
class DCOPRef;
@@ -45,7 +45,7 @@ namespace KWallet {
* @author George Staikos <staikos@kde.org>
* @short KDE Wallet Class
*/
-class KIO_EXPORT Wallet : public QObject, public DCOPObject {
+class KIO_EXPORT Wallet : public TQObject, public DCOPObject {
K_DCOP
Q_OBJECT
protected:
@@ -55,7 +55,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param handle The handle for the wallet.
* @param name The name of the wallet.
*/
- Wallet(int handle, const QString& name);
+ Wallet(int handle, const TQString& name);
/**
* Copy a KWallet object.
* @internal
@@ -75,7 +75,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns a list of the names of all wallets that are
* open.
*/
- static QStringList walletList();
+ static TQStringList walletList();
/**
* Determine if the KDE wallet is enabled. Normally you do
@@ -89,7 +89,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param name The name of the wallet to check.
* @return Returns true if the wallet is open, else false.
*/
- static bool isOpen(const QString& name);
+ static bool isOpen(const TQString& name);
/**
* Close the wallet @p name. The wallet will only be closed
@@ -100,7 +100,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* is in use by others.
* @return Returns 0 on success, non-zero on error.
*/
- static int closeWallet(const QString& name, bool force);
+ static int closeWallet(const TQString& name, bool force);
/**
* Delete the wallet @p name. The wallet will be forced closed
@@ -108,7 +108,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param name The name of the wallet to delete.
* @return Returns 0 on success, non-zero on error.
*/
- static int deleteWallet(const QString& name);
+ static int deleteWallet(const TQString& name);
/**
* Disconnect the application @p app from @p wallet.
@@ -116,7 +116,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param app The name of the application to disconnect.
* @return Returns true on success, false on error.
*/
- static bool disconnectApplication(const QString& wallet, const QCString& app);
+ static bool disconnectApplication(const TQString& wallet, const TQCString& app);
enum OpenType { Synchronous=0, Asynchronous, Path, OpenTypeUnused=0xff };
@@ -136,7 +136,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns a pointer to the wallet if successful,
* or a null pointer on error or if rejected.
*/
- static Wallet* openWallet(const QString& name, WId w = 0, OpenType ot = Synchronous);
+ static Wallet* openWallet(const TQString& name, WId w = 0, OpenType ot = Synchronous);
/**
* List the applications that are using the wallet @p wallet.
@@ -144,17 +144,17 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns a list of all DCOP application IDs using
* the wallet.
*/
- static QStringList users(const QString& wallet);
+ static TQStringList users(const TQString& wallet);
/**
* The name of the wallet used to store local passwords.
*/
- static const QString LocalWallet();
+ static const TQString LocalWallet();
/**
* The name of the wallet used to store network passwords.
*/
- static const QString NetworkWallet();
+ static const TQString NetworkWallet();
/**
* The standardized name of the password folder.
@@ -162,7 +162,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* the user may still delete it so you should check for its
* existence and recreate it if necessary and desired.
*/
- static const QString PasswordFolder();
+ static const TQString PasswordFolder();
/**
* The standardized name of the form data folder.
@@ -170,7 +170,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* the user may still delete it so you should check for its
* existence and recreate it if necessary and desired.
*/
- static const QString FormDataFolder();
+ static const TQString FormDataFolder();
/**
* Request to the wallet service to change the password of
@@ -178,7 +178,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param name The the wallet to change the password of.
* @param w The window id to associate any dialogs with.
*/
- static void changePassword(const QString& name, WId w = 0);
+ static void changePassword(const TQString& name, WId w = 0);
/**
* This syncs the wallet file on disk with what is in memory.
@@ -198,7 +198,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
/**
* The name of the current wallet.
*/
- virtual const QString& walletName() const;
+ virtual const TQString& walletName() const;
/**
* Determine if the current wallet is open, and is a valid
@@ -218,14 +218,14 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* Obtain the list of all folders contained in the wallet.
* @return Returns an empty list if the wallet is not open.
*/
- virtual QStringList folderList();
+ virtual TQStringList folderList();
/**
* Determine if the folder @p f exists in the wallet.
* @param f the name of the folder to check for
* @return Returns true if the folder exists in the wallet.
*/
- virtual bool hasFolder(const QString& f);
+ virtual bool hasFolder(const TQString& f);
/**
* Set the current working folder to @p f. The folder must
@@ -234,21 +234,21 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param f the name of the folder to make the working folder
* @return Returns true if the folder was successfully set.
*/
- virtual bool setFolder(const QString& f);
+ virtual bool setFolder(const TQString& f);
/**
* Remove the folder @p f and all its entries from the wallet.
* @param f the name of the folder to remove
* @return Returns true if the folder was successfully removed.
*/
- virtual bool removeFolder(const QString& f);
+ virtual bool removeFolder(const TQString& f);
/**
* Created the folder @p f.
* @param f the name of the folder to create
* @return Returns true if the folder was successfully created.
*/
- virtual bool createFolder(const QString& f);
+ virtual bool createFolder(const TQString& f);
/**
* Determine the current working folder in the wallet.
@@ -256,14 +256,14 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* folder, which is valid but discouraged.
* @return Returns the current working folder.
*/
- virtual const QString& currentFolder() const;
+ virtual const TQString& currentFolder() const;
/**
* Return the list of keys of all entries in this folder.
* @return Returns an empty list if the wallet is not open, or
* if the folder is empty.
*/
- virtual QStringList entryList();
+ virtual TQStringList entryList();
/**
* Rename the entry @p oldName to @p newName.
@@ -271,18 +271,18 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param newName The new key of the entry.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int renameEntry(const QString& oldName, const QString& newName);
+ virtual int renameEntry(const TQString& oldName, const TQString& newName);
/**
* Read the entry @p key from the current folder.
* The entry format is unknown except that it is either a
- * QByteArray or a QDataStream, which effectively means that
+ * TQByteArray or a TQDataStream, which effectively means that
* it is anything.
* @param key The key of the entry to read.
* @param value A buffer to fill with the value.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int readEntry(const QString& key, QByteArray& value);
+ virtual int readEntry(const TQString& key, TQByteArray& value);
/**
* Read the map entry @p key from the current folder.
@@ -292,7 +292,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* return an error if the key was not originally
* written as a map.
*/
- virtual int readMap(const QString& key, QMap<QString,QString>& value);
+ virtual int readMap(const TQString& key, TQMap<TQString,TQString>& value);
/**
* Read the password entry @p key from the current folder.
@@ -302,12 +302,12 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* return an error if the key was not originally
* written as a password.
*/
- virtual int readPassword(const QString& key, QString& value);
+ virtual int readPassword(const TQString& key, TQString& value);
/**
* Read the entries matching @p key from the current folder.
* The entry format is unknown except that it is either a
- * QByteArray or a QDataStream, which effectively means that
+ * TQByteArray or a TQDataStream, which effectively means that
* it is anything.
* @param key The key of the entry to read. Wildcards
* are supported.
@@ -316,7 +316,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns 0 on success, non-zero on error.
* @since 3.4
*/
- int readEntryList(const QString& key, QMap<QString, QByteArray>& value);
+ int readEntryList(const TQString& key, TQMap<TQString, TQByteArray>& value);
/**
* Read the map entry @p key from the current folder.
@@ -329,7 +329,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* written as a map.
* @since 3.4
*/
- int readMapList(const QString& key, QMap<QString, QMap<QString, QString> >& value);
+ int readMapList(const TQString& key, TQMap<TQString, TQMap<TQString, TQString> >& value);
/**
* Read the password entry @p key from the current folder.
@@ -342,7 +342,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* written as a password.
* @since 3.4
*/
- int readPasswordList(const QString& key, QMap<QString, QString>& value);
+ int readPasswordList(const TQString& key, TQMap<TQString, TQString>& value);
/**
* Write @p key = @p value as a binary entry to the current
@@ -354,7 +354,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param entryType The type of the entry.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int writeEntry(const QString& key, const QByteArray& value, EntryType entryType);
+ virtual int writeEntry(const TQString& key, const TQByteArray& value, EntryType entryType);
/**
* Write @p key = @p value as a binary entry to the current
@@ -363,7 +363,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param value The value of the entry.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int writeEntry(const QString& key, const QByteArray& value);
+ virtual int writeEntry(const TQString& key, const TQByteArray& value);
/**
* Write @p key = @p value as a map to the current folder.
@@ -371,7 +371,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param value The value of the map.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int writeMap(const QString& key, const QMap<QString,QString>& value);
+ virtual int writeMap(const TQString& key, const TQMap<TQString,TQString>& value);
/**
* Write @p key = @p value as a password to the current folder.
@@ -379,21 +379,21 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @param value The value of the password.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int writePassword(const QString& key, const QString& value);
+ virtual int writePassword(const TQString& key, const TQString& value);
/**
* Determine if the current folder has they entry @p key.
* @param key The key to search for.
* @return Returns true if the folder contains @p key.
*/
- virtual bool hasEntry(const QString& key);
+ virtual bool hasEntry(const TQString& key);
/**
* Remove the entry @p key from the current folder.
* @param key The key to remove.
* @return Returns 0 on success, non-zero on error.
*/
- virtual int removeEntry(const QString& key);
+ virtual int removeEntry(const TQString& key);
/**
* Determine the type of the entry @p key in this folder.
@@ -401,7 +401,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns an enumerated type representing the type
* of the entry.
*/
- virtual EntryType entryType(const QString& key);
+ virtual EntryType entryType(const TQString& key);
/**
* Determine if a folder does not exist in a wallet. This
@@ -413,7 +413,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns true if the folder does NOT exist in the
* wallet, or the wallet does not exist.
*/
- static bool folderDoesNotExist(const QString& wallet, const QString& folder);
+ static bool folderDoesNotExist(const TQString& wallet, const TQString& folder);
/**
* Determine if an entry in a folder does not exist in a
@@ -426,8 +426,8 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @return Returns true if the key does NOT exist in the
* wallet, or the folder or wallet does not exist.
*/
- static bool keyDoesNotExist(const QString& wallet, const QString& folder,
- const QString& key);
+ static bool keyDoesNotExist(const TQString& wallet, const TQString& folder,
+ const TQString& key);
signals:
/**
@@ -439,7 +439,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* Emitted when a folder in this wallet is updated.
* @param folder The folder that was updated.
*/
- void folderUpdated(const QString& folder);
+ void folderUpdated(const TQString& folder);
/**
* Emitted when the folder list is changed in this wallet.
@@ -450,7 +450,7 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* Emitted when a folder in this wallet is removed.
* @param folder The folder that was removed.
*/
- void folderRemoved(const QString& folder);
+ void folderRemoved(const TQString& folder);
/**
* Emitted when a wallet is opened in asynchronous mode.
@@ -470,19 +470,19 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @internal
* DCOP slot for signals emitted by the wallet service.
*/
- ASYNC slotFolderUpdated(const QString& wallet, const QString& folder);
+ ASYNC slotFolderUpdated(const TQString& wallet, const TQString& folder);
/**
* @internal
* DCOP slot for signals emitted by the wallet service.
*/
- ASYNC slotFolderListUpdated(const QString& wallet);
+ ASYNC slotFolderListUpdated(const TQString& wallet);
/**
* @internal
* DCOP slot for signals emitted by the wallet service.
*/
- ASYNC slotApplicationDisconnected(const QString& wallet, const QCString& application);
+ ASYNC slotApplicationDisconnected(const TQString& wallet, const TQCString& application);
/**
* @internal
@@ -495,13 +495,13 @@ class KIO_EXPORT Wallet : public QObject, public DCOPObject {
* @internal
* Used to detect when the wallet service dies.
*/
- void slotAppUnregistered(const QCString&);
+ void slotAppUnregistered(const TQCString&);
private:
class WalletPrivate;
WalletPrivate *d;
- QString _name;
- QString _folder;
+ TQString _name;
+ TQString _folder;
int _handle;
DCOPRef *_dcopRef;
diff --git a/kwallet/client/kwallettypes.h b/kwallet/client/kwallettypes.h
index b98d3d17a..43b7a6485 100644
--- a/kwallet/client/kwallettypes.h
+++ b/kwallet/client/kwallettypes.h
@@ -21,12 +21,12 @@
#ifndef KWALLET_TYPES_H
#define KWALLET_TYPES_H
-#include <qmap.h>
+#include <tqmap.h>
class QString;
-inline const char* dcopTypeName(const QByteArray&) { return "QByteArray"; }
-inline const char* dcopTypeName(const QMap<QString,QString>&) { return "QMap<QString,QString>"; }
-inline const char* dcopTypeName(const QMap<QString,QByteArray>&) { return "QMap<QString,QByteArray>"; }
+inline const char* dcopTypeName(const TQByteArray&) { return "TQByteArray"; }
+inline const char* dcopTypeName(const TQMap<TQString,TQString>&) { return "TQMap<TQString,TQString>"; }
+inline const char* dcopTypeName(const TQMap<TQString,TQByteArray>&) { return "TQMap<TQString,TQByteArray>"; }
#endif