KIO
#include <kpasswdserver_p.h>
Public Member Functions | |
KPasswdServer () | |
~KPasswdServer () | |
void | addAuthInfo (const KIO::AuthInfo &info, qlonglong windowId) |
bool | checkAuthInfo (KIO::AuthInfo &info, qlonglong windowId, qlonglong usertime) |
qlonglong | queryAuthInfo (KIO::AuthInfo &info, const QString &errorMsg, qlonglong windowId, qlonglong seqNr, qlonglong usertime) |
void | removeAuthInfo (const QString &host, const QString &protocol, const QString &user) |
Detailed Description
Interface class for kpasswdserver.
- Remarks
- This is currently only supposed to be used by KIO::SlaveBase but might be reused as public API in the future.
Definition at line 40 of file kpasswdserver_p.h.
Constructor & Destructor Documentation
KIO::KPasswdServer::KPasswdServer | ( | ) |
Definition at line 35 of file kpasswdserver.cpp.
KIO::KPasswdServer::~KPasswdServer | ( | ) |
Definition at line 42 of file kpasswdserver.cpp.
Member Function Documentation
void KIO::KPasswdServer::addAuthInfo | ( | const KIO::AuthInfo & | info, |
qlonglong | windowId | ||
) |
Manually add authentication information to kpasswdserver's cache.
- Parameters
-
info information to add windowId used as parent window for dialogs
Definition at line 185 of file kpasswdserver.cpp.
bool KIO::KPasswdServer::checkAuthInfo | ( | KIO::AuthInfo & | info, |
qlonglong | windowId, | ||
qlonglong | usertime | ||
) |
Check if kpasswdserver has cached authentication information regarding an AuthInfo object.
- Parameters
-
info information to check cache for windowId used as parent for dialogs usertime FIXME: I'd like to know as well :)
- Returns
- true if kpasswdserver provided cached information, false if not
- Remarks
- info will contain the results of the check. To see if information was retrieved, check info.isModified().
Definition at line 47 of file kpasswdserver.cpp.
qlonglong KIO::KPasswdServer::queryAuthInfo | ( | KIO::AuthInfo & | info, |
const QString & | errorMsg, | ||
qlonglong | windowId, | ||
qlonglong | seqNr, | ||
qlonglong | usertime | ||
) |
Let kpasswdserver ask the user for authentication information.
- Parameters
-
info information to query the user for errorMsg error message that will be displayed to the user seqNr sequence number to assign to this request windowId used as parent for dialogs usertime FIXME: I'd like to know as well :)
- Returns
- kpasswdserver's sequence number or -1 on error
- Remarks
- info will contain the results of the check. To see if information was retrieved, check info.isModified().
Definition at line 113 of file kpasswdserver.cpp.
void KIO::KPasswdServer::removeAuthInfo | ( | const QString & | host, |
const QString & | protocol, | ||
const QString & | user | ||
) |
Manually remove authentication information from kpasswdserver's cache.
- Parameters
-
host hostname of the information to remove protocol protocol to remove information for user username to remove information for
Definition at line 203 of file kpasswdserver.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.