Sayonara Player
src
Utils
WebAccess
Proxy.h
1
/* Proxy.h */
2
3
/* Copyright (C) 2011-2017 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
22
23
#ifndef PROXY_H
24
#define PROXY_H
25
26
#include "Utils/Singleton.h"
27
#include "Utils/Settings/SayonaraClass.h"
28
29
#include <QObject>
30
31
class
QString;
32
class
Proxy
:
33
public
QObject,
34
public
SayonaraClass
35
{
36
Q_OBJECT
37
SINGLETON(
Proxy
)
38
39
private
slots:
40
void
proxy_changed();
41
42
public
:
43
void
init();
44
45
QString hostname()
const
;
46
int
port()
const
;
47
QString username()
const
;
48
QString password()
const
;
49
bool
active()
const
;
50
bool
has_username()
const
;
51
52
QString full_url()
const
;
53
};
54
55
#endif // PROXY_H
SayonaraClass
The SayonaraClass class provides access to Settings and notifications.
Definition:
SayonaraClass.h:29
Proxy
Definition:
Proxy.h:32
Generated on Wed Dec 5 2018 06:51:27 for Sayonara Player by
1.8.14