/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-05-10 12:16:15 UTC
  • Revision ID: tim@ed.am-20130510121615-g8qhsu0h3t0ymrt6
Tags: 1.3.2
fix spacing in NEWS

Show diffs side-by-side

added added

removed removed

1
1
/*
2
2
 * Backend.java
3
3
 *
4
 
 * Copyright (C) 2012 to 2013 Tim Marston <tim@ed.am>
 
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
 
         *
33
32
         * @param cache the contacts cache to populate
34
33
         */
35
34
        public void populateCache( ContactsCache cache );
36
35
 
37
36
        /**
38
37
         * Delete a contact from the device.
39
 
         *
40
38
         * @param id of the contact to delete
41
39
         */
42
40
        public void deleteContact( Long id );
46
44
 
47
45
        /**
48
46
         * Add a contact to the device.
49
 
         *
50
47
         * @param name name of the new contact, or null if there isn't one
51
48
         * @return the new contact's id
52
49
         * @throws ContactCreationException
55
52
 
56
53
        /**
57
54
         * Add a phone number to an existing contact on the device.
58
 
         *
59
55
         * @param id the existing contact's id
60
56
         * @param number the phone number
61
57
         * @param data data about the number
66
62
 
67
63
        /**
68
64
         * Add an email address to an existing contact on the device.
69
 
         *
70
65
         * @param id the existing contact's id
71
66
         * @param email the email address
72
67
         * @param data data about the email address
77
72
 
78
73
        /**
79
74
         * Add an address to an existing contact on the device.
80
 
         *
81
75
         * @param id the existing contact's id
82
76
         * @param address the address
83
77
         * @param data data about the address
88
82
 
89
83
        /**
90
84
         * Add a title and organisation to an existing contact on the device.
91
 
         *
92
85
         * @param id the existing contact's id
93
86
         * @param organisation the organisation
94
87
         * @param data data about the organisation
99
92
 
100
93
        /**
101
94
         * Add a note to an existing contact on the device.
102
 
         *
103
95
         * @param id the existing contact's id
104
96
         * @param note the note
105
97
         * @throws ContactCreationException
107
99
        public void addContactNote( Long id, String note )
108
100
                throws ContactCreationException;
109
101
 
110
 
        /**
111
 
         * Add a birthday to an existing contact on the device.
112
 
         *
113
 
         * @param id the existing contact's id
114
 
         * @param birthday the birthday
115
 
         * @throws ContactCreationException
116
 
         */
117
 
        public void addContactBirthday( Long id, String birthday )
118
 
                throws ContactCreationException;
119
102
}