BowlerKernel
|
Public Member Functions | |
GoogleChatEngine (IConversationFactory responder, String user, String pass) throws XMPPException | |
GoogleChatEngine (IConversationFactory responder, InputStream config) throws XMPPException | |
void | chatCreated (Chat arg0, boolean arg1) |
GoogleChat | startChat (String user) |
GoogleChat | startChat (String user, MessageListener listener) |
ArrayList< GoogleChat > | getChats () |
void | disconnect () |
Static Public Member Functions | |
static String | getTagValue (String sTag, Element eElement) |
Private Member Functions | |
void | setup (IConversationFactory responder) throws XMPPException |
void | setLoginInfo (InputStream config) |
MessageListener | getNewMessageListener () |
Private Attributes | |
ConnectionConfiguration | connConfig |
XMPPConnection | connection |
Presence | presence |
ChatManager | chatmanager |
IConversationFactory | responder |
Static Private Attributes | |
static String | username = "user@gmail.com" |
static String | password = "pass1234" |
static String | host = "talk.google.com" |
static String | service = "gmail.com" |
static int | port = 5222 |
The Class GoogleChatEngine.
Definition at line 36 of file GoogleChatEngine.java.
com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine | ( | IConversationFactory | responder, |
String | user, | ||
String | pass | ||
) | throws XMPPException |
Instantiates a new google chat engine.
responder | the responder |
user | the user |
pass | the pass |
XMPPException | the XMPP exception |
Definition at line 80 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.password, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.responder, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.username.
com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine | ( | IConversationFactory | responder, |
InputStream | config | ||
) | throws XMPPException |
Instantiates a new google chat engine.
responder | the responder |
config | the config |
XMPPException | the XMPP exception |
Definition at line 93 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.responder, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
void com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatCreated | ( | Chat | arg0, |
boolean | arg1 | ||
) |
Definition at line 177 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getNewMessageListener().
void com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.disconnect | ( | ) |
Disconnect.
Definition at line 233 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.connection.
ArrayList<GoogleChat> com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getChats | ( | ) |
|
private |
Gets the new message listener.
Definition at line 169 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.IConversationFactory.getConversation(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.responder.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatCreated(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat().
|
static |
Gets the tag value.
sTag | the s tag |
eElement | the e element |
Definition at line 157 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo().
|
private |
Sets the login info.
config | the new login info |
Definition at line 123 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getTagValue(), com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.password, and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.username.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine().
|
private |
Sets the up.
responder | the new up |
XMPPException | the XMPP exception |
Definition at line 104 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.connConfig, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.connection, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.host, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.password, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.port, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.presence, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.responder, com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.service, and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.username.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine().
GoogleChat com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat | ( | String | user | ) |
Start chat.
user | the user |
Definition at line 189 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager, and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getNewMessageListener().
GoogleChat com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat | ( | String | user, |
MessageListener | listener | ||
) |
Start chat.
user | the user |
listener | the listener |
Definition at line 203 of file GoogleChatEngine.java.
References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager.
|
private |
The chatmanager.
Definition at line 64 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat().
|
private |
The conn config.
Definition at line 55 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
private |
The connection.
Definition at line 58 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.disconnect(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
staticprivate |
The host.
Definition at line 46 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
staticprivate |
The password.
Definition at line 42 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine(), com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
staticprivate |
The port.
Definition at line 52 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
private |
The presence.
Definition at line 61 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
private |
The responder.
Definition at line 70 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getNewMessageListener(), com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
staticprivate |
The service.
Definition at line 49 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().
|
staticprivate |
The username.
Definition at line 39 of file GoogleChatEngine.java.
Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine(), com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo(), and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().