#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 <OpenVrml/VrmlNode.h>
#include <OpenVrml/Doc.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 *);
                const char *httpFetch( const char *url );
                void setResourceNotify(int, char**, Doc *, VrmlNode *);

                
        public:
                qSystem();
                qSystem(mainWgt *);
                qSystem(QNPInstance *);
                

        private:
                mainWgt * receiver;
                QNPInstance *qnpi;
};

#endif  /* qSYSTEM_h_ */


