File: httpserver.h

package info (click to toggle)
kget 4%3A16.08.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,440 kB
  • ctags: 4,323
  • sloc: cpp: 37,020; xml: 341; python: 290; perl: 41; sh: 11; makefile: 4
file content (42 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* 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>

class QTcpServer;

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