summaryrefslogtreecommitdiffstats
path: root/pbap/pbap.h
AgeCommit message (Collapse)AuthorFilesLines
2022-02-15Re-enable telephony and radio stub librariesScott Murray1-12/+2
Add the radio, telephony, pbap, and map libraries back to the build by stubbing out their implementations for now. This should enable getting the related apps building without the application framework and hopefully simplify further rework of the backend functionality here with respect to AGL CI. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9c7cae9f34a9fd332a11914bcb6ee123b840d5a1
2020-05-04share MessageEngine instanceRaquel Medina1-1/+1
Share MessageEngine instance among clients in the same process using a common socket (same url). - add MessageEngineFactory class; - extend std::unordered_map<> to use QString as key; - use std::shared_ptr<MessageEngine> to share ownership among MessageEngineFactory and the engine clients; - force MessagEngine parent object null to avoid life cycle dependency on a parent; - protect insertions & deletions in m_calls map; Also, not directly related but as part of testing these changes: cleanup on voice to remove superflous model sorting (there's just one voice model for alexa voice agent). Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Ie2304453dc37723dac13d256286eeb85f84ca2ab
2020-03-23rework message hierarchyRaquel Medina1-3/+2
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-3/+5
- 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-06-19libqtappfw: pbap: add import verb for contactsMatt Ranostay1-0/+1
To allow the switch from on every connection of updating the contact info to per UI request of syncing. This patchset adds the 'import' verb call. OBEX transfer are very slow and ineffective for redundant data. Also max_entries parameter is still left in for backwards compatiblity but not used in the actual binding call. Bug-AGL: SPEC-2541 Change-Id: I94e43b1fb5f6eeae3efde7d14ce7c3816cebe0ad Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-05-16libqtappfw: pbap: switch to vcard processing done in bindingMatt Ranostay1-2/+2
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>
2018-12-27libqtappfw: pbap: add VC_PHOTO support to contactsMatt Ranostay1-1/+5
Provide photo support for a contacts vCard data Bug-AGL: SPEC-2088 Change-Id: Ia193a26acb4c829c09f3e57944b8e3d0e550de19 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-06-26pbap: add PBAP data backed ContactsModelflounder_5.99.1flounder/5.99.15.99.1Matt Porter1-5/+17
Expose the PBAP phonebook as a QList of Contact QObjects. Each contact has a variable amount of PhoneNumber objects exposed as a list property. PhoneNumber objects carry both the value and type of phone entry (mobile, work, etc.) Bug-AGL: SPEC-1436 Change-Id: Id22f394c13fd842e36c7866342ed7785b243a27b Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-06-26pbap: sort and trim contact listMatt Porter1-0/+1
Sort the contacts list alphabetically and trim out bogus entries. Bug-AGL: SPEC-1436 Change-Id: I71e4311bb7638750732ba27fbeaa76c063113c46 Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-06-25Reorg binding-specific modules into subdirectoriesMatt Porter1-0/+159
Move binding-specific code into per-binding subdirectories. This separates the core message engine code and simplifies adding new binding-specific modules. Bug-AGL: SPEC-1525 Change-Id: I8fc545e3af375e2ed9e79a41363b7ade97e9b20a Signed-off-by: Matt Porter <mporter@konsulko.com>