KShowMail – show mails on a POP3 server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0KB

  1. //
  2. // C++ Interface: tdewalletaccess
  3. //
  4. // Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
  5. //
  6. // Copyright: See COPYING file that comes with this distribution
  7. //
  8. //
  9. #ifndef KWALLETACCESS_H
  10. #define KWALLETACCESS_H
  11. //TQt headers
  12. #include <ntqstring.h>
  13. //KDE headers
  14. #include <tdewallet.h>
  15. #include <tdemessagebox.h>
  16. #include <kdebug.h>
  17. #include <tdelocale.h>
  18. /**
  19. * @brief Provides routines to save and read passwords using TDEWallet.
  20. * @author Ulrich Weigelt <ulrich.weigelt@gmx.de>
  21. */
  22. namespace TDEWalletAccess
  23. {
  24. /**
  25. * Saves the given password into TDEWallet.
  26. * @param account account name
  27. * @param password the password
  28. * @return TRUE - password successfully saved
  29. * @return FALSE - password could not be saved
  30. */
  31. bool savePassword( const TQString& account, const TQString& password );
  32. /**
  33. * Returns the password of the given account.
  34. * @param account account name
  35. * @return the password or TQString::null, if the sought password is not stored in TDEWallet.
  36. */
  37. TQString getPassword( const TQString& account );
  38. }
  39. #endif