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

modeminfo.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *            kPPP: A front end for pppd for the KDE project
00004  *
00005  * $Id: modeminfo.h,v 1.3 2003/08/09 17:14:55 kergoth Exp $
00006  * 
00007  * Copyright (C) 1997 Bernd Johannes Wuebben 
00008  * wuebben@math.cornell.edu
00009  *
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this program; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  *
00025  */
00026 
00027 
00028 #ifndef _MODEMINFO_H_
00029 #define _MODEMINFO_H_
00030 
00031 #include <qdialog.h>
00032 #include <qlineedit.h>
00033 #include <qpushbutton.h>
00034 #include <qlabel.h>
00035 #include <qevent.h>
00036 #include <qtimer.h>
00037 //#include <kprogress.h>
00038 #include <qprogressbar.h>
00039 
00040 class Modem;
00041 
00042 const int NUM_OF_ATI = 8;
00043 
00044 
00045 class ModemTransfer : public QDialog {
00046   Q_OBJECT
00047 public:
00048   ModemTransfer(Modem*, QWidget *parent=0, const char *name=0);
00049   
00050 public slots:
00051   void init();
00052   void readtty();
00053   void do_script();
00054   void time_out_slot();
00055   void cancelbutton();
00056   void readChar(unsigned char);
00057 
00058 private:
00059   void ati_done();
00060 
00061 protected:
00062   void closeEvent(QCloseEvent *e);
00063 
00064 private:
00065   Modem *_modem;
00066   int   step;
00067   QString readbuffer;
00068 
00069   QPushButton *cancel;
00070   QProgressBar *progressBar;
00071   QLabel *statusBar;
00072 
00073   QTimer *timeout_timer;
00074   QTimer *scripttimer;
00075   QString ati_query_strings[NUM_OF_ATI];
00076 };
00077 
00078 
00079 class ModemInfo : public QDialog {
00080   Q_OBJECT
00081 public:
00082   ModemInfo(QWidget *parent=0, const char *name=0);
00083 
00084 public:
00085   void setAtiString(int num, QString s);
00086 
00087 private:
00088   QLabel *ati_label[NUM_OF_ATI];
00089   QLineEdit *ati_label_result[NUM_OF_ATI];
00090 };
00091 
00092 #endif

Generated on Sat Nov 5 16:17:51 2005 for OPIE by  doxygen 1.4.2