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

device.h

Go to the documentation of this file.
00001 
00002 #ifndef OpieToothDevice_H
00003 #define OpieToothDevice_H
00004 
00005 #include <qobject.h>
00006 #include <qstring.h>
00007 #include <qvaluelist.h>
00008 
00009 #include <sys/types.h>
00010 
00011 namespace Opie {namespace Core {class OProcess;}}
00012 namespace OpieTooth {
00018     class Device : public QObject {
00019 
00020         Q_OBJECT
00021 
00022     public:
00023 
00032     Device(const QString &device, const QString& mode, const QString& speed);
00033 
00037         ~Device();
00038 
00042         void attach();
00043 
00047         void detach();
00048 
00053         bool isLoaded()const;
00054 
00059         QString devName()const ; // hci0
00060 
00061     signals:
00062 
00068         void device(const QString& device, bool up );
00069     private slots:
00070         virtual void slotExited( Opie::Core::OProcess* );
00071         virtual void slotStdOut(Opie::Core::OProcess*, char*, int );
00072         virtual void slotStdErr(Opie::Core::OProcess*, char*, int );
00073     private:
00074         class Private;
00075         Private *d;
00076         QString m_device;
00077         bool m_attached:1;
00078         Opie::Core::OProcess* m_hci;
00079         Opie::Core::OProcess* m_process;
00080         QString m_devId;
00081         QString m_mode;
00082         QString m_speed;
00083         pid_t pid;
00084         QCString m_output;
00085     };
00086 };
00087 
00088 #endif

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