Source: IRCApplication.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
 *
 * File:    IRCApplication.h
 * Created: Sat Dec 4 1999
 * (C) 1999 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 IRCAPPLICATION_H
#define IRCAPPLICATION_H

#include "Application.h"
#include "IRCMessage.h"

class IRCModule;

/**
* @author David M.
* @short Main application class for the application.
*
* IRCApplication is the QApplication subclass that is used to enable
* QTimers and various other QT functionalities.
* It contains the basic initialization of the application, including
* associating signals to each concerned global objects.
*
*/
class IRCApplication : public Application {
Q_OBJECT
public:
  IRCApplication(int argc, char** argv);
  ~IRCApplication();
  /**
  * Make the application leave IRC with the specified quit message.
  * @param msg A string containing the message to send when quitting.
  */
  void quitIRC(QString msg = "Application terminated.");
  IRCModule& ircModule();
public slots:
  /**
  * Overriden to perform basic initialization when the application starts up.
  */
  virtual void execProc();
  void onConnect(QString serverName,QString nickname);
  void onDisconnect();
  void onRawNumeric(int numeric, const IRCMessage& message);
private:
  void handleDCCChat(const QString& nuh, const QString& params);
  IRCModule* _ircModuleP;

};


#endif


Generated by: nightsky@centauri on Sat Jan 15 23:06:10 2000, using kdoc 2.0a30.