2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.addressbook.manager.contact;
19 import java.util.List;
20 import org.mxchange.addressbook.client.Client;
21 import org.mxchange.addressbook.contact.Contact;
22 import org.mxchange.addressbook.contact.Gender;
23 import org.mxchange.addressbook.manager.Manageable;
27 * @author Roland Haeder
29 public interface ManageableContact extends Manageable {
32 * Shuts down this contact manager
34 public void doShutdown ();
37 * Allows the user to enter own cellphone number.
39 * @return Cellphone number
41 public String enterOwnCellNumber ();
44 * Allows the user to enter own city name.
48 public String enterOwnCity ();
51 * Allows the user to enter comment for own entry.
55 public String enterOwnComment ();
58 * Allows the user to enter own company name.
60 * @return Company name
62 public String enterOwnCompanyName ();
65 * Allows the user to enter own country code.
67 * @return Country code
69 public String enterOwnCountryCode ();
72 * Allows the user to enter own email address.
74 * @return Email address
76 public String enterOwnEmailAddress ();
79 * Allows the user to enter own family name.
83 public String enterOwnFamilyName ();
86 * Allows the user to enter own fax number.
90 public String enterOwnFaxNumber ();
93 * Allows the user to enter own gender.
97 public Gender enterOwnGender ();
100 * Allows the user to enter own phone number.
102 * @return Phone number
104 public String enterOwnPhoneNumber ();
107 * Allows the user to enter own street and house number.
109 * @return Street and house number
111 public String enterOwnStreet ();
114 * Allows the user to enter own surname.
118 public String enterOwnSurname ();
121 * Allows the user to enter own ZIP code.
125 public int enterOwnZipCode ();
128 * Getter for column count
130 * @return Column count
132 public int getColumnCount ();
137 public void doListContacts ();
140 * Getter for column name at given index.
142 * @param columnIndex Column index
143 * @return Human-readable column name
145 public String getColumnName (final int columnIndex);
148 * Adds given contact to address book
150 * @param contact Contact being added
151 * @todo Add check for book size
153 public void registerContact (final Contact contact);
156 * Adds given Contact instance to list
158 * @param contact Contact instance to add
160 public void addContact (final Contact contact);
163 * Let the user add a new other address
165 public void doAddOtherAddress ();
168 * The user can change address data, like street, ZIP code, city and country
169 * of given Contact instance.
171 * @param contact Instance to change data
172 * @param client Client instance to call back
174 public void doChangeAddressData (final Contact contact, final Client client);
177 * The user can change name data, like gender, surname, family name and
178 * company name (if business contact).
180 * @param contact Instance to change data
181 * @param client Client instance to call back
183 public void doChangeNameData (final Contact contact, final Client client);
186 * Let the user change other address
188 public void doChangeOtherAddress ();
191 * The user can change other data, like phone numbers or comments.
193 * @param contact Instance to change data
194 * @param client Client instance to call back
196 public void doChangeOtherData (final Contact contact, final Client client);
199 * Let the user change own data
201 public void doChangeOwnData ();
204 * Let the user delete other address
206 public void doDeleteOtherAddress ();
209 * Asks user for own data
211 public void doEnterOwnData ();
214 * Getter for whole list
216 * @return List of all contacts
218 public List<Contact> getList ();
221 * Searches address book for a contact
223 public void doSearchContacts ();
226 * Checks whether own contact is already added by checking all entries for
229 * @return Whether own contact is already added
231 public boolean isOwnContactAdded ();
236 * @return size of contact "book"