00001 #ifndef startdunconnection_h 00002 #define startdunconnection_h 00003 00004 #include <qobject.h> 00005 #include "connection.h" 00006 #include <opie2/oprocess.h> 00007 00008 namespace OpieTooth { 00009 00010 class StartDunConnection : StartConnection { 00011 00012 Q_OBJECT 00013 00014 public: 00015 StartDunConnection(); 00016 StartDunConnection( QString mac ); 00017 ~StartDunConnection(); 00018 00019 QString name(); 00020 void setName( QString name ); 00021 StartConnection::ConnectionType type(); 00022 void setConnectionType( ); 00023 void start(); 00024 void stop(); 00025 00026 private: 00027 QString m_name; 00028 QString m_mac; 00029 ConnectionType m_connectionType; 00030 Opie::Core::OProcess* m_dunConnect; 00031 00032 private slots: 00033 void slotExited( Opie::Core::OProcess* proc ); 00034 void slotStdOut( Opie::Core::OProcess* proc, char* chars, int len ); 00035 }; 00036 00037 00038 } 00039 00040 #endif
1.4.2