Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omgpluginmessenger.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Tim Sutton   *
00003  *   tim@linfiniti.com   *
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  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef OMGPLUGINMESSENGER_H
00022 #define OMGPLUGINMESSENGER_H
00023 
00024 //QT Includes
00025 #include <QObject>
00026 #include <QString>
00027 
00035 class OMG_LIB_EXPORT OmgPluginMessenger : public QObject
00036 {
00037 Q_OBJECT;
00038 public:
00039   OmgPluginMessenger(QObject *parent=0); 
00040   virtual ~OmgPluginMessenger();
00041 public slots:
00048   void emitError(QString theError);
00055   void emitMessage(QString theMessage);
00063   void emitModelError(QString theModelGuid,QString theMessage);
00071   void emitModelMessage(QString theModelGuid,QString theMessage);
00078   void emitModelDone(QString theModelGuid);
00086   void emitModelCreationProgress(QString theModelGuid,int theProgress);
00094   void emitModelProjectionProgress(QString theModelGuid,int theProgress);
00096   void emitRefresh();
00097 
00098   //these next slots are intended for use with scraper plugins
00099 
00108   void emitFileWritten(QString theShapeFile, QString theTextFile, QString theTaxonName,int theCount);
00114   void emitFileNotWritten(QString theTaxonName);
00115 signals:
00120   void error(QString);
00125   void message(QString);
00130   void modelError(QString theModelGuid,QString theMessage);
00135   void modelMessage(QString theModelGuid,QString theMessage);
00140   void modelDone(QString theModelGuid);
00146   void modelCreationProgress(QString theModelGuid,int theProgress);
00152   void modelProjectionProgress(QString theModelGuid,int theProgress);
00154   void refresh();
00155   
00156   // These next signals are intended for use with scraper plugins
00157 
00165   void fileWritten(QString theShapeFile, QString theTextFile, QString theTaxonName,int theCount);
00170   void fileNotWritten(QString theTaxonName);
00171 };
00172 
00173 #endif //OMGPLUGINMESSENGER

Generated on Mon Apr 28 15:09:02 2008 for openModellerDesktop by  doxygen 1.4.1-20050210