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

KIO

  • kio
  • kio
kpasswdserver_p.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE libraries
3 * Copyright (c) 2009 Michael Leupold <lemma@confuego.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) version 3, or any
9 * later version accepted by the membership of KDE e.V. (or its
10 * successor approved by the membership of KDE e.V.), which shall
11 * act as a proxy defined in Section 6 of version 3 of the license.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef KPASSWDSERVER_P_H
23#define KPASSWDSERVER_P_H
24
25#include <qglobal.h>
26
27class QString;
28class OrgKdeKPasswdServerInterface;
29
30namespace KIO
31{
32 class AuthInfo;
33
40class KPasswdServer
41{
42public:
43 KPasswdServer();
44 ~KPasswdServer();
45
56 bool checkAuthInfo(KIO::AuthInfo &info, qlonglong windowId,
57 qlonglong usertime);
58
70 qlonglong queryAuthInfo(KIO::AuthInfo &info, const QString &errorMsg,
71 qlonglong windowId, qlonglong seqNr,
72 qlonglong usertime);
73
79 void addAuthInfo(const KIO::AuthInfo &info, qlonglong windowId);
80
87 void removeAuthInfo(const QString &host, const QString &protocol,
88 const QString &user);
89
90private:
96 bool legacyCheckAuthInfo(KIO::AuthInfo &info, qlonglong windowId,
97 qlonglong usertime);
98
104 qlonglong legacyQueryAuthInfo(KIO::AuthInfo &info, const QString &errorMsg,
105 qlonglong windowId, qlonglong seqNr,
106 qlonglong usertime);
107
113 void legacyAddAuthInfo(const KIO::AuthInfo &info, qlonglong windowId);
114
115 OrgKdeKPasswdServerInterface *m_interface;
116};
117
118}
119
120#endif
KIO::AuthInfo
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
Definition: authinfo.h:58
KIO::KPasswdServer
Interface class for kpasswdserver.
Definition: kpasswdserver_p.h:41
KIO::KPasswdServer::checkAuthInfo
bool checkAuthInfo(KIO::AuthInfo &info, qlonglong windowId, qlonglong usertime)
Check if kpasswdserver has cached authentication information regarding an AuthInfo object.
Definition: kpasswdserver.cpp:47
KIO::KPasswdServer::removeAuthInfo
void removeAuthInfo(const QString &host, const QString &protocol, const QString &user)
Manually remove authentication information from kpasswdserver's cache.
Definition: kpasswdserver.cpp:203
KIO::KPasswdServer::addAuthInfo
void addAuthInfo(const KIO::AuthInfo &info, qlonglong windowId)
Manually add authentication information to kpasswdserver's cache.
Definition: kpasswdserver.cpp:185
KIO::KPasswdServer::queryAuthInfo
qlonglong queryAuthInfo(KIO::AuthInfo &info, const QString &errorMsg, qlonglong windowId, qlonglong seqNr, qlonglong usertime)
Let kpasswdserver ask the user for authentication information.
Definition: kpasswdserver.cpp:113
KIO::KPasswdServer::KPasswdServer
KPasswdServer()
Definition: kpasswdserver.cpp:35
KIO::KPasswdServer::~KPasswdServer
~KPasswdServer()
Definition: kpasswdserver.cpp:42
KIO
A namespace for KIO globals.
Definition: kbookmarkmenu.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • 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
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