tdewallet.cpp
86 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "walletClosed(int)", "slotWalletClosed(int)", false);
87 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderListUpdated(TQString)", "slotFolderListUpdated(TQString)", false);
88 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "folderUpdated(TQString, TQString)", "slotFolderUpdated(TQString, TQString)", false);
89 connectDCOPSignal(_dcopRef->app(), _dcopRef->obj(), "applicationDisconnected(TQString, TQCString)", "slotApplicationDisconnected(TQString, TQCString)", false);
469 int Wallet::readMapList(const TQString& key, TQMap<TQString, TQMap<TQString, TQString> >& value) {
480 for (TQMap<TQString,TQByteArray>::ConstIterator i = unparsed.begin(); i != unparsed.end(); ++i) {
665 void Wallet::slotApplicationDisconnected(const TQString& wallet, const TQCString& application) {
699 bool 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:469
virtual int sync()
This syncs the wallet file on disk with what is in memory.
Definition: tdewallet.cpp:226
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:628
static Wallet * openWallet(const TQString &name, WId w=0, OpenType ot=Synchronous)
Open the wallet name.
Definition: tdewallet.cpp:174
int readPasswordList(const TQString &key, TQMap< TQString, TQString > &value)
Read the password entry key from the current folder.
Definition: tdewallet.cpp:512
virtual const TQString & currentFolder() const
Determine the current working folder in the wallet.
Definition: tdewallet.cpp:392
virtual bool isOpen() const
Determine if the current wallet is open, and is a valid wallet handle.
Definition: tdewallet.cpp:259
virtual int writeMap(const TQString &key, const TQMap< TQString, TQString > &value)
Write key = value as a map to the current folder.
Definition: tdewallet.cpp:561
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:699
static bool folderDoesNotExist(const TQString &wallet, const TQString &folder)
Determine if a folder does not exist in a wallet.
Definition: tdewallet.cpp:689
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:529
virtual TQStringList folderList()
Obtain the list of all folders contained in the wallet.
Definition: tdewallet.cpp:283
static int closeWallet(const TQString &name, bool force)
Close the wallet name.
Definition: tdewallet.cpp:154
virtual int writePassword(const TQString &key, const TQString &value)
Write key = value as a password to the current folder.
Definition: tdewallet.cpp:580
virtual int renameEntry(const TQString &oldName, const TQString &newName)
Rename the entry oldName to newName.
Definition: tdewallet.cpp:431
virtual bool hasEntry(const TQString &key)
Determine if the current folder has they entry key.
Definition: tdewallet.cpp:596
static const TQString LocalWallet()
The name of the wallet used to store local passwords.
Definition: tdewallet.cpp:36
virtual bool setFolder(const TQString &f)
Set the current working folder to f.
Definition: tdewallet.cpp:349
static bool disconnectApplication(const TQString &wallet, const TQCString &app)
Disconnect the application app from wallet.
Definition: tdewallet.cpp:206
virtual int removeEntry(const TQString &key)
Remove the entry key from the current folder.
Definition: tdewallet.cpp:612
virtual int readPassword(const TQString &key, TQString &value)
Read the password entry key from the current folder.
Definition: tdewallet.cpp:495
static const TQString PasswordFolder()
The standardized name of the password folder.
Definition: tdewallet.cpp:65
static const TQString FormDataFolder()
The standardized name of the form data folder.
Definition: tdewallet.cpp:69
virtual const TQString & walletName() const
The name of the current wallet.
Definition: tdewallet.cpp:254
static TQStringList users(const TQString &wallet)
List the applications that are using the wallet wallet.
Definition: tdewallet.cpp:216
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:129
virtual int readMap(const TQString &key, TQMap< TQString, TQString > &value)
Read the map entry key from the current folder.
Definition: tdewallet.cpp:447
static const TQString NetworkWallet()
The name of the wallet used to store network passwords.
Definition: tdewallet.cpp:54
virtual bool removeFolder(const TQString &f)
Remove the folder f and all its entries from the wallet.
Definition: tdewallet.cpp:372
int readEntryList(const TQString &key, TQMap< TQString, TQByteArray > &value)
Read the entries matching key from the current folder.
Definition: tdewallet.cpp:414
virtual TQStringList entryList()
Return the list of keys of all entries in this folder.
Definition: tdewallet.cpp:299
virtual bool hasFolder(const TQString &f)
Determine if the folder f exists in the wallet.
Definition: tdewallet.cpp:315
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:397
virtual void requestChangePassword(WId w=0)
Request to the wallet service to change the password of the current wallet.
Definition: tdewallet.cpp:264