Re: [SailfishDevel] Device IP address

2016-05-16 Thread Riku Lahtinen

Hi!

I would try a dbus approach. More info can be found from 
https://together.jolla.com/question/80828/enable-mobile-data-with-command-line/


You can check the info what is avalable with the command dbus-send 
--system --type=method_call --print-reply --dest=net.connman / 
net.connman.Manager.GetServices


My messy code to get other info from this message can be found from here
https://github.com/Rikujolla/oontoissa/blob/master/qml/harbour-oontoissa.qml

I would start the reading of the code from line 139

Riku


11.05.2016, 18:48, Matthias Fehring kirjoitti:

Hello list,

I am searching for a way to get the currently used IP address of the device.
Is there a Qt-way or some Sailfish/Mer specific API?

Best greetings
Matthias Fehring



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Device IP address

2016-05-12 Thread Mike Maslenkin
On Thu, 2016-05-12 at 07:45 +0200, Matthias Fehring wrote:
> Ifconfig seems to be only accessible by user root.
ip -o addr 

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Device IP address

2016-05-12 Thread Alexander Ladygin
/sbin/ifconfig ? should be available for nemo

On Thu, May 12, 2016 at 7:45 AM, Matthias Fehring <
buschm...@huessenbergnetz.de> wrote:

> Ifconfig seems to be only accessible by user root.
>
> And I hoped for a more direct approach as QNetworkInterface::allAddresses
> :)
>
> But I will then go with that.
>
> Best greetings
> Matthias Fehring
>
> Am Donnerstag, 12. Mai 2016, 01:40:30 CEST schrieb E.S. Rosenberg:
> > ifconfig?
> > If QNetworkInterface is available you should have
> > http://doc.qt.io/qt-5/qnetworkinterface.html#allAddresses
> >
> > (I think it probably is since it's most likely part of qnetwork which is
> > listed as available).
> >
> > 2016-05-11 18:48 GMT+03:00 Matthias Fehring <
> buschm...@huessenbergnetz.de>:
> > > Hello list,
> > >
> > > I am searching for a way to get the currently used IP address of the
> > > device.
> > > Is there a Qt-way or some Sailfish/Mer specific API?
> > >
> > > Best greetings
> > > Matthias Fehring
> > >
> > > --
> > > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden
> wäre.
> > > (Friedrich Schiller - Die Räuber)
> > >
> > > Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".
> > >
> > > www.buschmann23.de
> > > GPG-Key: 0x614C3258
> > > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > >
> > > ___
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to
> > > devel-unsubscr...@lists.sailfishos.org
>
>
> --
> Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> (Friedrich Schiller - Die Räuber)
>
> Und der Buschfunk spielt gerade mal nichts...
>
> www.buschmann23.de
> GPG-Key: 0x614C3258
> GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Device IP address

2016-05-11 Thread Matthias Fehring
Ifconfig seems to be only accessible by user root.

And I hoped for a more direct approach as QNetworkInterface::allAddresses :)

But I will then go with that.

Best greetings
Matthias Fehring

Am Donnerstag, 12. Mai 2016, 01:40:30 CEST schrieb E.S. Rosenberg:
> ifconfig?
> If QNetworkInterface is available you should have
> http://doc.qt.io/qt-5/qnetworkinterface.html#allAddresses
> 
> (I think it probably is since it's most likely part of qnetwork which is
> listed as available).
> 
> 2016-05-11 18:48 GMT+03:00 Matthias Fehring :
> > Hello list,
> > 
> > I am searching for a way to get the currently used IP address of the
> > device.
> > Is there a Qt-way or some Sailfish/Mer specific API?
> > 
> > Best greetings
> > Matthias Fehring
> > 
> > --
> > Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> > (Friedrich Schiller - Die Räuber)
> > 
> > Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".
> > 
> > www.buschmann23.de
> > GPG-Key: 0x614C3258
> > GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
> > 
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org


-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade mal nichts...

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Device IP address

2016-05-11 Thread E.S. Rosenberg
ifconfig?
If QNetworkInterface is available you should have
http://doc.qt.io/qt-5/qnetworkinterface.html#allAddresses

(I think it probably is since it's most likely part of qnetwork which is
listed as available).

2016-05-11 18:48 GMT+03:00 Matthias Fehring :

> Hello list,
>
> I am searching for a way to get the currently used IP address of the
> device.
> Is there a Qt-way or some Sailfish/Mer specific API?
>
> Best greetings
> Matthias Fehring
>
> --
> Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
> (Friedrich Schiller - Die Räuber)
>
> Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".
>
> www.buschmann23.de
> GPG-Key: 0x614C3258
> GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Device IP address

2016-05-11 Thread Matthias Fehring
Hello list, 

I am searching for a way to get the currently used IP address of the device. 
Is there a Qt-way or some Sailfish/Mer specific API?

Best greetings
Matthias Fehring

-- 
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Shadow Of The Dead" von "Anti-Flag".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org