#ifndef qSYSTEM_h_ 
#define qSYSTEM_h_
/* qSystem.h -- subclass of libVRML97/System to reroute messages
 * from stderr(default) to our mainwgt's status bar.
 */

#include <OpenVRML/System.h>
#include <stdarg.h>
#include <qnp.h>

class mainWgt;

class qSystem : public System 
{
        public:
                virtual void inform(const char *, ...);
                virtual void error(const char *, ...);
                virtual void warn(const char *, ...);
                virtual void debug(const char *, ...);
                void set_receiver(mainWgt *);
                
        public:
                qSystem();
                qSystem(mainWgt *);

        private:
                mainWgt * receiver;
};

#endif  /* qSYSTEM_h_ */


