org.walluck.oscar.channel.rendezvous
Class AddInsRendezvous

java.lang.Object
  extended by org.walluck.oscar.channel.Channel
      extended by org.walluck.oscar.channel.rendezvous.Rendezvous
          extended by org.walluck.oscar.channel.rendezvous.AddInsRendezvous

public class AddInsRendezvous
extends Rendezvous

Add-Ins rendezvous.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
 
Fields inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
ERROR_CODE_DECLINED, ERROR_CODE_NOT_ACCEPTING, ERROR_CODE_NOT_SUPPORTED, TLV_TYPE_CHAT_MESSAGE, TLV_TYPE_ENCODING, TLV_TYPE_ERROR_CODE, TLV_TYPE_GAMES_URL, TLV_TYPE_INVITATION_MESSAGE, TLV_TYPE_IP_ADDRRESS, TLV_TYPE_LANGUAGE, TLV_TYPE_MY_IP_ADDRESS, TLV_TYPE_OTHER_URL, TLV_TYPE_PORT, TLV_TYPE_PROXY, TLV_TYPE_REQUEST_TYPE, TLV_TYPE_SECURE, TLV_TYPE_UNKNOWN0001, TLV_TYPE_UNKNOWN0009, TLV_TYPE_UNKNOWN000F, TLV_TYPE_VERIFIED_IP_ADDR, TYPE_ACCEPT, TYPE_CANCEL, TYPE_REQUEST
 
Constructor Summary
AddInsRendezvous()
          Creates a new Buddy Icon rendezvous.
 
Method Summary
 String getAddIn()
          Get the value of addIn.
 int getCode()
          Get the value of code.
 String getCompter()
          Get the value of computer.
 int getFlags()
          Get the value of flags.
 String getMessage()
          Get the value of message.
 String getURL()
          Get the value of url.
 byte[] getUUID()
          Get the value of uuid.
 void handleServiceData(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, UserInfo userinfo, IncomingIMCH2 args, AIMInputStream buffer)
          Incoming IM Channel 2 (Game).
 void setAddIn(String addIn)
          Set the value of addIn.
 void setCode(int code)
          Set the value of code.
 void setComputer(String computer)
          Set the value of computer.
 void setFlags(int flags)
          Set the value of flags.
 void setMessage(String message)
          Set the value of message.
 void setRequest()
          Send a rendezvous request.
 void setURL(String url)
          Set the value of url.
 void setUUID(byte[] uuid)
          Set the value of uuid.
 
Methods inherited from class org.walluck.oscar.channel.rendezvous.Rendezvous
getCookie, getErrorCode, getService, getServiceData, getType, setAccept, setCancel, setCookie, setError, setErrorCode, setService, setServiceData, setType
 
Methods inherited from class org.walluck.oscar.channel.Channel
getChannel, setChannel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddInsRendezvous

public AddInsRendezvous()
Creates a new Buddy Icon rendezvous.

Method Detail

getURL

public String getURL()
Get the value of url.

Returns:
value of url.

setURL

public void setURL(String url)
Set the value of url.

Parameters:
url - Value to assign to url.

getMessage

public String getMessage()
Get the value of message.

Returns:
value of message.

setMessage

public void setMessage(String message)
Set the value of message.

Parameters:
message - Value to assign to message.

getCode

public int getCode()
Get the value of code.

Returns:
value of code.

setCode

public void setCode(int code)
Set the value of code.

Parameters:
code - Value to assign to code.

getUUID

public byte[] getUUID()
Get the value of uuid.

Returns:
value of uuid.

setUUID

public void setUUID(byte[] uuid)
Set the value of uuid.

Parameters:
uuid - Value to assign to uuid.

getAddIn

public String getAddIn()
Get the value of addIn.

Returns:
value of addIn.

setAddIn

public void setAddIn(String addIn)
Set the value of addIn.

Parameters:
addIn - Value to assign to addIn.

getCompter

public String getCompter()
Get the value of computer.

Returns:
value of computer.

setComputer

public void setComputer(String computer)
Set the value of computer.

Parameters:
computer - Value to assign to computer.

getFlags

public int getFlags()
Get the value of flags.

Returns:
value of flags.

setFlags

public void setFlags(int flags)
Set the value of flags.

Parameters:
flags - Value to assign to flags.

setRequest

public void setRequest()
                throws IOException
Send a rendezvous request.

Specified by:
setRequest in class Rendezvous
Throws:
IOException - if an error occurs

handleServiceData

public void handleServiceData(AIMSession sess,
                              SNACHandler handler,
                              AIMFrame frame,
                              SNAC snac,
                              UserInfo userinfo,
                              IncomingIMCH2 args,
                              AIMInputStream buffer)
                       throws IOException

Incoming IM Channel 2 (Game).

aim:addGame?
Name: MSHearts [name=]
Executable Path: mshearts.exe [job of client]
Command line parameters: %m [cmd=]
Server command line parameters: [servercmd=]
Start in (Working Directory): [job of client]
URL to application's home page: http://www.microsoft.com [url=]
'App Paths' Key in Registry: [job of client]
Hint to aid running program: Long [hint=]
Can invite multiple buddies [multiplayer=]
Launch application before sending invite [go1st=]
Hide IMs with 'Playing Game' Away message [job of client]

TODO: Substitutions (currently not implemented):

%i - buddy's IP address
%m - buddy's machine name
%p - path
%u - own IP address

%n - own screen name

Specified by:
handleServiceData in class Rendezvous
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
userinfo - user information
args - incoming im ch2 args
buffer - the incoming buffer
Throws:
IOException - if an error occurs