public class IRCChat extends Activity implements IRCEventListener
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
nickList |
static Session |
session |
Constructor and Description |
---|
IRCChat() |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatchKeyEvent(KeyEvent event)
Used to reset the string that is used for the nick completion
|
java.lang.Integer |
getNickColor(java.lang.String nickInQ)
Gets the nick color from the list, adding it if necessary.
|
java.lang.Integer |
getRandomColor()
Generates a random color.
|
void |
initiate()
called to first initiate the IRC chat.
|
void |
logout(java.lang.String quitMsg)
Used to logout, quit, or part.
|
void |
onConfigurationChanged(Configuration newConfig)
Used to handle when the screen is rotated, to set the necessary padding.
|
void |
onCreate(Bundle savedInstanceState)
Called when the activity is first created.
|
boolean |
onCreateOptionsMenu(Menu menu)
Called when it is time to create the menu.
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
Called when any key is pressed.
|
boolean |
onOptionsItemSelected(MenuItem item)
Called when an item in the menu is pressed.
|
void |
onPause() |
void |
onResume() |
java.lang.CharSequence |
parseEmoticons(java.lang.String s) |
void |
receiveEvent(IRCEvent e)
Called when the this class receives any type of IRC event.
|
void |
resume()
Called when the activity either is created or resumes.
|
java.lang.String |
Rot47(java.lang.String value)
A simple but effective obfusication cypher.
|
public static Session session
public static java.util.List<java.lang.String> nickList
public void onCreate(Bundle savedInstanceState)
savedInstanceState
- Um I don't even know. Read the Android documentation.public void onPause()
public boolean onKeyDown(int keyCode, KeyEvent event)
keyCode
- I dunnoevent
- I dunnopublic boolean dispatchKeyEvent(KeyEvent event)
public boolean onCreateOptionsMenu(Menu menu)
menu
- Um, the menupublic boolean onOptionsItemSelected(MenuItem item)
item
- The menu item ID that was pressedpublic void onConfigurationChanged(Configuration newConfig)
public void resume()
public void onResume()
public void initiate()
public void logout(java.lang.String quitMsg)
public void receiveEvent(IRCEvent e)
receiveEvent
in interface IRCEventListener
e
- IRCEvent the event
public java.lang.Integer getNickColor(java.lang.String nickInQ)
nickInQ
- The nick in questionpublic java.lang.Integer getRandomColor()
public java.lang.CharSequence parseEmoticons(java.lang.String s)
public java.lang.String Rot47(java.lang.String value)