Ignore:
Timestamp:
May 16, 2014, 9:51:55 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to latest 0.8.7

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/qtsingleapplication/qtlocalpeer.cpp

    r128 r165  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 **
    6 ** Contact: Nokia Corporation (qt-info@nokia.com)
    7 **
    8 ** This file is part of a Qt Solutions component.
    9 **
     3** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
     5**
     6** This file is part of the Qt Solutions component.
     7**
     8** $QT_BEGIN_LICENSE:BSD$
    109** You may use this file under the terms of the BSD license as follows:
    1110**
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
     21**     of its contributors may be used to endorse or promote products derived
     22**     from this software without specific prior written permission.
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
    3736**
     37** $QT_END_LICENSE$
     38**
    3839****************************************************************************/
    3940
    4041
    4142#include "qtlocalpeer.h"
    42 #include <QtCore/QCoreApplication>
    43 #include <QtCore/QTime>
    44 
    45 #if defined(Q_OS_WIN)
    46 #include <QtCore/QLibrary>
    47 #include <QtCore/qt_windows.h>
     43#include <QCoreApplication>
     44#include <QTime>
     45
     46#if defined(Q_OS_WIN)
     47#include <QLibrary>
     48#include <qt_windows.h>
    4849typedef BOOL(WINAPI*PProcessIdToSessionId)(DWORD,DWORD*);
    4950static PProcessIdToSessionId pProcessIdToSessionId = 0;
    5051#endif
    5152#if defined(Q_OS_UNIX) || defined(Q_OS_OS2)
     53#include <sys/types.h>
    5254#include <time.h>
    5355#include <unistd.h>
     
    196198    socket->write(ack, qstrlen(ack));
    197199    socket->waitForBytesWritten(1000);
     200    socket->waitForDisconnected(1000); // make sure client reads ack
    198201    delete socket;
    199202    emit messageReceived(message); //### (might take a long time to return)
Note: See TracChangeset for help on using the changeset viewer.