README.md 1.54 KB
Newer Older
aseigo's avatar
aseigo committed
1 2 3 4
plasma-phone-components
=======================

UI components for Plasma Phone
5 6 7 8 9 10 11 12

Test on a development machine
=======================

Dependencies:
* KDE Frameworks 5 setup (plasma-framework and its dependencies)
* oFono https://git.kernel.org/cgit/network/ofono/ofono.git
* libqofono https://github.com/nemomobile/libqofono
star-buck's avatar
star-buck committed
13
* ofono-phonesim https://git.kernel.org/cgit/network/ofono/phonesim.git/
14 15 16 17 18 19

Phonesim will add a fake phone modem, that can be controlled via a Qt based user interface from
which it will be possible to test various aspects of the phone UI: making calls, receiving, signal strength,
send SMS and so on. It will not generate any real call, but only make the UI think a SIM is working and that
a phone call is in progress.

star-buck's avatar
star-buck committed
20
A tutorial how to start phonesim on a desktop system can be found here:
21 22
http://comments.gmane.org/gmane.comp.handhelds.ofono/12178

Marco Martin's avatar
Marco Martin committed
23
* edit /etc/ofono/phonesim.conf, uncomment everything so that it looks like
Marco Martin's avatar
Marco Martin committed
24

25 26 27 28 29 30
```
[phonesim]
Driver=phonesim
Address=127.0.0.1
Port=12345
```
Marco Martin's avatar
Marco Martin committed
31

32
* start ofonod as root
33 34 35 36
* start phonesim:
  `phonesim -p 12345 -gui /usr/share/phonesim/default.xml`
* from the oFono *source* directory, call `./test/enable-modem` to bring the modem up, the control UI should come up
* call `./test/online-modem` to activate the test phonesim modem
37 38 39 40 41 42 43
* start the phone homescreen in a window:

```
export QT_QPA_PLATFORM=wayland
dbus-run-session bash
kwin_wayland --xwayland "plasmashell -p org.kde.plasma.phone"
```
44 45

Note that the oFono/phonesim part is necessary only if it's needed to test some part specific to telephony