if ( data.length() > 0 ) { resize( PacketLen + data.length()*2+2 ); QString tmpData = data; this->setUnicodeString( PacketLen, tmpData, data.length()*2 ); setShort ( 1, PacketLen+data.length()*2 ); setShort ( PacketLen+data.length()*2, 0 ); }
resize( PacketLen + affix.length() + params.length() * 2 + 2 ); setShort( 1, PacketLen + affix.length() + params.length() * 2 + 2 ); setAsciiString( 49, affix.latin1(), affix.length() + 1 ); setUnicodeString( 50 + affix.length(), params, params.length()*2+2 );
	void setParams ( const QString &data )	{		if ( data.length() > 0 )		{			resize( PacketLen + data.length()*2+2 );			QString tmpData = data; // go around the const stuff.			this->setUnicodeString( PacketLen, tmpData, data.length()*2 );			setShort ( 1, PacketLen+data.length()*2 );			setShort ( PacketLen+data.length()*2, 0 );		}	}