Package org.linphone.core
Interface RemoteContactDirectory
public interface RemoteContactDirectory
Object that represents a remote contact directory such as a LDAP or CardDAV
server; used as a
server; used as a
MagicSearch source. -
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the CardDAV params ifgetType()returns CardDAV.Gets the LDAP params ifgetType()returns LDAP.intgetLimit()Gets the maximum number of results to fetch, 0 means no limit.intGets the minimum number of characters to have before sending the query to the
server.longGets the native pointer used by this class to make native method calls.Gets the configured remote contact directory server URL.intGets the timeout (in seconds) after which the query is abandonned.getType()Gets the type of remote contact directory (LDAP, CardDAV).Gets the object stored in this object user's datavoidsetLimit(int limit) Sets the maximum number of results to fetch, 0 means no limit.voidsetMinCharacters(int min) Sets the minimum number of characters to have before sending the query to the
server.voidsetServerUrl(String serverUrl) Sets the server URL to use to reach the remote contact directory server.voidsetTimeout(int seconds) Sets the timeout (in seconds) after which the query is abandonned.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getCardDavParams
- Returns:
- the
CardDavParamsor null if not of CardDAV type.
-
getLdapParams
- Returns:
- the
LdapParamsor null if not of LDAP type.
-
getLimit
int getLimit()Gets the maximum number of results to fetch, 0 means no limit.
- Returns:
- the maximum number of results, 0 means no limit.
-
setLimit
void setLimit(int limit) Sets the maximum number of results to fetch, 0 means no limit.
- Parameters:
limit- the maximum number of results to return.
-
getMinCharacters
int getMinCharacters()Gets the minimum number of characters to have before sending the query to the
server.
- Returns:
- The mininum number of characters to have before sending the query.
-
setMinCharacters
void setMinCharacters(int min) Sets the minimum number of characters to have before sending the query to the
server.
- Parameters:
min- the minimum characters to have in user input filter before sending
the query.
-
getServerUrl
Gets the configured remote contact directory server URL.
- Returns:
- the remote contact directory server URL.
-
setServerUrl
Sets the server URL to use to reach the remote contact directory server.
- Parameters:
serverUrl- the remote contact directory server URL.
-
getTimeout
int getTimeout()Gets the timeout (in seconds) after which the query is abandonned.
- Returns:
- The timeout (in seconds) after which the query is considered to be
timed-out.
-
setTimeout
void setTimeout(int seconds) Sets the timeout (in seconds) after which the query is abandonned.
- Parameters:
seconds- the number of seconds before considering the query as timed-out.
-
getType
RemoteContactDirectory.Type getType()Gets the type of remote contact directory (LDAP, CardDAV).
- Returns:
- the
RemoteContactDirectory.Typeof this remote contact directory.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-