summaryrefslogtreecommitdiffstats
path: root/examples/interfaceframework/addressbook/example-addressbook.qface
blob: 12eca1ab097c54c6130f5aa1db5aa4e934a8830d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Example.If.AddressBookModule 1.0;

@config: { qml_type: "UiAddressBook" }
//! [0]
interface AddressBook {
    model<Contact> contacts;

    void insertContact(int index, Contact contact);
}

struct Contact {
    string forename;
    string name;
    int phone;
}
//! [0]