diff options
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java b/src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java index 0c85e98..ffc356c 100644 --- a/src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java +++ b/src/net/java/sip/communicator/service/protocol/ProtocolProviderService.java @@ -211,13 +211,6 @@ public interface ProtocolProviderService public void shutdown(); /** - * A hashcode allowing usage of protocol providers as keys in Hashtables. - * @return an int that may be used when storing protocol providers as - * hashtable keys. - */ - public int hashCode(); - - /** * Returns the AccountID that uniquely identifies the account represented by * this instance of the ProtocolProviderService. * @return the id of the account represented by this provider. @@ -225,6 +218,23 @@ public interface ProtocolProviderService public AccountID getAccountID(); /** + * Validates the given protocol specific contact identifier and returns an + * error message if applicable and a suggested correction. + * + * @param contactId the contact identifier to validate + * @param result Must be supplied as an empty a list. Implementors add + * items: + * <ol> + * <li>is the error message if applicable + * <li>a suggested correction. Index 1 is optional and can only + * be present if there was a validation failure. + * </ol> + * @return true if the contact id is valid, false otherwise + */ + public boolean validateContactAddress(String contactId, + List<String> result); + + /** * Indicate if the signaling transport of this protocol instance uses a * secure (e.g. via TLS) connection. * |