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

KIO

  • kio
  • kio
kpasswdserverloop_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 KPASSWDSERVERLOOP_P_H
23#define KPASSWDSERVERLOOP_P_H
24
25#include <kio/authinfo.h>
26#include <QtCore/QByteArray>
27#include <QtCore/QEventLoop>
28
29namespace KIO {
30
31// Wait for the result of an asynchronous D-Bus request to KPasswdServer.
32// Objects of this class are one-way ie. as soon as they have received
33// a result you can't call waitForResult() again.
34class KPasswdServerLoop : public QEventLoop
35{
36 Q_OBJECT
37
38public:
39 KPasswdServerLoop();
40 virtual ~KPasswdServerLoop();
41 bool waitForResult(qlonglong requestId);
42
43 qlonglong seqNr() const;
44 const AuthInfo &authInfo() const;
45
46public Q_SLOTS:
47 void slotQueryResult(qlonglong requestId, qlonglong seqNr, const KIO::AuthInfo &authInfo);
48
49private Q_SLOTS:
50 void kdedServiceUnregistered();
51
52private:
53 qlonglong m_requestId;
54 qlonglong m_seqNr;
55 AuthInfo m_authInfo;
56};
57
58}
59
60#endif
authinfo.h
KIO::AuthInfo
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
Definition: authinfo.h:58
KIO::KPasswdServerLoop
Definition: kpasswdserverloop_p.h:35
KIO::KPasswdServerLoop::KPasswdServerLoop
KPasswdServerLoop()
Definition: kpasswdserverloop.cpp:30
KIO::KPasswdServerLoop::waitForResult
bool waitForResult(qlonglong requestId)
Definition: kpasswdserverloop.cpp:42
KIO::KPasswdServerLoop::seqNr
qlonglong seqNr() const
Definition: kpasswdserverloop.cpp:50
KIO::KPasswdServerLoop::~KPasswdServerLoop
virtual ~KPasswdServerLoop()
Definition: kpasswdserverloop.cpp:38
KIO::KPasswdServerLoop::slotQueryResult
void slotQueryResult(qlonglong requestId, qlonglong seqNr, const KIO::AuthInfo &authInfo)
Definition: kpasswdserverloop.cpp:60
KIO::KPasswdServerLoop::authInfo
const AuthInfo & authInfo() const
Definition: kpasswdserverloop.cpp:55
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