/***************************************************************************
 *                                                                         *
 *   wlAgent.H                                                              *
 *                                                                         *
 *   Webcast List server Agent Class.                                            *
 *                                                  - N.Hammond 2/02       *
 *                                                                         *
 ***************************************************************************/

#ifndef __WLAGENT_H
#define __WLAGENT_H

#include "gcomm.h"
#include "galacth.h"
#include "wlmsg.h"

// EVENTUAL MAKE THIS IS C++ THING, SEE BCLIST.CPP in personal list sever
#define BLISTSIZE 500
struct BcasterData {
  CHAR hostname[100];
  CHAR username[100];
  CHAR email[100];
  CHAR regno[10];
  CHAR version[10];
  CHAR auxinfo[500];
  GBOOL    m_audio;
  INT doNotDisplay;
  ULONG timestamp;
};

extern CHAR tmpbuf[500];

class webAgent: public acthAgent {
public:

     webAgent();                   // default constructor

     ~webAgent();                  // destructor

     acthSynthesis *               // returned synth object
     newSynthesis(                 // return a new synthesis object
     acthSession *ses);            // session object

     struct BcasterData BcasterList[BLISTSIZE]; 

private:
     VOID
     initAgent();                  // initialize options

     VOID
     finishAgent();                // Cleanup agent for shutdown

private:
     wlMsg m_wlMsg;              // instance of message class

};

extern webAgent *theWebAgent;      // the agent

#endif                             // __WLAGENT_H
