|
|||||||||
| 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
Represents an email service on the handheld.
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 boolean isConnected()
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.
public ServiceConfiguration getServiceConfiguration()
By default, this method returns null; implementing subclasses should override this to provide more specific functionality..
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 void removeServiceListener(ServiceListener sl)
sl - Service listener to de-register.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 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.