KIO
kpasswdserver_p.h
Go to the documentation of this file.
00001 /* 00002 * This file is part of the KDE libraries 00003 * Copyright (c) 2009 Michael Leupold <lemma@confuego.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) version 3, or any 00009 * later version accepted by the membership of KDE e.V. (or its 00010 * successor approved by the membership of KDE e.V.), which shall 00011 * act as a proxy defined in Section 6 of version 3 of the license. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 #ifndef KPASSWDSERVER_P_H 00023 #define KPASSWDSERVER_P_H 00024 00025 #include <qglobal.h> 00026 00027 class QString; 00028 class OrgKdeKPasswdServerInterface; 00029 00030 namespace KIO 00031 { 00032 class AuthInfo; 00033 00040 class KPasswdServer 00041 { 00042 public: 00043 KPasswdServer(); 00044 ~KPasswdServer(); 00045 00056 bool checkAuthInfo(KIO::AuthInfo &info, qlonglong windowId, 00057 qlonglong usertime); 00058 00070 qlonglong queryAuthInfo(KIO::AuthInfo &info, const QString &errorMsg, 00071 qlonglong windowId, qlonglong seqNr, 00072 qlonglong usertime); 00073 00079 void addAuthInfo(const KIO::AuthInfo &info, qlonglong windowId); 00080 00087 void removeAuthInfo(const QString &host, const QString &protocol, 00088 const QString &user); 00089 00090 private: 00096 bool legacyCheckAuthInfo(KIO::AuthInfo &info, qlonglong windowId, 00097 qlonglong usertime); 00098 00104 qlonglong legacyQueryAuthInfo(KIO::AuthInfo &info, const QString &errorMsg, 00105 qlonglong windowId, qlonglong seqNr, 00106 qlonglong usertime); 00107 00113 void legacyAddAuthInfo(const KIO::AuthInfo &info, qlonglong windowId); 00114 00115 OrgKdeKPasswdServerInterface *m_interface; 00116 }; 00117 00118 } 00119 00120 #endif
KDE 4.6 API Reference