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.0 KiB
46 lines
1.0 KiB
11 years ago
|
//
|
||
11 years ago
|
// C++ Interface: tdewalletaccess
|
||
11 years ago
|
//
|
||
|
// Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
|
||
|
//
|
||
|
// Copyright: See COPYING file that comes with this distribution
|
||
|
//
|
||
|
//
|
||
|
#ifndef KWALLETACCESS_H
|
||
|
#define KWALLETACCESS_H
|
||
|
|
||
11 years ago
|
//TQt headers
|
||
|
#include <ntqstring.h>
|
||
11 years ago
|
|
||
|
//KDE headers
|
||
11 years ago
|
#include <tdewallet.h>
|
||
|
#include <tdemessagebox.h>
|
||
11 years ago
|
#include <kdebug.h>
|
||
11 years ago
|
#include <tdelocale.h>
|
||
11 years ago
|
|
||
|
/**
|
||
|
* @brief Provides routines to save and read passwords using KWallet.
|
||
|
* @author Ulrich Weigelt <ulrich.weigelt@gmx.de>
|
||
|
*/
|
||
|
namespace KWalletAccess
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Saves the given password into KWallet.
|
||
|
* @param account account name
|
||
|
* @param password the password
|
||
|
* @return TRUE - password successfully saved
|
||
|
* @return FALSE - password could not be saved
|
||
|
*/
|
||
11 years ago
|
bool savePassword( const TQString& account, const TQString& password );
|
||
11 years ago
|
|
||
|
/**
|
||
|
* Returns the password of the given account.
|
||
|
* @param account account name
|
||
11 years ago
|
* @return the password or TQString::null, if the sought password is not stored in KWallet.
|
||
11 years ago
|
*/
|
||
11 years ago
|
TQString getPassword( const TQString& account );
|
||
11 years ago
|
}
|
||
|
|
||
|
#endif
|