Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qlocalsocket.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the QtNetwork module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6464    which blocks until the operation is complete or the timeout expires.
    6565
    66     Note that this feature is not supported on Window 9x.
     66    Note that this feature is not supported on versions of Windows earlier than
     67    Windows XP.
    6768
    6869    \sa QLocalServer
     
    103104    specified by \a socketState.
    104105
    105     Note: It is not possible to initialize two local sockets with the same
     106    \note It is not possible to initialize two local sockets with the same
    106107    native socket descriptor.
    107108
     
    208209    returns false.
    209210
    210     Note: The socket's state must be ConnectedState before reading
     211    \note The socket's state must be ConnectedState before reading
    211212    and writing can occur.
    212213
    213     \sa state()
     214    \sa state(), connectToServer()
    214215*/
    215216
     
    244245
    245246/*!
    246     \fn bool QLocalSocket::waitForConnected(int msec)
    247 
    248     Waits until the socket is connected, up to \a msec milliseconds. If the
     247    \fn bool QLocalSocket::waitForConnected(int msecs)
     248
     249    Waits until the socket is connected, up to \a msecs milliseconds. If the
    249250    connection has been established, this function returns true; otherwise
    250251    it returns false. In the case where it returns false, you can call
     
    256257    \snippet doc/src/snippets/code/src_network_socket_qlocalsocket_unix.cpp 0
    257258
    258     If msecs is -1, this function will not time out.
     259    If \a msecs is -1, this function will not time out.
    259260
    260261    \sa connectToServer(), connected()
     
    275276    \snippet doc/src/snippets/code/src_network_socket_qlocalsocket_unix.cpp 1
    276277
    277     If msecs is -1, this function will not time out.
     278    If \a msecs is -1, this function will not time out.
    278279
    279280    \sa disconnectFromServer(), close()
     
    310311
    311312    QLocalSocket::LocalSocketError is not a registered metatype, so for queued
    312     connections, you will have to register it with Q_DECLARE_METATYPE.
    313 
    314     \sa error(), errorString()
     313    connections, you will have to register it with Q_DECLARE_METATYPE() and
     314    qRegisterMetaType().
     315
     316    \sa error(), errorString(), {Creating Custom Qt Types}
    315317*/
    316318
     
    322324
    323325    QLocalSocket::SocketState is not a registered metatype, so for queued
    324     connections, you will have to register it with Q_DECLARE_METATYPE.
    325 
    326     \sa state()
     326    connections, you will have to register it with Q_DECLARE_METATYPE() and
     327    qRegisterMetaType().
     328
     329    \sa state(), {Creating Custom Qt Types}
    327330*/
    328331
     
    366369    Returns the server path that the socket is connected to.
    367370
    368     Note: This is platform specific
     371    \note The return value of this function is platform specific.
    369372
    370373    \sa connectToServer(), serverName()
     
    469472        break;
    470473    default:
    471         debug << "QLocalSocket::SocketError(" << int(error) << ")";
     474        debug << "QLocalSocket::SocketError(" << int(error) << ')';
    472475        break;
    473476    }
     
    491494        break;
    492495    default:
    493         debug << "QLocalSocket::SocketState(" << int(state) << ")";
     496        debug << "QLocalSocket::SocketState(" << int(state) << ')';
    494497        break;
    495498    }
Note: See TracChangeset for help on using the changeset viewer.