examples/network/securesocketclient/sslclient.cpp
changeset 18 2f34d5167611
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the examples of the Qt Toolkit.
     7 ** This file is part of the examples of the Qt Toolkit.
     8 **
     8 **
   175 }
   175 }
   176 
   176 
   177 void SslClient::sendData()
   177 void SslClient::sendData()
   178 {
   178 {
   179     QString input = form->sessionInput->text();
   179     QString input = form->sessionInput->text();
   180     appendString(input + "\n");
   180     appendString(input + '\n');
   181     socket->write(input.toUtf8() + "\r\n");
   181     socket->write(input.toUtf8() + "\r\n");
   182     form->sessionInput->clear();
   182     form->sessionInput->clear();
   183 }
   183 }
   184 
   184 
   185 void SslClient::sslErrors(const QList<QSslError> &errors)
   185 void SslClient::sslErrors(const QList<QSslError> &errors)