Would you like to make this site your homepage? It's fast and easy...
Yes, Please make this my home page!
/***************************************************************************
*
* File: ControlCmds.h
* Created: Fri Jan 7 2000
* (C) 2000 by David M. <captjay@superlink.net>
*
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CONTROLCMDS_H
#define CONTROLCMDS_H
#include <Command.h>
#include <qstring.h>
/**
* @author David M.
* @short Defines the EXIT command.
*
* This class defines an EXIT command that
* shuts down the application.
*
* Command syntax: EXIT [comment]
*
* This command is, obviously, not reversible.
*/
class CmdExit : public Command {
public:
CmdExit(IRCModule* ircModule, DCCUser* pUser, QString text);
/**
* Make the bot send a message indicating that it is terminating,
* then shut down.
*/
virtual void execute();
private:
QString _cmdText;
};
/**
* @author David M.
* @short Defines the JOIN command.
*
* This class defines a JOIN command to make the bot join a specified
* channel. This join is temporary, i.e. the bot will not rejoin it
* when it reconnects (the channel is not added to any internal lists).
*
* Command syntax: JOIN channel
*
* When undone, this command executes a PART command.
*/
class CmdJoin : public Command {
public:
CmdJoin(IRCModule* ircModule, DCCUser* pUser, QString text);
/**
* Make the bot join the specified channel.
*/
virtual void execute();
private:
QString _cmdText;
};
#endif
Generated by: nightsky@centauri on Sat Jan 15 23:06:10 2000, using kdoc 2.0a30. |