|
2019-03-10
, 21:34
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#2
|
|
2019-03-10
, 22:22
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#4
|
The Following User Says Thank You to Halftux For This Useful Post: | ||
|
2019-03-11
, 18:18
|
Posts: 1,293 |
Thanked: 4,319 times |
Joined on Oct 2014
|
#5
|
|
2019-03-11
, 18:44
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#6
|
The Following User Says Thank You to Halftux For This Useful Post: | ||
|
2019-03-11
, 20:04
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#7
|
void UtService::initTestCase()
{
QVERIFY(waitForService("net.connman", "/", "net.connman.Manager"));
m_service = new NetworkService("/service0", QVariantMap(), this);
m_otherService = new NetworkService("/service0", QVariantMap(), this);
}
void UtService::testWriteProperties_data()
{
QTest::addColumn<QVariant>("newValue");
QTest::newRow("autoConnect") << QVariant(true);
QVariantMap ipv4Config;
ipv4Config["Method"] = "dhcp";
ipv4Config["Address"] = "10.0.24.24";
ipv4Config["Netmask"] = "255.255.224.0";
ipv4Config["Gateway"] = "10.0.24.1";
QTest::newRow("ipv4Config") << QVariant(ipv4Config);
QVariantMap ipv6Config;
ipv6Config["Method"] = "dhcp";
ipv6Config["Address"] = "fd30:84f5:4397:1676:d:e:a:d";
ipv6Config["PrefixLength"] = "65";
ipv6Config["Gateway"] = "fd30:84f5:4397:1676:d:e:a:1";
ipv6Config["Privacy"] = "disabled";
QTest::newRow("ipv6Config") << QVariant(ipv6Config);
QTest::newRow("nameserversConfig") << QVariant(QStringList() << "127.0.1.1" << "127.0.1.2");
QTest::newRow("domainsConfig") << QVariant(QStringList() << "foo.org" << "foo.com");
QVariantMap proxyConfig;
proxyConfig["Method"] = "auto";
proxyConfig["URL"] = "http://proxy.foo.org";
proxyConfig["Sercers"] = QStringList() << "proxy24.foo.org";
proxyConfig["Excludes"] = QStringList() << "drct1.com" << "drct2.com";
QTest::newRow("proxyConfig") << QVariant(proxyConfig);
}
void UtService::testWriteProperties()
{
QFETCH(QVariant, newValue);
testWriteProperty(m_service, m_otherService, QTest::currentDataTag(), newValue);
}
|
2019-03-11
, 22:03
|
|
Posts: 764 |
Thanked: 2,888 times |
Joined on Jun 2014
|
#8
|
The Following User Says Thank You to nthn For This Useful Post: | ||
|
2019-03-11
, 23:05
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#9
|
Tags |
connection, connman, power, switch |
|
Here is some info:
https://01.org/connman
https://wiki.archlinux.org/index.php/ConnMan
http://www.embedded-computing.com/iot/the-connman
Source code:
https://git.merproject.org/mer-core/connman
https://git.merproject.org/mer-core/libconnman-qt
https://github.com/sailfishos/sailfi...lugin-iptables
Example Internet connection through USB:
https://together.jolla.com/question/...n-through-usb/
Looking through our forum I found these bt on and off dbus commands.
https://talk.maemo.org/showpost.php?...33&postcount=4
And you can use the same for wifi and gps too. Just replace the stars with wifi, gps or bluetooth.
on
I looked in the cmst gui for connman and gave it a try. So it is a standard qt widget application so there is not so much to expect only problems and ugly look. But after a little tweeking it is working. I think partially so far I didn't test everything. So I removed the systray and replaced one combobox with listwidget.
So it is worth to look into the source code from cmst if you are interested in connman. Will add my not fully tested experimental binary. Be aware that this app runs as root!!!!
Maybe more to come in the future.
N900: gpxsee, fahrplan, gpscon, genwall, qrcode, hextool, libjansson4, libevent-2.0-5, cnee, psi-plus, mihphoto, shc
Maemo flasher/rescue live image.
Fremantle Harmattan SDK VM
Last edited by Halftux; 2019-03-11 at 20:53. Reason: added more links