tdewallet.cpp
85 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "walletClosed(int)", "slotWalletClosed(int)", false);
86 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderListUpdated(TQString)", "slotFolderListUpdated(TQString)", false);
87 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderUpdated(TQString, TQString)", "slotFolderUpdated(TQString, TQString)", false);
88 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "applicationDisconnected(TQString, TQCString)", "slotApplicationDisconnected(TQString, TQCString)", false);
468int Wallet::readMapList(const TQString& key, TQMap<TQString, TQMap<TQString, TQString> >& value) {
479 for (TQMap<TQString,TQByteArray>::ConstIterator i = unparsed.begin(); i != unparsed.end(); ++i) {
698bool Wallet::keyDoesNotExist(const TQString& wallet, const TQString& folder, const TQString& key) {
TQCString appId() const
void setNotifications(bool enabled)
bool connectDCOPSignal(const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot, bool Volatile)
TQCString objId() const
DCOPClient * dcopClient() const
TQCString obj() const
TQCString app() const
DCOPReply call(const TQCString &fun)
bool send(const TQCString &fun)
bool get(T &t, const char *tname)
bool isValid() const
int readMapList(const TQString &key, TQMap< TQString, TQMap< TQString, TQString > > &value)
Read the map entry key from the current folder.
Definition: tdewallet.cpp:468
virtual int sync()
This syncs the wallet file on disk with what is in memory.
Definition: tdewallet.cpp:225
void folderListUpdated()
Emitted when the folder list is changed in this wallet.
void folderUpdated(const TQString &folder)
Emitted when a folder in this wallet is updated.
virtual EntryType entryType(const TQString &key)
Determine the type of the entry key in this folder.
Definition: tdewallet.cpp:627
static Wallet * openWallet(const TQString &name, WId w=0, OpenType ot=Synchronous)
Open the wallet name.
Definition: tdewallet.cpp:173
int readPasswordList(const TQString &key, TQMap< TQString, TQString > &value)
Read the password entry key from the current folder.
Definition: tdewallet.cpp:511
virtual const TQString & currentFolder() const
Determine the current working folder in the wallet.
Definition: tdewallet.cpp:391
virtual bool isOpen() const
Determine if the current wallet is open, and is a valid wallet handle.
Definition: tdewallet.cpp:258
virtual int writeMap(const TQString &key, const TQMap< TQString, TQString > &value)
Write key = value as a map to the current folder.
Definition: tdewallet.cpp:560
static bool keyDoesNotExist(const TQString &wallet, const TQString &folder, const TQString &key)
Determine if an entry in a folder does not exist in a wallet.
Definition: tdewallet.cpp:698
static bool folderDoesNotExist(const TQString &wallet, const TQString &folder)
Determine if a folder does not exist in a wallet.
Definition: tdewallet.cpp:688
virtual int writeEntry(const TQString &key, const TQByteArray &value, EntryType entryType)
Write key = value as a binary entry to the current folder.
Definition: tdewallet.cpp:528
virtual TQStringList folderList()
Obtain the list of all folders contained in the wallet.
Definition: tdewallet.cpp:282
static int closeWallet(const TQString &name, bool force)
Close the wallet name.
Definition: tdewallet.cpp:153
virtual int writePassword(const TQString &key, const TQString &value)
Write key = value as a password to the current folder.
Definition: tdewallet.cpp:579
virtual int renameEntry(const TQString &oldName, const TQString &newName)
Rename the entry oldName to newName.
Definition: tdewallet.cpp:430
virtual bool hasEntry(const TQString &key)
Determine if the current folder has they entry key.
Definition: tdewallet.cpp:595
virtual bool setFolder(const TQString &f)
Set the current working folder to f.
Definition: tdewallet.cpp:348
static bool disconnectApplication(const TQString &wallet, const TQCString &app)
Disconnect the application app from wallet.
Definition: tdewallet.cpp:205
virtual int removeEntry(const TQString &key)
Remove the entry key from the current folder.
Definition: tdewallet.cpp:611
virtual int readPassword(const TQString &key, TQString &value)
Read the password entry key from the current folder.
Definition: tdewallet.cpp:494
static const TQString PasswordFolder()
The standardized name of the password folder.
Definition: tdewallet.cpp:64
static const TQString FormDataFolder()
The standardized name of the form data folder.
Definition: tdewallet.cpp:68
virtual const TQString & walletName() const
The name of the current wallet.
Definition: tdewallet.cpp:253
static TQStringList users(const TQString &wallet)
List the applications that are using the wallet wallet.
Definition: tdewallet.cpp:215
static void changePassword(const TQString &name, WId w=0)
Request to the wallet service to change the password of the wallet name.
Definition: tdewallet.cpp:128
virtual int readMap(const TQString &key, TQMap< TQString, TQString > &value)
Read the map entry key from the current folder.
Definition: tdewallet.cpp:446
static const TQString NetworkWallet()
The name of the wallet used to store network passwords.
Definition: tdewallet.cpp:53
virtual bool removeFolder(const TQString &f)
Remove the folder f and all its entries from the wallet.
Definition: tdewallet.cpp:371
int readEntryList(const TQString &key, TQMap< TQString, TQByteArray > &value)
Read the entries matching key from the current folder.
Definition: tdewallet.cpp:413
virtual TQStringList entryList()
Return the list of keys of all entries in this folder.
Definition: tdewallet.cpp:298
virtual bool hasFolder(const TQString &f)
Determine if the folder f exists in the wallet.
Definition: tdewallet.cpp:314
void walletOpened(bool success)
Emitted when a wallet is opened in asynchronous mode.
virtual int readEntry(const TQString &key, TQByteArray &value)
Read the entry key from the current folder.
Definition: tdewallet.cpp:396
virtual void requestChangePassword(WId w=0)
Request to the wallet service to change the password of the current wallet.
Definition: tdewallet.cpp:263
Trinity API Reference