Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

master.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Yann Hodique                                    *
00003  *   Yann.Hodique@lifl.fr                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef _MASTER_H_
00012 #define _MASTER_H_
00013 
00014 #include <qwidget.h>
00015 #include <qstring.h>
00016 
00017 #include "MtpContext.h"
00018 
00019 class Master : public QWidget {
00020     Q_OBJECT
00021 public:  
00022     Master(QWidget* parent = 0, const char* name = 0, WFlags fl = 0) : QWidget(parent, name, fl) {
00023   m_context = new MtpContext;
00024     }
00025     
00026     ~Master() {
00027   delete m_context;
00028     }
00029     
00030     MtpContext* context() { return m_context; }
00031     
00032     virtual void displayStderr(const QString&) = 0;
00033     virtual void displayStdout(const QString&) = 0;
00034     virtual void send(const QString &) = 0;
00035     
00036 public slots:
00037     virtual void slotLinkClicked(const QString &) {}
00038 
00039 private:
00040 MtpContext* m_context;
00041 };
00042 
00043 #endif

Generated on Sat May 10 15:09:26 2003 for qnet by doxygen1.3