TabletDatabase: Add a version of `lookupTablet` which requires companyId

Authored by jgerecke on Jun 4 2018, 5:05 PM.

Description

TabletDatabase: Add a version of lookupTablet which requires companyId

Summary:
The existing Wacom::TabletDatabase::lookupTablet function does not require
a companyId and so may provide an unexpected match when provided with the
tabletId of a non-Wacom tablet which has the same ID as a Wacom tablet, or
the tablet ID of a Wacom tablet which isn't in the Wacom database but matches
a non-Wacom tablet. To allow for a more reliable match, this commit adds a
version of the lookupTablet function which requires a match on both the
provided companyID and the tabletID.

The first user of this new function is testlibwacomdata.cpp which needs to
accurately look up tablet data for comparison across the built-in and
libwacom databases.

Reviewers: valeriymalov

Reviewed By: valeriymalov

Differential Revision: https://phabricator.kde.org/D12645

Details

Committed
valeriymalovJun 4 2018, 5:31 PM
Reviewer
valeriymalov
Differential Revision
D12645: TabletDatabase: Add a version of `lookupTablet` which requires companyId
Parents
R530:c417c9e0f035: bump version to 3.1.0
Branches
Unknown
Tags
Unknown