/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/am/ed/importcontacts/Backend.java

  • Committer: Tim Marston
  • Date: 2013-06-22 17:29:31 UTC
  • Revision ID: tim@ed.am-20130622172931-ujydoni23t3a543b
minor style tweaks

Show diffs side-by-side

added added

removed removed

4
4
 * Copyright (C) 2012 Tim Marston <tim@ed.am>
5
5
 *
6
6
 * This file is part of the Import Contacts program (hereafter referred
7
 
 * to as "this program"). For more information, see
 
7
 * to as "this program").  For more information, see
8
8
 * http://ed.am/dev/android/import-contacts
9
9
 *
10
10
 * This program is free software: you can redistribute it and/or modify
29
29
{
30
30
        /**
31
31
         * Build-up our contacts cache, using contacts on the device.
 
32
         *
32
33
         * @param cache the contacts cache to populate
33
34
         */
34
35
        public void populateCache( ContactsCache cache );
35
36
 
36
37
        /**
37
38
         * Delete a contact from the device.
 
39
         *
38
40
         * @param id of the contact to delete
39
41
         */
40
42
        public void deleteContact( Long id );
44
46
 
45
47
        /**
46
48
         * Add a contact to the device.
 
49
         *
47
50
         * @param name name of the new contact, or null if there isn't one
48
51
         * @return the new contact's id
49
52
         * @throws ContactCreationException
52
55
 
53
56
        /**
54
57
         * Add a phone number to an existing contact on the device.
 
58
         *
55
59
         * @param id the existing contact's id
56
60
         * @param number the phone number
57
61
         * @param data data about the number
62
66
 
63
67
        /**
64
68
         * Add an email address to an existing contact on the device.
 
69
         *
65
70
         * @param id the existing contact's id
66
71
         * @param email the email address
67
72
         * @param data data about the email address
72
77
 
73
78
        /**
74
79
         * Add an address to an existing contact on the device.
 
80
         *
75
81
         * @param id the existing contact's id
76
82
         * @param address the address
77
83
         * @param data data about the address
82
88
 
83
89
        /**
84
90
         * Add a title and organisation to an existing contact on the device.
 
91
         *
85
92
         * @param id the existing contact's id
86
93
         * @param organisation the organisation
87
94
         * @param data data about the organisation
92
99
 
93
100
        /**
94
101
         * Add a note to an existing contact on the device.
 
102
         *
95
103
         * @param id the existing contact's id
96
104
         * @param note the note
97
105
         * @throws ContactCreationException