|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.mail.Service
This class represents an email service on the BlackBerry handheld device. An email service enables messaging functionality, including the creating, editing, sending, and receiving of email messages, and optionally communicating these operations with a mail server.
The default service is implicitly connected.
Transport,
Store,
ServiceConfiguration| Method Summary | ||
|
void |
addServiceListener(ServiceListener sl)
Registers a service listener to handle service events for this server. |
|
ServiceConfiguration |
getServiceConfiguration()
Retrieves the service configuration for the current email service. |
|
boolean |
isConnected()
Determines whether this service is connected. |
|
void |
removeServiceListener(ServiceListener sl)
De-registers a service listener. |
|
void |
setConnected(boolean connected)
Sets the connection status of a service. |
|
String |
toString()
Retrieves a human-readable string for this service. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void addServiceListener(ServiceListener sl)
Service listeners are invoked when something in the service changes,
such as the addition or removal of a Folder.
sl - Service listener to register.public ServiceConfiguration getServiceConfiguration()
By default, this method returns null; implementing subclasses should override this to provide more specific functionality.
public boolean isConnected()
public void removeServiceListener(ServiceListener sl)
sl - Service listener to de-register.public void setConnected(boolean connected)
connected - True to connect the service; false to disconnect the
service.public String toString()
By default, this method returns an empty string; implementing subclasses should override this to provide more specific information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.