diff options
author | Matt Porter <mporter@konsulko.com> | 2018-05-18 14:42:52 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2018-05-21 11:20:36 -0400 |
commit | b00822fe8b233f33adca86f93e5c1b90050983aa (patch) | |
tree | 50d78108535f2659e398d198564b28fd6462b8a0 /app/main.cpp | |
parent | 4e454de545544526cbea9d787df9ba76cb99d889 (diff) |
contacts: handle multiple numbers and types
The current contact model has a few fixed fields for
phone numbers and only one is displayed and able to be
dialed from the contacts view. Update the model to support
an array of tuples indicating each phone number and type
of phone number (mobile, home, work, other) associated
with a contact entry. Also, update the ContactsView so
we see all phone numbers for a given contact.
Bug-AGL: SPEC-1435
Change-Id: Ie883d3f06c0e4102e79546395dbb1712741bac8b
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index 6fd0e9a..ea6c8b5 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -28,6 +28,7 @@ #include <telephony.h> #include "phone.h" +#include "numbertype.h" int main(int argc, char *argv[]) { @@ -98,6 +99,8 @@ int main(int argc, char *argv[]) } }); + qmlRegisterUncreatableType<NumberType>("NumberType", 1, 0, "NumberType", "Not creatable as it is an enum type"); + engine.load(QUrl(QStringLiteral("qrc:/Phone.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast<QQuickWindow *>(root); |