|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.beem.project.beem
Class BeemApplication

java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.app.Application
com.beem.project.beem.BeemApplication
- All Implemented Interfaces:
- ComponentCallbacks
public class BeemApplication
- extends Application
This class contains informations that needs to be global in the application. Theses informations must be necessary for the activities and the service.
| Field Summary | |
|---|---|
static String |
ACCOUNT_PASSWORD_KEY
Preference key for account password. |
static String |
ACCOUNT_USERNAME_KEY
Preference key for account username. |
static String |
AUTO_AWAY_MSG_KEY
Preference key for auto away message. |
static String |
CHAT_HISTORY_KEY
Preference key for history path on the SDCard. |
static String |
CONNECTION_PRIORITY_KEY
Preference key for connection priority. |
static String |
CONNECTION_RESOURCE_KEY
Preference key for connection resource . |
static String |
FULL_JID_LOGIN_KEY
Preference key for full Jid for login. |
static String |
HIDE_GROUPS_KEY
Preference key for hide the groups. |
static String |
NOTIFICATION_SOUND_KEY
Preference key for notification sound. |
static String |
NOTIFICATION_VIBRATE_KEY
Preference key for vibrate on notification. |
static String |
PROXY_PASSWORD_KEY
Preference key for the proxy password. |
static String |
PROXY_PORT_KEY
Preference key for the proxy port. |
static String |
PROXY_SERVER_KEY
Preference key for the proxy server. |
static String |
PROXY_TYPE_KEY
Preference key for the type of proxy. |
static String |
PROXY_USE_KEY
Preference key for the use of a proxy. |
static String |
PROXY_USERNAME_KEY
Preference key for the proxy username. |
static String |
SHOW_JID
Preference key to show the jid in the contact list. |
static String |
SHOW_OFFLINE_CONTACTS_KEY
Preference key for display offline contact. |
static String |
SMACK_DEBUG_KEY
Preference key for smack debugging. |
static String |
STATUS_KEY
Preference key for status (available, busy, away, ...). |
static String |
STATUS_TEXT_KEY
Preference key for status message. |
static String |
USE_AUTO_AWAY_KEY
Preference key for auto away enable. |
static String |
USE_COMPACT_CHAT_UI_KEY
Preference key for compact chat ui. |
| Constructor Summary | |
|---|---|
BeemApplication()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isAccountConfigured()
Tell if a XMPP account is configured. |
boolean |
isConnected()
Tell if Beem is connected to a XMPP server. |
boolean |
isPepEnabled()
Check if Pep is enabled. |
void |
onCreate()
|
void |
onTerminate()
|
void |
setConnected(boolean isConnected)
Set the status of the connection to a XMPP server of BEEM. |
void |
setPepEnabled(boolean enabled)
Enable Pep in the application context. |
| Methods inherited from class android.app.Application |
|---|
onConfigurationChanged, onLowMemory |
| Methods inherited from class android.content.Context |
|---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
ACCOUNT_USERNAME_KEY
public static final String ACCOUNT_USERNAME_KEY
- Preference key for account username.
- See Also:
- Constant Field Values
ACCOUNT_PASSWORD_KEY
public static final String ACCOUNT_PASSWORD_KEY
- Preference key for account password.
- See Also:
- Constant Field Values
STATUS_KEY
public static final String STATUS_KEY
- Preference key for status (available, busy, away, ...).
- See Also:
- Constant Field Values
STATUS_TEXT_KEY
public static final String STATUS_TEXT_KEY
- Preference key for status message.
- See Also:
- Constant Field Values
CONNECTION_RESOURCE_KEY
public static final String CONNECTION_RESOURCE_KEY
- Preference key for connection resource .
- See Also:
- Constant Field Values
CONNECTION_PRIORITY_KEY
public static final String CONNECTION_PRIORITY_KEY
- Preference key for connection priority.
- See Also:
- Constant Field Values
PROXY_USE_KEY
public static final String PROXY_USE_KEY
- Preference key for the use of a proxy.
- See Also:
- Constant Field Values
PROXY_TYPE_KEY
public static final String PROXY_TYPE_KEY
- Preference key for the type of proxy.
- See Also:
- Constant Field Values
PROXY_SERVER_KEY
public static final String PROXY_SERVER_KEY
- Preference key for the proxy server.
- See Also:
- Constant Field Values
PROXY_PORT_KEY
public static final String PROXY_PORT_KEY
- Preference key for the proxy port.
- See Also:
- Constant Field Values
PROXY_USERNAME_KEY
public static final String PROXY_USERNAME_KEY
- Preference key for the proxy username.
- See Also:
- Constant Field Values
PROXY_PASSWORD_KEY
public static final String PROXY_PASSWORD_KEY
- Preference key for the proxy password.
- See Also:
- Constant Field Values
NOTIFICATION_VIBRATE_KEY
public static final String NOTIFICATION_VIBRATE_KEY
- Preference key for vibrate on notification.
- See Also:
- Constant Field Values
NOTIFICATION_SOUND_KEY
public static final String NOTIFICATION_SOUND_KEY
- Preference key for notification sound.
- See Also:
- Constant Field Values
SMACK_DEBUG_KEY
public static final String SMACK_DEBUG_KEY
- Preference key for smack debugging.
- See Also:
- Constant Field Values
FULL_JID_LOGIN_KEY
public static final String FULL_JID_LOGIN_KEY
- Preference key for full Jid for login.
- See Also:
- Constant Field Values
SHOW_OFFLINE_CONTACTS_KEY
public static final String SHOW_OFFLINE_CONTACTS_KEY
- Preference key for display offline contact.
- See Also:
- Constant Field Values
HIDE_GROUPS_KEY
public static final String HIDE_GROUPS_KEY
- Preference key for hide the groups.
- See Also:
- Constant Field Values
USE_AUTO_AWAY_KEY
public static final String USE_AUTO_AWAY_KEY
- Preference key for auto away enable.
- See Also:
- Constant Field Values
AUTO_AWAY_MSG_KEY
public static final String AUTO_AWAY_MSG_KEY
- Preference key for auto away message.
- See Also:
- Constant Field Values
USE_COMPACT_CHAT_UI_KEY
public static final String USE_COMPACT_CHAT_UI_KEY
- Preference key for compact chat ui.
- See Also:
- Constant Field Values
CHAT_HISTORY_KEY
public static final String CHAT_HISTORY_KEY
- Preference key for history path on the SDCard.
- See Also:
- Constant Field Values
SHOW_JID
public static final String SHOW_JID
- Preference key to show the jid in the contact list.
- See Also:
- Constant Field Values
| Constructor Detail |
|---|
BeemApplication
public BeemApplication()
- Constructor.
| Method Detail |
|---|
onCreate
public void onCreate()
- Overrides:
onCreatein classApplication
onTerminate
public void onTerminate()
- Overrides:
onTerminatein classApplication
isConnected
public boolean isConnected()
- Tell if Beem is connected to a XMPP server.
- Returns:
- false if not connected.
setConnected
public void setConnected(boolean isConnected)
- Set the status of the connection to a XMPP server of BEEM.
- Parameters:
isConnected- set for the state of the connection.
isAccountConfigured
public boolean isAccountConfigured()
- Tell if a XMPP account is configured.
- Returns:
- false if there is no account configured.
setPepEnabled
public void setPepEnabled(boolean enabled)
- Enable Pep in the application context.
- Parameters:
enabled- true to enable pep
isPepEnabled
public boolean isPepEnabled()
- Check if Pep is enabled.
- Returns:
- true if enabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 Beem-project.com. All Rights Reserved.

