KProtocolThread: public QThread{public: void sendCommand( int code, const QByteArray &data );protected slots: void sendCommandImplementation( int code, const QByteArray &data );};void KProtocolThread::sendCommand( int code, const QByteArray &data ){ QMetaObject::invokeMethod( this, "sendCommandImplementation", Qt::QueuedConnection, Q_ARG( int, code ), Q_ARG( QByteArray, data ) );}
theProtocolThread->PostCommand(code, data);