kde-extraapps/kget/extensions/webinterface/httpserver.h
Ivailo Monev 9d6895e488 generic: port to KPasswdStore
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-05 01:40:28 +03:00

38 lines
754 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 <QTcpServer>
#include <kpasswdstore.h>
class HttpServer : public QObject
{
Q_OBJECT
public:
HttpServer(QWidget *parent = 0);
~HttpServer();
void settingsChanged();
private slots:
void handleRequest();
private:
KPasswdStore *m_passwdstore;
QTcpServer *m_tcpServer;
QString m_pwd;
};
#endif