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

KIO

  • sources
  • kde-4.12
  • kdelibs
  • 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 
27 class QString;
28 class OrgKdeKPasswdServerInterface;
29 
30 namespace KIO
31 {
32  class AuthInfo;
33 
40 class KPasswdServer
41 {
42 public:
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 
90 private:
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::KPasswdServer::~KPasswdServer
~KPasswdServer()
Definition: kpasswdserver.cpp:42
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::AuthInfo
This class is intended to make it easier to prompt for, cache and retrieve authorization information...
Definition: authinfo.h:57
QString
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::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
Interface class for kpasswdserver.
Definition: kpasswdserver_p.h:40
KIO::KPasswdServer::KPasswdServer
KPasswdServer()
Definition: kpasswdserver.cpp:35
KIO::KPasswdServer::addAuthInfo
void addAuthInfo(const KIO::AuthInfo &info, qlonglong windowId)
Manually add authentication information to kpasswdserver's cache.
Definition: kpasswdserver.cpp:185
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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