com.aol.acc
Class AccCommandTarget

java.lang.Object
  extended by com.aol.acc.AccBase
      extended by com.aol.acc.AccCommandTarget

public class AccCommandTarget
extends AccBase

The IAccCommandTarget interface is required for plugins that will receive commands.


Method Summary
 void exec(int command, AccVariant names)
          Called when the user invokes the plugin, either by selecting it from a menu,
clicking on a button, or other means.
 boolean queryStatus(int command, AccVariant names)
          Called by the application when it wants to determine whether the plugin
can be invoked, given its current internal state and selected users or
groups in the buddy list.
 
Methods inherited from class com.aol.acc.AccBase
compareHandle, equals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

queryStatus

public boolean queryStatus(int command,
                           AccVariant names)
                    throws AccException
Called by the application when it wants to determine whether the plugin
can be invoked, given its current internal state and selected users or
groups in the buddy list. If AccCommandFlags_GroupUi is set, "names" should
contain group names; otherwise, it should contain user names.

Throws:
AccException

exec

public void exec(int command,
                 AccVariant names)
          throws AccException
Called when the user invokes the plugin, either by selecting it from a menu,
clicking on a button, or other means. If AccCommandFlags_GroupUi is set,
"names" should contain group names; otherwise, it should contain user names

Throws:
AccException