~kvalo/indicator-network/bug-736673

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
indicator-network - UI for Connection Mananager (connman)

indicator-network is a user interface for Connection Manager and also
uses the indicator framework. The source code consists of three
components, all are under src directory.

src/indicator contains the module running inside indicator, for
example indicator-applet in gnome panel. There's also a custom widget
service-menuitem for showing networks in the network menu.

src/backend contains a separate daemon running as a backend process.
The name of process is indicator-network-service, but it will be
renamed at some point. The process uses dbusmenu to show the network
menu in the indicator.

The description of various backend classes is:

o manager: creates other objects needed and manages connman
  disconnections

o manager-proxy: a dbus proxy for handling dbus interface between the
  indicator and backend

o network-menu: manages the network menu using dbusmenu and handles
  all events related to the menu

o ofono-manager: manages all communication to ofono

o service: dbusmenu menuitem for a network (called as service in
  connman)

o service-manager: manages all services related tasks, for example
  service (ie. network) updates

o ui-proxy: proxy for the ui process, shows different dialogs

src/agent contains code showing dialogs. It will be renamed to src/ui
at some point.

There's also scripts/indicator-network-settings to show various
network settings to the user and
scripts/indicator-network-mobile-wizard which will be started when a
new unconfigured modem is inserted.

Unit tests are in tests and can be run with 'make check'.

For testing indicator-network there are connman-mock and ofono-mock in
tests/connman-mock directory. These can be used as fake connmand and
ofonod daemons and make it easier to test special cases.