kstars
telescopewizardprocess.h
Go to the documentation of this file.00001 /* Telescope wizard 00002 Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com) 00003 00004 This application is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 */ 00009 00010 #ifndef TELESCOPEWIZARDPROCESS_H 00011 #define TELESCOPEWIZARDPROCESS_H 00012 00013 #include <qstringlist.h> 00014 00015 #include "telescopewizard.h" 00016 00017 class KStars; 00018 class INDIMenu; 00019 class INDIDriver; 00020 class QTimer; 00021 class INDI_D; 00022 00023 class KProgressDialog; 00024 00025 class telescopeWizardProcess : public telescopeWizard 00026 { 00027 00028 Q_OBJECT 00029 00030 public: 00031 telescopeWizardProcess( QWidget* parent = 0, const char* name = 0); 00032 ~telescopeWizardProcess(); 00033 00034 unsigned int currentPage; 00035 enum { INTRO_P=0, MODEL_P=1, TELESCOPE_P=2, LOCAL_P=3, PORT_P=4 }; 00036 00037 private: 00038 KStars * ksw; 00039 INDIMenu *indimenu; 00040 INDIDriver *indidriver; 00041 QTimer *newDeviceTimer; 00042 00043 INDI_D *indiDev; 00044 00045 KProgressDialog *progressScan; 00046 00047 QStringList portList; 00048 QString currentDevice; 00049 00050 int currentPort; 00051 int timeOutCount; 00052 bool INDIMessageBar; 00053 bool linkRejected; 00054 00055 int establishLink(); 00056 void Reset(); 00057 00058 public slots: 00059 void processNext(); 00060 void processBack(); 00061 void newTime(); 00062 void newLocation(); 00063 void processPort(); 00064 void scanPorts(); 00065 void linkSuccess(); 00066 00067 }; 00068 00069 00070 00071 00072 #endif