00001 00008 00009 #ifndef SRCP_VIRTUAL_CLIENT_H 00010 #define SRCP_VIRTUAL_CLIENT_H 00011 00012 #include "virtual_client.h" 00013 #include "srcp_socket.h" 00014 #include "rail.h" 00015 #include "engine.h" 00016 00024 class SrcpVirtualClient : public VirtualClient 00025 { 00026 00027 Q_OBJECT 00028 00029 public : 00030 00032 SrcpVirtualClient( QObject* parent ) ; 00033 00035 ~SrcpVirtualClient() ; 00036 00038 SrcpSocket* commandClient() ; 00039 00040 public slots : 00041 00044 void setConnection( const bool &c ) ; 00045 00046 private slots : 00047 00051 virtual void parseInfo( QString info ) = 0 ; 00052 00062 virtual void srcpHandshake() = 0; 00063 00064 private : 00066 SrcpSocket *_infoClient ; 00067 00069 SrcpSocket *_commandClient ; 00070 } ; 00071 00072 #endif // SRCP_CLIENT_ABSTRACT