• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
  • WalletInterface
Public Member Functions | Static Public Member Functions | List of all members
KTp::WalletInterface Class Reference

#include <wallet-interface.h>

Public Member Functions

QString entry (const Tp::AccountPtr &account, const QString &key)
bool hasEntry (const Tp::AccountPtr &account, const QString &key)
bool hasPassword (const Tp::AccountPtr &account)
bool isOpen ()
bool lastLoginFailed (const Tp::AccountPtr &account)
QString password (const Tp::AccountPtr &account)
void removeAccount (const Tp::AccountPtr &account)
void removeAllEntries (const Tp::AccountPtr &account)
void removeEntry (const Tp::AccountPtr &account, const QString &key)
void removePassword (const Tp::AccountPtr &account)
void setEntry (const Tp::AccountPtr &account, const QString &key, const QString &value)
void setLastLoginFailed (const Tp::AccountPtr &account, bool failed)
void setPassword (const Tp::AccountPtr &account, const QString &password)
KWallet::Wallet * wallet () const

Static Public Member Functions

static KTp::PendingWallet * openWallet ()

Detailed Description

Class wraps interface around KWallet.

A singleton is used to make sure that the wallet is only even opened once if multiple instances of this class are used throughout the application

Definition at line 43 of file wallet-interface.h.

Member Function Documentation

QString WalletInterface::entry ( const Tp::AccountPtr &  account,
const QString &  key 
)

Returns the stored entry for the given account.

Definition at line 198 of file wallet-interface.cpp.

bool WalletInterface::hasEntry ( const Tp::AccountPtr &  account,
const QString &  key 
)

Returns true if a given entry is stored for the given account.

Definition at line 180 of file wallet-interface.cpp.

bool WalletInterface::hasPassword ( const Tp::AccountPtr &  account)

Returns true if a password is stored for the given account.

Definition at line 103 of file wallet-interface.cpp.

bool WalletInterface::isOpen ( )

Determine if the wallet is open, and is a valid wallet handle.

Definition at line 285 of file wallet-interface.cpp.

bool WalletInterface::lastLoginFailed ( const Tp::AccountPtr &  account)

Returns whether using the password failed.

Definition at line 161 of file wallet-interface.cpp.

KTp::PendingWallet * WalletInterface::openWallet ( )
static

Tries to open the wallet.

Op contains a pointer to the wallet operation interface

Definition at line 74 of file wallet-interface.cpp.

QString WalletInterface::password ( const Tp::AccountPtr &  account)

Returns the stored password for the given account.

Definition at line 113 of file wallet-interface.cpp.

void WalletInterface::removeAccount ( const Tp::AccountPtr &  account)

Remove entries and password for the account from kwallet.

Definition at line 279 of file wallet-interface.cpp.

void WalletInterface::removeAllEntries ( const Tp::AccountPtr &  account)

Remove all the entries for the given account from kwallet.

Definition at line 269 of file wallet-interface.cpp.

void WalletInterface::removeEntry ( const Tp::AccountPtr &  account,
const QString &  key 
)

Remove the entry for the given account from kwallet.

Definition at line 243 of file wallet-interface.cpp.

void WalletInterface::removePassword ( const Tp::AccountPtr &  account)

Remove the password for the given account from kwallet.

Definition at line 169 of file wallet-interface.cpp.

void WalletInterface::setEntry ( const Tp::AccountPtr &  account,
const QString &  key,
const QString &  value 
)

Set an entry for the given account to a new value.

Definition at line 217 of file wallet-interface.cpp.

void WalletInterface::setLastLoginFailed ( const Tp::AccountPtr &  account,
bool  failed 
)

Sets whether using the password failed.

Definition at line 150 of file wallet-interface.cpp.

void WalletInterface::setPassword ( const Tp::AccountPtr &  account,
const QString &  password 
)

Set the password for the given account to a new password.

Definition at line 131 of file wallet-interface.cpp.

KWallet::Wallet * WalletInterface::wallet ( ) const

Raw access to the underlying wallet.

Should not be used.

Definition at line 290 of file wallet-interface.cpp.


The documentation for this class was generated from the following files:
  • wallet-interface.h
  • wallet-interface.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal