KDSoapAuthentication.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDSOAPAUTHENTICATION_H
00024 #define KDSOAPAUTHENTICATION_H
00025
00026 #include "KDSoapGlobal.h"
00027 #include <QUrl>
00028 class QAuthenticator;
00029 class QNetworkReply;
00030
00038 class KDSOAP_EXPORT KDSoapAuthentication
00039 {
00040 public:
00044 KDSoapAuthentication();
00048 KDSoapAuthentication(const KDSoapAuthentication& other);
00052 ~KDSoapAuthentication();
00053
00057 void setUser(const QString& user);
00061 QString user() const;
00062
00066 void setPassword(const QString& password);
00070 QString password() const;
00071
00076 bool hasAuth() const;
00077
00081 KDSoapAuthentication& operator=(const KDSoapAuthentication& other);
00082
00086 void handleAuthenticationRequired(QNetworkReply* reply, QAuthenticator* authenticator);
00087
00088 private:
00089 class Private;
00090 Private * const d;
00091 };
00092
00093 #endif // KDSOAPAUTHENTICATION_H