leafchat.core.api
Class SystemStateMsg

java.lang.Object
  extended by leafchat.core.api.Msg
      extended by leafchat.core.api.SystemStateMsg

public class SystemStateMsg
extends Msg

Message sent when leafChat has loaded all plugins and is ready to start up


Field Summary
static int LICENSEDIALOG
          Type: sent when license dialog is being displayed
static int PLUGINSLOADED
          Type: sent when all plugins have been loaded
static int REQUESTSHUTDOWN
          Type: sent when user has done something that causes the app to quit, to give a chance to ask if they're sure.
static int SHUTDOWN
          Type: sent when application is shutting down, before plugins are closed
static int UIREADY
          Type: sent when application UI has started, just before splash screen goes
 
Fields inherited from class leafchat.core.api.Msg
PRIORITY_AFTERNORMAL, PRIORITY_BEFORENORMAL, PRIORITY_EARLY, PRIORITY_FIRST, PRIORITY_LAST, PRIORITY_LATE, PRIORITY_NORMAL
 
Constructor Summary
SystemStateMsg(int type)
           
 
Method Summary
 int getType()
           
static boolean sendShutdown()
          Sends the REQUESTSHUTDOWN and SHUTDOWN messages.
 
Methods inherited from class leafchat.core.api.Msg
isHandled, isStopped, markHandled, markStopped, sequenceBefore, setSequence, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGINSLOADED

public static final int PLUGINSLOADED
Type: sent when all plugins have been loaded

See Also:
Constant Field Values

SHUTDOWN

public static final int SHUTDOWN
Type: sent when application is shutting down, before plugins are closed

See Also:
Constant Field Values

UIREADY

public static final int UIREADY
Type: sent when application UI has started, just before splash screen goes

See Also:
Constant Field Values

LICENSEDIALOG

public static final int LICENSEDIALOG
Type: sent when license dialog is being displayed

See Also:
Constant Field Values

REQUESTSHUTDOWN

public static final int REQUESTSHUTDOWN
Type: sent when user has done something that causes the app to quit, to give a chance to ask if they're sure.

See Also:
Constant Field Values
Constructor Detail

SystemStateMsg

public SystemStateMsg(int type)
Parameters:
type - Type constant
Method Detail

getType

public int getType()
Returns:
Type constant

sendShutdown

public static boolean sendShutdown()
Sends the REQUESTSHUTDOWN and SHUTDOWN messages.

Returns:
False if user cancelled shutdown. (Otherwise doesn't return.)


Copyright © 2011 Samuel Marshall. All rights reserved.