text stringlengths 3 1.18M |
|---|
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.FullNick;
/**
* Code: 441 ERR_USERNOTINCHANNEL
* <user> <channel> :They aren't on that channel
* Returned by the server to indicate that the target user of the command is not on the given channel.
... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 431 ERR_NONICKNAMEGIVEN
* :No nickname given
* Returned when a nickname parameter expected for a command and isn't found.
*/
public class NoNicknameGivenError extends GenericError
{
private String errorMessage;
public N... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 472 ERR_UNKNOWNMODE
* <char> :is unknown mode char to me
*/
public class UnknownModeError extends GenericError
{
private Character mode;
private String errorMessage;
public UnknownModeError()
{
}
p... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.commands.AbstractInCommand;
/**
* Defines what an error is. All errors are commands.
*/
public abstract class GenericError extends AbstractInCommand
{
}
|
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.commands.UnknownCommand;
/**
* Some unknown command, for which there is no factory. This is a
* special case command, created by IRCConnection if it can't find a
* proper command... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 409 ERR_NOORIGIN
* :No origin specified
* PING or PONG message missing the originator parameter which is required since these commands must
* work without valid prefixes.
*/
public class NoOriginError extends GenericError
{
... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 451 ERR_NOTREGISTERED
* :You have not registered
* Returned by the server to indicate that the client must be registered before the
* server will allow it to be parsed in detail.
*/
public class NotRegisteredError extends Gener... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 461 ERR_NEEDMOREPARAMS
* <command> :Not enough parameters
* Returned by the server by numerous commands to indicate to the client that it didn't
* supply enough parameters.
*/
public class NeedMoreParamsError extends Gene... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 422 ERR_NOMOTD
* :MOTD File is missing
* Server's MOTD file could not be opened by the server.
*/
public class NoMotdError extends GenericError
{
private String errorMessage;
public NoMotdError()
{
}
public... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 407 ERR_TOOMANYTARGETS
* <target> :Duplicate recipients. No message delivered
* Returned to a client which is attempting to send a PRIVMSG/NOTICE using the user@host destination
* format and for a user@host which has seve... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 403 ERR_NOSUCHCHANNEL
* <channel name> :No such channel
* Used to indicate the given channel name is invalid.
*/
public class NoSuchChannelError extends GenericError
{
private String channel;
private String errorMe... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 405 ERR_TOOMANYCHANNELS
* <channel name> :You have joined too many channels
* Sent to a user when they have joined the maximum number of allowed channels and they try to join another channel.
*/
public class TooManyChannel... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 465 ERR_YOUREBANNEDCREEP
* :You are banned from this server
* Returned after an attempt to connect and register yourself with a server which has been setup to
* explicitly deny connections to you.
*/
public class YoureBannedCre... |
/*
* ChannelInviteOnlyError.java
*
* Copyright (C) 2000, 2001, 2002, 2003 Ben Damm
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License,... |
/*
* ChannelWrongKeyError.java
*
* Copyright (C) 2000, 2001, 2002, 2003 Ben Damm
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.FullNick;
/**
* Code: 443 ERR_USERONCHANNEL
* <user> <channel> :is already on channel
* Returned when a client tries to invite a user to a channel they are already on.
*/
public class UserOnChanne... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.FullNick;
/**
* Code: 436 ERR_NICKCOLLISION
* <nick> :Nickname collision KILL
* Returned by a server to a client when it detects a nickname collision (registered of a NICK that
* already exists by anoth... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.FullNick;
/**
* Code: 432 ERR_ERRONEUSNICKNAME
* <nick> :Erroneus nickname
* Returned after receiving a NICK message which contains characters which do not fall in the defined set.
*/
public class Erron... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 502 ERR_USERSDONTMATCH
* :Cant change mode for other users
* Error sent to any user trying to view or change the user mode for a user other than themselves.
*/
public class UsersDontMatchError extends GenericError
{
private ... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 414 ERR_WILDTOPLEVEL
* <mask> :Wildcard in toplevel domain
* 412 - 414 are returned by PRIVMSG to indicate that the message wasn't delivered for some reason.
* ERR_NOTOPLEVEL and ERR_WILDTOPLEVEL are errors that are return... |
/*
* ChannelLimitError.java
*
* Copyright (C) 2000, 2001, 2002, 2003 Ben Damm
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 483 ERR_CANTKILLSERVER
* :You can't kill a server!
* Any attempts to use the KILL command on a server are to be refused and this
* error returned directly to the client.
*/
public class CantKillServerError extends GenericError
... |
/*
* ChannelBannedError.java
*
* Copyright (C) 2000, 2001, 2002, 2003 Ben Damm
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... |
/*
* Original version: Ben Damm <bdamm@dammfine.com>
* Changes by: Mog
* - Retains the nick that is in use
* */
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.util.FullNick;
/**
* Code: 433 ERR_ERRONEUSNICKNAME
* <nick&... |
package f00f.net.irc.martyr.errors;
import f00f.net.irc.martyr.InCommand;
/**
* Code: 423 ERR_NOADMININFO
* <server name> :No administrative info available
* Returned by a server in response to an ADMIN message when there is an error in finding the
* appropriate information.
*/
public class NoAdminInfoErro... |
package f00f.net.irc.martyr;
/**
* Defines an object which is a command, either incoming or outgoing.
*/
public interface Command
{
/**
* Returns the string IRC uses to identify this command. Examples:
* NICK, PING, KILL, 332. Not strictly required for OutCommands
* as the irc identifier is expected to be ... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
public class LUserOpReply extends GenericStringReply
{
private int numOps;
public LUserOpReply()
{
}
public LUserOpReply( int ops, String string )
{
super( string );
this.numOps = ops;
}
publ... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
import co.porkcullis.android.smirc.util.Logger;
public class WhoisChannelsReply extends AbstractWhoisReply
{
... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
public class WhoisUserReply extends AbstractWhoisReply
{
private String host;
private String name;
/**
* Factory constructor.
* */
public WhoisUserReply()
{
}
public WhoisUserRep... |
package f00f.net.irc.martyr.replies;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.commands.ChannelModeCommand;
/**
* ModeReply is really a factory that passes the ModeReply off to a
* ChannelModeCommand.
*/
p... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
import co.porkcullis.android.smirc.util.Logger;
public class WhoisServerReply extends AbstractWhoisReply
{
static Logger log = Logger.getLogger(WhoisServerReply.class);
private String... |
package f00f.net.irc.martyr.replies;
import java.util.Date;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
/**
* Contains info about the topic, who set it and when.
*/
public class TopicInfo... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals an automated AWAY message received as a response to a PRIVMSG that was sent out.
*
* @author Daniel Henninger
*/
public class AwayReply extends GenericReply
{
private String nick;
private String message;
/**
*... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals the beginning of a LIST response.
*
* @author Daniel Henninger
*/
public class ListStartReply extends GenericReply
{
/**
* Factory constructor.
*/
public ListStartReply()
{
}
public String getIrcIdenti... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals an entry of a LIST response.
*
* @author Daniel Henninger
*/
public class ListReply extends GenericReply
{
private String requestor;
private String channel;
private Integer memberCount;
private String topic;
... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
public class WhoisEndReply extends AbstractWhoisReply
{
/**
* Factory constructor.
* */
public WhoisEndReply()
{
}
public WhoisEndReply( String params )
{
super( params );
}
pu... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
import java.util.Date;
import co.porkcullis.android.smirc.util.Logger;
public class WhoisIdleReply extends AbstractWhoisReply
{
static Logger log = Logger.getLogger(WhoisIdleReply.class);... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals the end of a LIST response.
*
* @author Daniel Henninger
*/
public class ListEndReply extends GenericReply
{
/**
* Factory constructor.
*/
public ListEndReply()
{
}
public String getIrcIdentifier()
{
... |
package f00f.net.irc.martyr.replies;
import java.util.Date;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
/**
* ChannelCreationReply sets the creation time of the channel. It is sent
* aut... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.commands.UnknownCommand;
/**
* A container for unknown replies.
*/
public class UnknownReply extends UnknownCommand
{
private String replyStr;
private int replyCode;
public Un... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals that you were successfully marked un-away.
*
* @author Daniel Henninger
*/
public class NowAwayReply extends GenericReply
{
/* Should always be You have been marked as being away */
private String message;
/**
... |
package f00f.net.irc.martyr.replies;
import java.util.List;
import java.util.Arrays;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
import co.porkcullis.android.smirc.util.Logger;
public class NamesReply extends GenericReply
{... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals that you were successfully marked un-away.
*
* @author Daniel Henninger
*/
public class UnAwayReply extends GenericReply
{
/* Should always be You are no longer marked as being away */
private String message;
/*... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
public class LUserClientReply extends GenericStringReply
{
public LUserClientReply()
{
}
public LUserClientReply( String string )
{
super( string );
}
public String getIrcIdentifier()
{
return... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
public class LUserMeReply extends GenericStringReply
{
public LUserMeReply()
{
}
public LUserMeReply( String string )
{
super( string );
}
public String getIrcIdentifier()
{
return "255";
... |
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.commands.AbstractInCommand;
/**
* Defines what a reply is. A reply is really the same as an error,
* it just doesn't signify an error.
*/
public abstract class GenericReply extends AbstractInCommand
{
}
|
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
public class NamesEndReply extends GenericReply
{
private String channel;
private String comment;
/** For use as a factory. */
public NamesEndReply()
{
this( null, null );
}
public NamesEndReply( String c... |
package f00f.net.irc.martyr.replies;
import co.porkcullis.android.smirc.util.Logger;
import f00f.net.irc.martyr.util.ParameterIterator;
public abstract class AbstractWhoisReply extends GenericReply
{
static Logger log = Logger.getLogger(AbstractWhoisReply.class);
private String target = null;
/**
* Facto... |
package f00f.net.irc.martyr.replies;
public abstract class GenericStringReply extends GenericReply
{
private String string;
public GenericStringReply()
{
}
public GenericStringReply( String string )
{
this.string = string;
}
public String getString()
{
return str... |
package f00f.net.irc.martyr.modes.user;
import f00f.net.irc.martyr.modes.GenericMode;
/**
*
*/
public abstract class GenericUserMode extends GenericMode
{
public boolean recordInChannel()
{
return false;
}
/**
* Well, this is kind of irrelevent isn't it?
*/
public boolean onePerChannel()
{
return fa... |
package f00f.net.irc.martyr.modes.user;
import f00f.net.irc.martyr.Mode;
public class InvisibleMode extends GenericUserMode
{
public char getChar()
{
return 'i';
}
public boolean requiresParam()
{
return false;
}
public Mode newInstance()
{
return new InvisibleMode();
}
}
|
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Voice Privilege - The mode 'v' is used to give and take voice
* privilege to/from a channel member. Users with this privilege
* can talk on moderated channels. (See section 4.2.3 (Moderated
* Channel Flag).</p>
* (... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Topic - The channel flag 't' is used to restrict the usage of the TOPIC
* command to channel operators.</p>
* (From RFC2811)
*/
public class TopicLockMode extends GenericChannelMode
{
public boolean requiresParam()
{
re... |
package f00f.net.irc.martyr.modes.channel;
/**
* 'Masks' and other modes that can have multiple copies in a channel
* at once should subclass this.
*/
public abstract class GenericChannelMask extends GenericChannelMode
{
public boolean onePerChannel()
{
return false;
}
}
|
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Channel Ban and Exception - When a user requests to join a
* channel, his local server checks if the user's address matches
* any of the ban masks set for the channel. If a match is found,
* the user request is denie... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>User Limit - A user limit may be set on channels by using the
* channel flag 'l'. When the limit is reached, servers MUST
* forbid their local users to join the channel.</p>
*
* <p>The value of the limit MUST only ... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.modes.GenericMode;
/**
* A generic channel mode will be recorded in the channel, and there
* will be one per channel. Modes that can have multiple copies in
* the channel (masks) should subclass GenericChannelMask.
*/
public abstract class Gen... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Invite Only Flag - When the channel flag 'i' is set, new
* members are only accepted if their mask matches Invite-list (See
* section 4.3.2) or they have been invited by a channel operator.
* This flag also restricts ... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Channel Invitation - For channels which have the invite-only
* flag set (See Section 4.2.2 (Invite Only Flag)), users whose
* address matches an invitation mask set for the channel are
* allowed to join the channel wi... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Channel Ban and Exception - When a user requests to join a
* channel, his local server checks if the user's address matches
* any of the ban masks set for the channel. If a match is found,
* the user request is denie... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Channel Operator Status - The mode 'o' is used to toggle the
* operator status of a channel member.</p> (From RFC2811)
*
* <p>Note that OperMode is recorded in the channel, but checking the op
* status of a member will g... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Private and Secret Channels - The channel flag 'p' is used to
* mark a channel "private" and the channel flag 's' to mark a
* channel "secret". Both properties are similar and conceal the
* existence of the channel f... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>No Messages To Channel From Clients On The Outside - When the
* channel flag 'n' is set, only channel members MAY send messages
* to the channel.</p>
*
* <p>This flag only affects users.</p>
* (From RFC2811)
*/
pu... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Moderated Channel Flag - The channel flag 'm' is used to
* control who may speak on a channel. When it is set, only
* channel operators, and members who have been given the voice
* privilege may send messages to the ... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Private and Secret Channels - The channel flag 'p' is used to
* mark a channel "private" and the channel flag 's' to mark a
* channel "secret". Both properties are similar and conceal the
* existence of the channel f... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>The channel flag 'a' defines an anonymous channel. This means that
* when a message sent to the channel is sent by the server to users,
* and the origin is a user, then it MUST be masked. To mask the
* message, the ... |
package f00f.net.irc.martyr.modes.channel;
import f00f.net.irc.martyr.Mode;
/**
* <p>Channel Key - When a channel key is set (by using the mode
* 'k'), servers MUST reject their local users request to join the
* channel unless this key is given.</p>
*
* <p>The channel key MUST only be made visible t... |
package f00f.net.irc.martyr.modes;
import f00f.net.irc.martyr.Mode;
/**
* GenericNode uses the character to specify the hash code. Thus, two
* mode types are the same, in a hash table, even if they have
* different parameters or positive/negative values.
*/
public abstract class GenericMode implements Mode
{
pr... |
/*
* Original version: Ben Damm <bdamm@dammfine.com>
* Changes by: mog
* - Added isOnChannel
*
*/
package f00f.net.irc.martyr.clientstate;
import java.util.Enumeration;
import java.util.Hashtable;
import f00f.net.irc.martyr.util.FullNick;
import co.porkcullis.android.smirc.util.Logger;
/**
* <p>Maintains a lis... |
package f00f.net.irc.martyr.clientstate;
import java.util.Date;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;
import f00f.net.irc.martyr.Command;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.Mode;
import f00f.n... |
package f00f.net.irc.martyr.clientstate;
import f00f.net.irc.martyr.util.FullNick;
/**
* <p>This class allows channels to keep track of individual users. Each
* user in the channel has a nick and has voice, ops, both, or none.
* Note that nicks can change, but the information we have about that
* person does not... |
package f00f.net.irc.martyr;
/**
* Some Frequenty Asked Questions.
*
* <h2>How do I use Martyr?</h2>
* Take a good look at the IRCConnection class. Also check out the
* programs in the test package. There are several small testing
* programs that show how to use the fundamentals of Martyr. For a
* better exam... |
package f00f.net.irc.martyr;
import java.util.Observer;
import java.util.Observable;
import java.util.LinkedList;
import java.util.List;
/**
* Does notifications in the order they are added.
* */
public class ForwardObservable extends Observable
{
private boolean changed = true;
private List<Observer> obs = new L... |
package f00f.net.irc.martyr;
/**
* A CommandSender can accept an OutCommand and do something with it
* (such as send it to the server, or send it on to another
* CommandSender). The idea is to create a chain of CommandSenders,
* with the last object in the chain the default CommandSender,
* created by IRCConnect... |
package f00f.net.irc.martyr.services;
import java.util.Observable;
import java.util.Observer;
import f00f.net.irc.martyr.IRCConnection;
import f00f.net.irc.martyr.commands.ChannelModeCommand;
import f00f.net.irc.martyr.commands.JoinCommand;
import f00f.net.irc.martyr.commands.PingCommand;
import f00f.net.irc.martyr.c... |
package f00f.net.irc.martyr.services;
import java.util.Iterator;
import java.util.NoSuchElementException;
import f00f.net.irc.martyr.IRCConnection;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.GenericAutoService;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.TimerTaskCommand;
import... |
package f00f.net.irc.martyr.services;
import java.io.IOException;
import f00f.net.irc.martyr.IRCConnection;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.GenericAutoService;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.commands.Qui... |
/*
* Original version: Ben Damm <bdamm@dammfine.com>
* Changes by: Morgan Christiansson <martyr@mog.se>
* - Spotted bugs
* - Added timer
* - Responds to Invites
* - Re-tries a join with a bad key
*
* Note: Requires Java 1.4
*/
package f00f.net.irc.martyr.services;
import f00f.net.irc.martyr.GenericAutoSe... |
package f00f.net.irc.martyr;
/**
* Should the state and state observer be one?
*/
public class StateObserver extends ForwardObservable
{
}
|
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
/**
* Defines the PONG command. At this point, PONGs can only be sent to
* the server, so all we need to do is provide render().
*/
public class PongCommand extends PingCommand
{
public PongCommand( String dest )
{
super... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.FullNick;
import f00f.net.irc.martyr.util.ParameterIterator;
/**
* @author <a href="mailto:martyr@mog.se">Morgan Christiansson</a>
*/
public class InviteCommand extends AbstractCommand {
private String _cha... |
package f00f.net.irc.martyr.commands;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.util.FullNick;
/**
* This facilitates the sending and receiving of CTCP messages. Upon
* receiving a message, MessageCommand checks to see if it is a CTCP,
* and if it is, it instantiates this class instead of a
*... |
package f00f.net.irc.martyr.commands;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.OutCommand;
public class RawCommand implements OutCommand
{
private String sourceString;
private String ident;
/**
* Tries to use the first "word" in the command as the identifier.
* Using this ... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
/**
* Implements a WHOIS command, to query details about a user.
*
*/
public class WhoisCommand implements OutCommand
{
private static final String WHOIS = "WHOIS";
private String target;
/**
* @param target the nick or mask that y... |
package f00f.net.irc.martyr.commands;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.util.FullNick;
/**
* This facilitates the sending and receiving of CTCP messages. Upon
* receiving a message, MessageCommand checks to see if it is a CTCP,
* and if it is, it instantiates this class instead of a
*... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.util.FullNick;
/**
* Defines the PRIVMSG command. Messages can be sent to groups or to users.
*/
public class MessageCommand extends AbstractCommand
{
pri... |
package f00f.net.irc.martyr.commands;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.Mode;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.ma... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.CommandRegister;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Defines the ISON command, which is used to determine if a user or a list of users is online.
*
* @author Daniel ... |
package f00f.net.irc.martyr.commands;
import java.util.HashMap;
import java.util.StringTokenizer;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.Mode;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.modes.user.InvisibleMode;
import f00f.net.irc.martyr.util.FullNick;
im... |
package f00f.net.irc.martyr.commands;
import java.util.Date;
import f00f.net.irc.martyr.CommandRegister;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
import co.porkcullis.android.smirc.util.Logger;
public class TopicCommand ... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.State;
/**
* Defines the PING command. At this point, PINGs only come in from
* the server, so all we need to do is capture the parameters.
*/
public class PingCommand extends AbstractCommand
{
private Str... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
import java.util.List;
import java.util.ArrayList;
/**
* Defines the LIST command, which is used to get the topic and member count of certain channels, or all of them.
*
* @author Daniel Henninger
*/
public class ListCommand implements ... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
import java.util.List;
import java.util.ArrayList;
/**
* Defines the NAMES command, which is used to get the members of certain channels, or all of them.
*
* @author Daniel Henninger
*/
public class NamesCommand implements OutCommand
{
... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.util.FullNick;
/**
* <p>Defines PART command. If the part command is from us, we should
* remove that channel fr... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.IRCConnection;
import f00f.net.irc.martyr.OutCommand;
/**
* Defines USER command, part of the handshake to register on the
* network.
*/
public class UserCommand implements OutCommand
{
private String name;
private String user;
private St... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.State;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.util.FullNick;
/**
* Defines the NOTICE command.
*/
public class NoticeCommand extends AbstractCommand
{
private FullNick... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
/**
* Defines the AWAY message which is used to indicate that you are or are not away from the keyboard.
*
* @author Daniel Henninger
*/
public class AwayCommand implements OutCommand
{
String awayMessage = null;
/**
* A b... |
package f00f.net.irc.martyr.commands;
/**
* ActionCtcp allows the application to do a '/me'.
*/
public class ActionCtcp extends CtcpMessage
{
public ActionCtcp( String dest, String message )
{
super( dest, "ACTION " + message );
}
}
|
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.clientstate.Channel;
import f00f.net.irc.martyr.clientstate.ClientState;
import f00f.net.irc.martyr.util.FullNick;
import co.porkcullis.android.smirc.util.Logger;
/**
* Defines JOIN command.
*/
public class JoinC... |
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
/**
* Defines PASS command, optional part of the handshake to register on the network.
* @author Daniel Henninger
*/
public class PassCommand implements OutCommand
{
private String pass;
public static final String IDENTIFIER = "P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.