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

KIO

  • KIO
  • KPasswdServer
Public Member Functions
KIO::KPasswdServer Class Reference

#include <kpasswdserver_p.h>

List of all members.

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.

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:
infoinformation to add
windowIdused 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:
infoinformation to check cache for
windowIdused as parent for dialogs
usertimeFIXME: 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:
infoinformation to query the user for
errorMsgerror message that will be displayed to the user
seqNrsequence number to assign to this request
windowIdused as parent for dialogs
usertimeFIXME: 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:
hosthostname of the information to remove
protocolprotocol to remove information for
userusername to remove information for

Definition at line 203 of file kpasswdserver.cpp.


The documentation for this class was generated from the following files:
  • kpasswdserver_p.h
  • kpasswdserver.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal