1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
\r
2 * Copyright (C) 2015, The Qt Company. All Rights Reserved.
\r
4 * This Source Code Form is subject to the terms of the Mozilla Public
\r
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
\r
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
\r
8 import QtQml.Models 2.2
\r
11 function findName(number) {
\r
12 for (var i = 0; i < count; i++) {
\r
14 if (o.phone === number || o.mobile === number || o.work === number)
\r
17 return "Unknown number"
\r
22 number: "503-616-4940"
\r
23 mobile: "503-715-6618"
\r
24 work: "972-256-9732"
\r
29 number: "503-000-0000"
\r
30 mobile: "503-209-3254"
\r
31 work: "972-000-0000"
\r
36 number: "503-000-0000"
\r
37 mobile: "503-209-3254"
\r
38 work: "972-000-0000"
\r
42 name: "Kelly Johnson"
\r
43 number: "503-000-0000"
\r
44 mobile: "503-000-0000"
\r
45 work: "972-000-0000"
\r
49 name: "Marco Morales"
\r
50 number: "503-000-0000"
\r
51 mobile: "503-209-3254"
\r
52 work: "972-000-0000"
\r
57 number: "503-000-0000"
\r
58 mobile: "503-209-3254"
\r
59 work: "972-000-0000"
\r
64 number: "503-000-0000"
\r
65 mobile: "503-209-3254"
\r
66 work: "972-000-0000"
\r