BowlerKernel
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine Class Reference
Inheritance diagram for com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine:
Collaboration graph
[legend]

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< GoogleChatgetChats ()
 
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
 

Detailed Description

The Class GoogleChatEngine.

Definition at line 36 of file GoogleChatEngine.java.

Constructor & Destructor Documentation

◆ GoogleChatEngine() [1/2]

com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine ( IConversationFactory  responder,
String  user,
String  pass 
) throws XMPPException

Instantiates a new google chat engine.

Parameters
responderthe responder
userthe user
passthe pass
Exceptions
XMPPExceptionthe 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.

Here is the call graph for this function:

◆ GoogleChatEngine() [2/2]

com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.GoogleChatEngine ( IConversationFactory  responder,
InputStream  config 
) throws XMPPException

Instantiates a new google chat engine.

Parameters
responderthe responder
configthe config
Exceptions
XMPPExceptionthe 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().

Here is the call graph for this function:

Member Function Documentation

◆ chatCreated()

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().

Here is the call graph for this function:

◆ disconnect()

void com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.disconnect ( )

◆ getChats()

ArrayList<GoogleChat> com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getChats ( )

Gets the chats.

Returns
the chats

Definition at line 215 of file GoogleChatEngine.java.

◆ getNewMessageListener()

MessageListener com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getNewMessageListener ( )
private

◆ getTagValue()

static String com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getTagValue ( String  sTag,
Element  eElement 
)
static

Gets the tag value.

Parameters
sTagthe s tag
eElementthe e element
Returns
the tag value

Definition at line 157 of file GoogleChatEngine.java.

Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo().

◆ setLoginInfo()

void com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setLoginInfo ( InputStream  config)
private

◆ setup()

void com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup ( IConversationFactory  responder) throws XMPPException
private

◆ startChat() [1/2]

GoogleChat com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat ( String  user)

Start chat.

Parameters
userthe user
Returns
the google chat

Definition at line 189 of file GoogleChatEngine.java.

References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager, and com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.getNewMessageListener().

Here is the call graph for this function:

◆ startChat() [2/2]

GoogleChat com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.startChat ( String  user,
MessageListener  listener 
)

Start chat.

Parameters
userthe user
listenerthe listener
Returns
the google chat

Definition at line 203 of file GoogleChatEngine.java.

References com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager.

Member Data Documentation

◆ chatmanager

ChatManager com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.chatmanager
private

◆ connConfig

ConnectionConfiguration com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.connConfig
private

The conn config.

Definition at line 55 of file GoogleChatEngine.java.

Referenced by com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.setup().

◆ connection

XMPPConnection com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.connection
private

◆ host

String com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.host = "talk.google.com"
staticprivate

◆ password

String com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.password = "pass1234"
staticprivate

◆ port

int com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.port = 5222
staticprivate

◆ presence

Presence com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.presence
private

◆ responder

IConversationFactory com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.responder
private

◆ service

String com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.service = "gmail.com"
staticprivate

◆ username

String com.neuronrobotics.application.xmpp.GoogleChat.GoogleChatEngine.username = "user@gmail.com"
staticprivate

The documentation for this class was generated from the following file: