Commit 37300dcc authored by Martin Kampas's avatar Martin Kampas

[ssu] Get proxy configuration from connman

parent b48fad8e
......@@ -10,7 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include <connman-qt5/connmannetworkproxyfactory.h>
#include "rndssucli.h"
int main(int argc, char** argv){
......@@ -24,7 +24,7 @@ int main(int argc, char** argv){
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);
QNetworkProxyFactory::setUseSystemConfiguration(true);
QNetworkProxyFactory::setApplicationProxyFactory(new ConnmanNetworkProxyFactory);
RndSsuCli mw;
QTimer::singleShot(0, &mw, SLOT(run()));
......
......@@ -3,6 +3,8 @@ include(../ssuapplication.pri)
include(rndssucli_dependencies.pri)
QT += network dbus
CONFIG += link_pkgconfig
PKGCONFIG += connman-qt5
HEADERS = rndssucli.h \
ssuproxy.h
......
......@@ -16,6 +16,7 @@ BuildRequires: pkgconfig(Qt5SystemInfo)
BuildRequires: pkgconfig(libzypp)
BuildRequires: pkgconfig(libsystemd-journal)
BuildRequires: pkgconfig(libshadowutils)
BuildRequires: pkgconfig(connman-qt5)
BuildRequires: oneshot
BuildRequires: doxygen
Requires(pre): shadow-utils
......
......@@ -9,7 +9,7 @@
#include <QTranslator>
#include <QLocale>
#include <QLibraryInfo>
#include <QNetworkProxyFactory>
#include <connman-qt5/connmannetworkproxyfactory.h>
#include "ssud.h"
int main(int argc, char** argv){
......@@ -23,7 +23,7 @@ int main(int argc, char** argv){
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);
QNetworkProxyFactory::setUseSystemConfiguration(true);
QNetworkProxyFactory::setApplicationProxyFactory(new ConnmanNetworkProxyFactory);
Ssud ssud;
......
......@@ -3,6 +3,8 @@ include(../ssuapplication.pri)
include(ssud_dependencies.pri)
QT += network dbus
CONFIG += link_pkgconfig
PKGCONFIG += connman-qt5
HEADERS = ssuadaptor.h \
ssud.h
......
......@@ -10,7 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include <connman-qt5/connmannetworkproxyfactory.h>
#include "ssuurlresolver.h"
int main(int argc, char** argv){
......@@ -24,7 +24,7 @@ int main(int argc, char** argv){
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);
QNetworkProxyFactory::setUseSystemConfiguration(true);
QNetworkProxyFactory::setApplicationProxyFactory(new ConnmanNetworkProxyFactory);
SsuUrlResolver mw;
QTimer::singleShot(0, &mw, SLOT(run()));
......
......@@ -7,6 +7,8 @@ DESTDIR = $$DESTDIR_LIB/zypp/plugins/urlresolver
target.path = /usr/lib/zypp/plugins/urlresolver
QT += network
CONFIG += link_pkgconfig
PKGCONFIG += connman-qt5
HEADERS = ssuurlresolver.h
SOURCES = main.cpp \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment