2014-11-19 17:18:01 +00:00
|
|
|
/* 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>
|
|
|
|
|
2019-05-23 00:08:45 +00:00
|
|
|
#include <QTcpServer>
|
2014-11-19 17:18:01 +00:00
|
|
|
|
|
|
|
namespace KWallet {
|
|
|
|
class Wallet;
|
|
|
|
}
|
|
|
|
|
|
|
|
class HttpServer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
HttpServer(QWidget *parent = 0);
|
|
|
|
~HttpServer();
|
|
|
|
|
|
|
|
void settingsChanged();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void init(bool);
|
|
|
|
void handleRequest();
|
|
|
|
|
|
|
|
private:
|
|
|
|
KWallet::Wallet *m_wallet;
|
|
|
|
QTcpServer *m_tcpServer;
|
|
|
|
QString m_pwd;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|