mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-27 04:13:05 +00:00
35 lines
800 B
C++
35 lines
800 B
C++
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2008 Urs Wolfer <uwolfer @ kde.org>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef HTTPSERVER_H
|
|
#define HTTPSERVER_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include <khttp.h>
|
|
#include <kpasswdstore.h>
|
|
|
|
class HttpServer : public KHTTP
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
HttpServer(QWidget *parent = 0);
|
|
~HttpServer();
|
|
|
|
void settingsChanged();
|
|
|
|
protected:
|
|
void respond(const QByteArray &url, QByteArray *outdata, ushort *httpstatus, KHTTPHeaders *outheaders) final;
|
|
|
|
private:
|
|
KPasswdStore *m_passwdstore;
|
|
};
|
|
|
|
#endif // HTTPSERVER_H
|