summaryrefslogtreecommitdiffstats
path: root/network/network.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-03-23rework message hierarchyRaquel Medina1-86/+130
Rework message hierarchy with the final objective of splitting libqtappfw into several libraries. This commit carries the following changes: - Simplify message hierarchy, keeping abstract Message class, adding specialization for call and event messages, keeping ResponseMessage, and removing all module specific specializations. - Add MessageFactory class to create message objects. - Change messages life cycle: using smart pointers and removing QObject from message hierarchy (a Message is not a QObject anymore and thus 'deleteLater()' is not available). - Adapt all modules to use new message hierarchy. - Keep ResponseMessage original constructor to avoid breaking TaskManager. - Message constructors have been kept public, but will go private on a follow-up patch (once TaskManager class has been modified to use new MessageFactory). Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I3a7a6325209ddeca2293f1ac745371861a947bfb
2020-03-09eliminate unneeded dependencies on public headersRaquel Medina1-5/+7
- Remove unneeded dependencies from libqtappfw public headers, specifically MessageEngine and Message hierarchy header files, in preparation for refactoring work on these areas. This change helps shield client apps from the upcoming changes in the library, and highlight the separation between the library's core and the various modules providing public interfaces to those apps. - Make MessageType an scoped enum to fwd declare it. - Update Copyright statement on files updated by this patch. Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I12fd9cdc034aa1166f6448c07befadd9d2042b05
2019-09-12network: fix arguments on set_properties callsRaquel Medina1-5/+8
Update set_properties method arguments to match agl-service-network binding expectations. Bug-AGL: SPEC-2676 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I4e4c1c633193270ad14a517fd33eff6bf26b00d3
2019-09-10wired: add hooks for addressing configurationRaquel Medina1-0/+44
- Add new roles to provide UI clients with the active configuration (values obtained from the stack: agl-service-network binding + connman). - Add Q_INVOKABLE methods to feed new values from the UI client. SPEC-2676 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Id239ddc549ec8471d44d56f7631d4e9e3efda798
2019-07-19libqtappfw: network: improve error checksRaquel Medina1-4/+3
- include extra checks for error conditions - remove some tabs and unused variable Bug-AGL: SPEC-2636 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I28b38c77979175236a7b115a0f4263840c70eb94
2019-06-18network: add wired adapter & modelRaquel Medina1-9/+10
-Add WiredAdapter implementation -Add WiredNetworkModel implementation Bug-AGL: SPEC-2293 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ibed93ae3a3cca1bc8e7a23c872c7ab3b8271e586
2019-06-11network: fix warning on return pathRaquel Medina1-0/+1
There's no return value if the WifiAdapter is not found and thus the compiler warning. Bug-AGL: SPEC-2293 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I59a2e5e7a86c845669b673753ec97dbaee0fc5ab
2019-05-16libqtappfw: pbap: switch to vcard processing done in bindingMatt Ranostay1-2/+0
agl-service-bluetooth-pbap now outputs JSON data of processed vCard information, and now libvcard is no longer needed. Bug-AGL: SPEC-2392 Change-Id: Ice1ec6e1a22687f4839fd3e8a286d279d8a4f586 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-05-13network: refactor network classRaquel Medina1-110/+64
Refactor network class to prepare for wired connections. - extract Wifi model and flags into new WifiAdapter class - fix wifi networks disappearing for prolonged periods after disconnecting from a wifi service (this issue is intermittent, depends on the wifi signal variability) Bug-AGL: SPEC-2293 Change-Id: I75f3076d094daa9c8d04e05fe2944df98f5cfb81 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2019-02-28libqtappfw: network: add invalidPassphrase signalMatt Ranostay1-0/+4
Report invalid passphrases to clients via a signal Bug-AGL: SPEC-2183 Change-Id: I98d34942427bf971663bac23a30be35aa2ae8dea Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-02-27libqtappfw: network: sort WiFI model by SSIDMatt Ranostay1-1/+7
To allow ease of scrolling through WiFi discovery list by sorting on SSID. Change-Id: I1a8c369b4215177b93e6c584fd50f12d091de7d4 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-02-27libqtappfw: network: add remove() method for removal of servicesMatt Ranostay1-0/+12
Bug-AGL: SPEC-2184 Change-Id: Ic9b4513dd7f63f02a6012170225a4993555006c1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-12libqtappfw: remove deleteLater instances that aren't usedguppy_6.90.0guppy/6.90.06.90.0Matt Ranostay1-10/+10
Remove several deleteLater calls that should have been delete's. This should solve race conditions that an object calls deleteLater(), and leaves scope before the QT main loop is called. Outcome of the race condition is that sometimes the memory allocator reallocates it to another message and causes a crash. Bug-AGL: SPEC-1680 Change-Id: Ic83d8c6c204c6e3248bbe9a9def1842e1e384b2b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-27network: add wifiStrength propertyMatt Porter1-1/+12
Add a wifiStrength property which exposes the signal strength of the currently connected network. This is intended to be used by global status indicators, such as a status bar WiFi strength indicator. Bug-AGL: SPEC-1626 Change-Id: I7285b04095bc67278c862fc363a2dfbfff57d44d Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-25network: add network modelMatt Porter1-0/+324
Add the top-level network model. Supports connect, disconnect, power, and input invokables. Supports high-level WiFi enabled (powered) and connection status properties. Exposes the ConnMan-managed WiFi network list to QML. Bug-AGL: SPEC-1541 Change-Id: I623579aa6753ece4b4c0b78adef528732e1b41f3 Signed-off-by: Matt Porter <mporter@konsulko.com>