QWS removal, part 2

This commit is contained in:
Lars Knoll 2011-05-02 16:01:57 +02:00
parent 481cd6a6b5
commit eba9bad431
165 changed files with 28 additions and 22325 deletions

View File

@ -1,85 +0,0 @@
#
# qmake configuration for freebsd-g++ with Qtopia Core
#
MAKEFILE_GENERATOR = UNIX
TARGET_PLATFORM = unix
TEMPLATE = app
CONFIG += qt warn_on release
QT += core gui network
QMAKE_INCREMENTAL_STYLE = sublib
QMAKE_CC = gcc
QMAKE_LEX = flex
QMAKE_LEXFLAGS =
QMAKE_YACC = yacc
QMAKE_YACCFLAGS = -d
QMAKE_CFLAGS = -pipe
QMAKE_CFLAGS_DEPS = -M
QMAKE_CFLAGS_WARN_ON = -Wall -W
QMAKE_CFLAGS_WARN_OFF = -w
QMAKE_CFLAGS_RELEASE = -O2 -fno-default-inline
QMAKE_CFLAGS_DEBUG = -g
QMAKE_CFLAGS_SHLIB = -fPIC
QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE
QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden
QMAKE_CXX = g++
QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_TRANSFORMED
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
# Addon software goes into /usr/local on the BSDs, by default we will look there
QMAKE_INCDIR = /usr/local/include
QMAKE_LIBDIR = /usr/local/lib
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
QMAKE_INCDIR_QTOPIA = $(QPEDIR)/include
QMAKE_LIBDIR_QTOPIA = $(QPEDIR)/lib
QMAKE_LINK = g++
QMAKE_LINK_SHLIB = g++
QMAKE_LINK_C = gcc
QMAKE_LINK_C_SHLIB = gcc
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
QMAKE_LFLAGS_SHLIB = -shared
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD = -pthread
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
QMAKE_LIBS =
QMAKE_LIBS_QT = -lqte
QMAKE_LIBS_QT_THREAD = -lqte-mt
QMAKE_LIBS_THREAD =
QMAKE_LIBS_OPENGL =
QMAKE_LIBS_QTOPIA = -lqpe -lqtopia
QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
QMAKE_AR = ar cqs
QMAKE_OBJCOPY = objcopy
QMAKE_RANLIB =
QMAKE_TAR = tar -cf
QMAKE_GZIP = gzip -9f
QMAKE_COPY = cp -f
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
include(../../common/unix.conf)
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../freebsd-g++/qplatformdefs.h"

View File

@ -1,21 +0,0 @@
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,21 +0,0 @@
#
# qmake configuration for building with arm-none-linux-gnueabi-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-none-linux-gnueabi-gcc
QMAKE_CXX = arm-none-linux-gnueabi-g++
QMAKE_LINK = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = arm-none-linux-gnueabi-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,23 +0,0 @@
#
# qmake configuration for building for ARMv6 devices with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
QMAKE_CFLAGS += -march=armv6
QMAKE_CXXFLAGS += -march=armv6
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,21 +0,0 @@
#
# qmake configuration for building with avr32-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = avr32-linux-gcc
QMAKE_CXX = avr32-linux-g++
QMAKE_LINK = avr32-linux-g++
QMAKE_LINK_SHLIB = avr32-linux-g++
# modifications to linux.conf
QMAKE_AR = avr32-linux-ar cqs
QMAKE_OBJCOPY = avr32-linux-objcopy
QMAKE_STRIP = avr32-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,30 +0,0 @@
#
# qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler
#
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
QMAKE_CFLAGS = $$QMAKE_CFLAGS -DQT_QWS_CELLON -DQWS
QMAKE_CXXFLAGS = $$QMAKE_CXXFLAGS -DQT_QWS_CELLON -DQWS
QMAKE_CFLAGS_RELEASE ~= s/-O2/-Os/
QMAKE_CXXFLAGS_RELEASE ~= s/-O2/-Os/
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,27 +0,0 @@
#
# qmake configuration for linux-dm7000-g++, for Dream Multimedia's DM7000S
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = powerpc-tuxbox-linux-gnu-gcc
QMAKE_CFLAGS = -pipe -msoft-float -meabi
QMAKE_CFLAGS_RELEASE = -O2 -mcpu=405 -mmultiple -mstring
QMAKE_CFLAGS_DEBUG = -ggdb3
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
QMAKE_CXX = powerpc-tuxbox-linux-gnu-g++
QMAKE_LINK = powerpc-tuxbox-linux-gnu-g++
QMAKE_LINK_SHLIB = powerpc-tuxbox-linux-gnu-g++
# modifications to linux.conf
QMAKE_AR = powerpc-tuxbox-linux-gnu-ar cqs
QMAKE_OBJCOPY = powerpc-tuxbox-linux-gnu-objcopy
QMAKE_STRIP = powerpc-tuxbox-linux-gnu-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,25 +0,0 @@
#
# qmake configuration for linux-dm800-g++, for Dream Multimedia's DM800
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = mipsel-linux-gcc
QMAKE_CXX = mipsel-linux-g++
QMAKE_LINK = mipsel-linux-g++
QMAKE_LINK_SHLIB = mipsel-linux-g++
QMAKE_CFLAGS += -mabi=32 -mips32
QMAKE_CFLAGS_RELEASE += -fexpensive-optimizations -frename-registers -O2
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
# modifications to linux.conf
QMAKE_AR = mipsel-linux-ar cqs
QMAKE_OBJCOPY = mipsel-linux-objcopy
QMAKE_STRIP = mipsel-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,15 +0,0 @@
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CFLAGS += -m32
QMAKE_CXXFLAGS += -m32
QMAKE_LFLAGS += -m32
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,10 +0,0 @@
#
# qmake configuration for building with g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,22 +0,0 @@
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc -DQT_QWS_IPAQ
QMAKE_CXX = arm-linux-g++ -DQT_QWS_IPAQ
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,24 +0,0 @@
#
# qmake configuration for linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
QMAKE_LSB = 1
# modifications to g++.conf
QMAKE_CC = lsbcc
QMAKE_CXX = lsbc++
QMAKE_CFLAGS = -pipe -DQT_LINUXBASE -fno-stack-protector
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
QMAKE_LINK = lsbc++
QMAKE_LINK_SHLIB = lsbc++
QMAKE_LFLAGS += -fno-stack-protector
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,23 +0,0 @@
#
# qmake configuration for building with mipsel-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = mips-linux-gcc
QMAKE_CXX = mips-linux-g++
QMAKE_CFLAGS += -mips32
QMAKE_CXXFLAGS += -mips32
QMAKE_LINK = mips-linux-g++
QMAKE_LINK_SHLIB = mips-linux-g++
# modifications to linux.conf
QMAKE_AR = mips-linux-ar cqs
QMAKE_OBJCOPY = mips-linux-objcopy
QMAKE_STRIP = mips-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,29 +0,0 @@
#
# qmake configuration for building with nacl-g++
#
include(../../common/linux.conf)
include(../../common/qws.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
QT = core gui
QMAKE_CC = nacl-gcc
QMAKE_CXX = nacl-g++
QMAKE_LINK = nacl-g++
QMAKE_LINK_SHLIB = nacl-g++
QMAKE_AR = nacl-ar q
QMAKE_OBJCOPY = nacl-objcopy
QMAKE_STRIP = nacl-strip
# work around linker crash when using PIC
QMAKE_CFLAGS_STATIC_LIB -= -fPIC
QMAKE_CFLAGS_SHLIB -= -fPIC
QMAKE_CXXFLAGS_STATIC_LIB -= -fPIC
QMAKE_CXXFLAGS_SHLIB -= -fPIC
#QMAKE_CFLAGS += -pipe -DXP_UNIX -DNACL_STANDALONE=1
QMAKE_LIBS_DYNLOAD -= -ldl
load(qt_config)

View File

@ -1,69 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H
// Get Qt defines/settings
#define _POSIX_TIMERS
#include "qglobal.h"
// extra disabling.
#ifdef __native_client__
#define QT_NO_FSFILEENGINE
#endif
#define QT_NO_SOCKET_H
#define DIR void *
#define PATH_MAX 256
#include "../../common/posix/qplatformdefs.h"
#include "qfunctions_nacl.h"
#include <pthread.h>
#undef QT_LSTAT
#define QT_LSTAT QT_STAT
#endif // QPLATFORMDEFS_H

View File

@ -1,21 +0,0 @@
#
# qmake configuration for building with g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = powerpc-linux-gcc
QMAKE_CXX = powerpc-linux-g++
QMAKE_LINK = powerpc-linux-g++
QMAKE_LINK_SHLIB = powerpc-linux-g++
# modifications to linux.conf
QMAKE_AR = powerpc-linux-ar cqs
QMAKE_OBJCOPY = powerpc-linux-objcopy
QMAKE_STRIP = powerpc-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,21 +0,0 @@
#
# qmake configuration for building for SH devices with sh3-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = sh3-linux-gcc
QMAKE_CXX = sh3-linux-g++
QMAKE_LINK = sh3-linux-g++
QMAKE_LINK_SHLIB = sh3-linux-g++
# modifications to linux.conf
QMAKE_AR = sh3-linux-ar cqs
QMAKE_OBJCOPY = sh3-linux-objcopy
QMAKE_STRIP = sh3-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,24 +0,0 @@
#
# qmake configuration for building for SH4AL-DSP devices with sh3-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = sh3-linux-gcc
QMAKE_CXX = sh3-linux-g++
QMAKE_LINK = sh3-linux-g++
QMAKE_LINK_SHLIB = sh3-linux-g++
QMAKE_CFLAGS += -m4al
QMAKE_CXXFLAGS += -m4al
# modifications to linux.conf
QMAKE_AR = sh3-linux-ar cqs
QMAKE_OBJCOPY = sh3-linux-objcopy
QMAKE_STRIP = sh3-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,24 +0,0 @@
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
QMAKE_CFLAGS += -DQT_QWS_SHARP -DQT_QWS_EBX
QMAKE_CXXFLAGS += -DQT_QWS_SHARP -DQT_QWS_EBX
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,10 +0,0 @@
#
# qmake configuration for building with linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,15 +0,0 @@
#
# qmake configuration for building with linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CFLAGS += -m64
QMAKE_CXXFLAGS += -m64
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,26 +0,0 @@
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_CFLAGS += -DQT_QWS_ZYLONITE -DQWS -fno-rtti
QMAKE_CXXFLAGS += -DQT_QWS_ZYLONITE -DQWS -fno-rtti
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++
QMAKE_CFLAGS_RELEASE ~= s/-O2/-Os/
QMAKE_CXXFLAGS_RELEASE ~= s/-O2/-Os/
# modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_STRIP = arm-linux-strip
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../linux-g++/qplatformdefs.h"

View File

@ -1,90 +0,0 @@
#
# qmake configuration for macx-g++ with Qtopia Core
#
include(../../common/unix.conf)
MAKEFILE_GENERATOR = UNIX
TARGET_PLATFORM = macx
TEMPLATE = app
CONFIG += qt warn_on release link_prl
QT += core gui network
QMAKE_INCREMENTAL_STYLE = sublib
QMAKE_EXTENSION_SHLIB = dylib
QMAKE_CC = $(TB)cc
QMAKE_LEX = flex
QMAKE_LEXFLAGS =
QMAKE_YACC = yacc
QMAKE_YACCFLAGS = -d
QMAKE_CFLAGS = -pipe
QMAKE_CFLAGS_WARN_ON = -Wall -W
QMAKE_CFLAGS_WARN_OFF =
QMAKE_CFLAGS_RELEASE = -O2
QMAKE_CFLAGS_DEBUG = -g
QMAKE_CFLAGS_SHLIB = -fPIC
QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
QMAKE_CFLAGS_THREAD = -D_REENTRANT
QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden
QMAKE_CXX = c++
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_QWS_TRANSFORMED
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE -fno-default-inline
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
QMAKE_INCDIR =
QMAKE_LIBDIR =
QMAKE_INCDIR_X11 =
QMAKE_LIBDIR_X11 =
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
QMAKE_INCDIR_OPENGL =
QMAKE_LIBDIR_OPENGL =
QMAKE_INCDIR_QTOPIA = $(QPEDIR)/include
QMAKE_LIBDIR_QTOPIA = $(QPEDIR)/lib
QMAKE_LINK = $$QMAKE_CXX
QMAKE_LINK_SHLIB = $$QMAKE_CXX
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
QMAKE_LFLAGS_SHLIB = -dynamiclib
QMAKE_LFLAGS_INCREMENTAL = -undefined suppress -flat_namespace
QMAKE_LFLAGS_PLUGIN = -bundle
QMAKE_LFLAGS_SONAME =
QMAKE_LFLAGS_THREAD =
QMAKE_LFLAGS_RPATH =
QMAKE_LIBS =
QMAKE_LIBS_X11 =
QMAKE_LIBS_X11SM =
QMAKE_LIBS_QT = -lqte
QMAKE_LIBS_QT_THREAD = -lqte-mt
QMAKE_LIBS_QT_OPENGL = -lqgl
QMAKE_LIBS_QTOPIA = -lqpe -lqtopia
QMAKE_LIBS_THREAD =
QMAKE_LIBS_OPENGL =
QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
QMAKE_AR = ar cqs
QMAKE_OBJCOPY = objcopy
QMAKE_RANLIB =
QMAKE_TAR = tar -cf
QMAKE_GZIP = gzip -9f
QMAKE_COPY = cp -f
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../macx-g++/qplatformdefs.h"

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>@SHORT_VERSION@</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleSignature</key>
<string>@TYPEINFO@</string>
<key>CFBundleExecutable</key>
<string>@LIBRARY@</string>
<key>NOTE</key>
<string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
</dict>
</plist>

View File

@ -1,48 +0,0 @@
#
# qmake configuration for iphone-device-g++
#
include(../../common/mac.conf)
include(../../common/gcc-base-macx.conf)
include(../../common/g++-macx.conf)
MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CONFIG += qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl
QT += core gui
QMAKE_INCREMENTAL_STYLE = sublib
# Do not compile a few things
DEFINES += QT_NO_AUDIO_BACKEND QT_NO_NETWORKPROXY QT_NO_FILESYSTEMWATCHER
# You may need to change this to point to the iOS SDK you want to use.
QMAKE_IOS_DEV_PATH = /Developer/Platforms/iPhoneOS.platform/Developer
QMAKE_IOS_SDK = $$QMAKE_IOS_DEV_PATH/SDKs/iPhoneOS4.3.sdk
DEFINES += __IPHONE_OS_VERSION_MIN_REQUIRED=40200
#clear
QMAKE_MACOSX_DEPLOYMENT_TARGET =
QMAKE_LIBS_OPENGL_ES1 += -framework OpenGLES
QMAKE_LIBS_OPENGL_ES2 += -framework OpenGLES
# TARGET_PLATFORM = ios
QMAKE_CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
QMAKE_CXX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2
QMAKE_LINK = $$QMAKE_CXX
QMAKE_LINK_SHLIB = $$QMAKE_CXX
QMAKE_CFLAGS += -arch armv7 -marm -isysroot $$QMAKE_IOS_SDK -fmessage-length=0 -fexceptions -miphoneos-version-min=4.2
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
QMAKE_OBJECTIVE_CFLAGS += -arch armv7 -marm -isysroot $$QMAKE_IOS_SDK -fmessage-length=0 -fexceptions -miphoneos-version-min=4.2 -fobjc-abi-version=2 -fobjc-legacy-dispatch
QMAKE_LFLAGS += -arch armv7 -marm -miphoneos-version-min=4.2 -Wl,-syslibroot,$$QMAKE_IOS_SDK
QMAKE_INCDIR_OPENGL =
QMAKE_LIBS_OPENGL =
QMAKE_LIBS_OPENGL_QT =
#QMAKE_RESOURCE =
QMAKE_FIX_RPATH = $$QMAKE_IOS_DEV_PATH/usr/bin/install_name_tool -id
QMAKE_AR = $$QMAKE_IOS_DEV_PATH/usr/bin/ar cq
QMAKE_RANLIB = $$QMAKE_IOS_DEV_PATH/usr/bin/ranlib -s
load(qt_config)

View File

@ -1,99 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H
// Get Qt defines/settings
#include "qglobal.h"
// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
#include <unistd.h>
// We are hot - unistd.h should have turned on the specific APIs we requested
#include <pthread.h>
#include <dirent.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <signal.h>
#define QT_NO_LIBRARY_UNLOAD
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/ipc.h>
#include <sys/time.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <netinet/in.h>
#ifndef QT_NO_IPV6IFNAME
#include <net/if.h>
#endif
#include "../../common/posix/qplatformdefs.h"
#undef QT_OPEN_LARGEFILE
#undef QT_SOCKLEN_T
#undef QT_SIGNAL_IGNORE
#define QT_OPEN_LARGEFILE 0
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
#define QT_SOCKLEN_T socklen_t
#else
#define QT_SOCKLEN_T int
#endif
#define QT_SIGNAL_IGNORE (void (*)(int))1
#define QT_SNPRINTF ::snprintf
#define QT_VSNPRINTF ::vsnprintf
#define QT_QPA_DEFAULT_PLATFORM_NAME "uikit"
#endif // QPLATFORMDEFS_H

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>@SHORT_VERSION@</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleSignature</key>
<string>@TYPEINFO@</string>
<key>CFBundleExecutable</key>
<string>@LIBRARY@</string>
<key>NOTE</key>
<string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
</dict>
</plist>

View File

@ -1,49 +0,0 @@
#
# qmake configuration for macx-g++
#
include(../../common/mac.conf)
include(../../common/gcc-base-macx.conf)
include(../../common/g++-macx.conf)
MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CONFIG += qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl
QT += core gui
QMAKE_INCREMENTAL_STYLE = sublib
# Do not compile a few things
DEFINES += QT_NO_AUDIO_BACKEND QT_NO_NETWORKPROXY QT_NO_FILESYSTEMWATCHER
# You may need to change this to point to the iOS SDK you want to use.
QMAKE_IOS_DEV_PATH = /Developer/Platforms/iPhoneSimulator.platform/Developer
QMAKE_IOS_SDK = $$QMAKE_IOS_DEV_PATH/SDKs/iPhoneSimulator4.2.sdk
DEFINES += __IPHONE_OS_VERSION_MIN_REQUIRED=40200
#clear
QMAKE_MACOSX_DEPLOYMENT_TARGET =
QMAKE_LIBS_OPENGL_ES1 += -framework OpenGLES
QMAKE_LIBS_OPENGL_ES2 += -framework OpenGLES
# TARGET_PLATFORM = ios
QMAKE_CC = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
QMAKE_CXX = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2
QMAKE_LINK = $$QMAKE_CXX
QMAKE_LINK_SHLIB = $$QMAKE_CXX
QMAKE_CFLAGS += -arch i386 -isysroot $$QMAKE_IOS_SDK
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
QMAKE_OBJECTIVE_CFLAGS += -arch i386 -isysroot $$QMAKE_IOS_SDK -fobjc-abi-version=2 -fobjc-legacy-dispatch
QMAKE_LFLAGS += -arch i386 -Wl,-syslibroot,$$QMAKE_IOS_SDK
QMAKE_INCDIR_OPENGL =
QMAKE_LIBS_OPENGL =
QMAKE_LIBS_OPENGL_QT =
#QMAKE_RESOURCE =
QMAKE_FIX_RPATH = $$QMAKE_IOS_DEV_PATH/usr/bin/install_name_tool -id
QMAKE_AR = $$QMAKE_IOS_DEV_PATH/usr/bin/ar cq
QMAKE_RANLIB = $$QMAKE_IOS_DEV_PATH/usr/bin/ranlib -s
load(qt_config)
QMAKE_OBJECTIVE_CFLAGS_X86 += -arch i386 -isysroot $$QMAKE_IOS_SDK -fobjc-abi-version=2 -fobjc-legacy-dispatch

View File

@ -1,99 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H
// Get Qt defines/settings
#include "qglobal.h"
// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
#include <unistd.h>
// We are hot - unistd.h should have turned on the specific APIs we requested
#include <pthread.h>
#include <dirent.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <signal.h>
#define QT_NO_LIBRARY_UNLOAD
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/ipc.h>
#include <sys/time.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <netinet/in.h>
#ifndef QT_NO_IPV6IFNAME
#include <net/if.h>
#endif
#include "../../common/posix/qplatformdefs.h"
#undef QT_OPEN_LARGEFILE
#undef QT_SOCKLEN_T
#undef QT_SIGNAL_IGNORE
#define QT_OPEN_LARGEFILE 0
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
#define QT_SOCKLEN_T socklen_t
#else
#define QT_SOCKLEN_T int
#endif
#define QT_SIGNAL_IGNORE (void (*)(int))1
#define QT_SNPRINTF ::snprintf
#define QT_VSNPRINTF ::vsnprintf
#define QT_QPA_DEFAULT_PLATFORM_NAME "uikit"
#endif // QPLATFORMDEFS_H

View File

@ -1,29 +0,0 @@
#
# qmake configuration for building with nacl-g++
#
include(../../common/linux.conf)
include(../../common/qws.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
QT = core gui
QMAKE_CC = nacl-gcc
QMAKE_CXX = nacl-g++
QMAKE_LINK = nacl-g++
QMAKE_LINK_SHLIB = nacl-g++
QMAKE_AR = nacl-ar q
QMAKE_OBJCOPY = nacl-objcopy
QMAKE_STRIP = nacl-strip
# work around linker crash when using PIC
QMAKE_CFLAGS_STATIC_LIB -= -fPIC
QMAKE_CFLAGS_SHLIB -= -fPIC
QMAKE_CXXFLAGS_STATIC_LIB -= -fPIC
QMAKE_CXXFLAGS_SHLIB -= -fPIC
#QMAKE_CFLAGS += -pipe -DXP_UNIX -DNACL_STANDALONE=1
QMAKE_LIBS_DYNLOAD -= -ldl
load(qt_config)

View File

@ -1,68 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H
#define _POSIX_TIMERS
#include "qglobal.h"
// extra disabling.
#ifdef __native_client__
#define QT_NO_FSFILEENGINE
#endif
#define QT_NO_SOCKET_H
#define DIR void *
#define PATH_MAX 256
#include "../../common/posix/qplatformdefs.h"
#include "qfunctions_nacl.h"
#include <pthread.h>
#undef QT_LSTAT
#define QT_LSTAT QT_STAT
#endif // QPLATFORMDEFS_H

View File

@ -1,89 +0,0 @@
#
# qmake configuration for solaris-g++ with Qtopia Core
#
MAKEFILE_GENERATOR = UNIX
TARGET_PLATFORM = unix
TEMPLATE = app
CONFIG += qt warn_on release link_prl
QT += core gui network
QMAKE_INCREMENTAL_STYLE = sublib
QMAKE_CC = gcc
QMAKE_LEX = flex
QMAKE_LEXFLAGS =
QMAKE_YACC = yacc
QMAKE_YACCFLAGS = -d
QMAKE_CFLAGS = -pipe
QMAKE_CFLAGS_WARN_ON = -Wall -W
QMAKE_CFLAGS_WARN_OFF =
QMAKE_CFLAGS_RELEASE = -O2 -fno-default-inline
QMAKE_CFLAGS_DEBUG = -g
QMAKE_CFLAGS_SHLIB = -fPIC
QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
QMAKE_CFLAGS_THREAD = -D_REENTRANT
QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden
QMAKE_CXX = g++
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQT_NO_SOUND -DQT_NO_QWS_LINUXFB -DQT_NO_QWS_TRANSFORMED
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
QMAKE_INCDIR =
QMAKE_LIBDIR =
QMAKE_INCDIR_X11 =
QMAKE_LIBDIR_X11 =
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
QMAKE_INCDIR_OPENGL =
QMAKE_LIBDIR_OPENGL =
QMAKE_INCDIR_QTOPIA = $(QPEDIR)/include
QMAKE_LIBDIR_QTOPIA = $(QPEDIR)/lib
QMAKE_LINK = g++
QMAKE_LINK_SHLIB = g++
QMAKE_LINK_C = gcc
QMAKE_LINK_C_SHLIB = gcc
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
QMAKE_LFLAGS_SHLIB = -shared
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD =
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
QMAKE_LIBS = -lsocket -lnsl -lresolv
QMAKE_LIBS_DYNLOAD = -ldl
QMAKE_LIBS_X11 =
QMAKE_LIBS_X11SM =
QMAKE_LIBS_QT = -lqte
QMAKE_LIBS_QT_THREAD = -lqte-mt
QMAKE_LIBS_QT_OPENGL = -lqgl
QMAKE_LIBS_QTOPIA = -lqpe -lqtopia
QMAKE_LIBS_THREAD = -lthread -lrt
QMAKE_LIBS_OPENGL =
QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
QMAKE_AR = ar cq
QMAKE_OBJCOPY = objcopy
QMAKE_RANLIB =
QMAKE_TAR = tar -cf
QMAKE_GZIP = gzip -9f
QMAKE_COPY = cp -f
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
load(qt_config)

View File

@ -1,42 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "../../solaris-g++/qplatformdefs.h"

View File

@ -12,7 +12,7 @@ contains(QT_CONFIG, accessibility) {
accessible/qaccessiblewidget.cpp \
accessible/qaccessibleplugin.cpp
mac:!embedded:!qpa {
mac:!qpa {
HEADERS += accessible/qaccessible_mac_p.h
OBJECTIVE_SOURCES += accessible/qaccessible_mac.mm \
accessible/qaccessible_mac_cocoa.mm

View File

@ -27,7 +27,7 @@ HEADERS += \
dialogs/qwizard.h \
dialogs/qprintpreviewdialog.h
!embedded:!qpa:mac {
!qpa:mac {
OBJECTIVE_SOURCES += dialogs/qfiledialog_mac.mm \
dialogs/qfontdialog_mac.mm \
dialogs/qnspanelproxy_mac.mm \
@ -61,7 +61,7 @@ win32 {
!win32-borland:!wince*: LIBS += -lshell32 # the filedialog needs this library
}
!mac:!embedded:!symbian:unix|qpa {
!mac:!symbian:unix|qpa {
HEADERS += dialogs/qpagesetupdialog_unix_p.h
SOURCES += dialogs/qprintdialog_unix.cpp \
dialogs/qpagesetupdialog_unix.cpp
@ -70,22 +70,6 @@ win32 {
dialogs/qprintpropertieswidget.ui
}
embedded {
contains(QT_CONFIG,qtopia) {
HEADERS += dialogs/qpagesetupdialog_unix_p.h
DEFINES += QTOPIA_PRINTDIALOG
SOURCES += dialogs/qprintdialog_qws.cpp \
dialogs/qpagesetupdialog_unix.cpp
} else {
HEADERS += dialogs/qpagesetupdialog_unix_p.h
SOURCES += dialogs/qprintdialog_unix.cpp \
dialogs/qpagesetupdialog_unix.cpp
FORMS += dialogs/qprintsettingsoutput.ui \
dialogs/qprintwidget.ui \
dialogs/qprintpropertieswidget.ui
}
}
wince*|symbian: FORMS += dialogs/qfiledialog_embedded.ui
else: FORMS += dialogs/qfiledialog.ui

View File

@ -25,19 +25,15 @@ contains(QT_CONFIG, egl): {
wince*: SOURCES += egl/qegl_wince.cpp
unix {
embedded {
SOURCES += egl/qegl_qws.cpp
} else {
qpa {
SOURCES += egl/qegl_qpa.cpp
} else {
symbian {
SOURCES += egl/qegl_symbian.cpp
} else {
SOURCES += egl/qegl_x11.cpp
}
}
}
qpa {
SOURCES += egl/qegl_qpa.cpp
} else {
symbian {
SOURCES += egl/qegl_symbian.cpp
} else {
SOURCES += egl/qegl_x11.cpp
}
}
}
} else:symbian {
DEFINES += QT_NO_EGL

View File

@ -1,40 +0,0 @@
# These defines might be necessary if your DirectFB driver doesn't
# support all of the DirectFB API.
#
#DEFINES += QT_DIRECTFB_SUBSURFACE
#DEFINES += QT_DIRECTFB_WINDOW_AS_CURSOR
#DEFINES += QT_NO_DIRECTFB_IMAGEPROVIDER
#DEFINES += QT_DIRECTFB_IMAGEPROVIDER_KEEPALIVE
#DEFINES += QT_DIRECTFB_IMAGECACHE
#DEFINES += QT_NO_DIRECTFB_WM
#DEFINES += QT_NO_DIRECTFB_LAYER
#DEFINES += QT_DIRECTFB_PALETTE
#DEFINES += QT_NO_DIRECTFB_PREALLOCATED
#DEFINES += QT_NO_DIRECTFB_MOUSE
#DEFINES += QT_NO_DIRECTFB_KEYBOARD
#DEFINES += QT_DIRECTFB_TIMING
#DEFINES += QT_NO_DIRECTFB_OPAQUE_DETECTION
#DEFINES += QT_NO_DIRECTFB_STRETCHBLIT
DIRECTFB_DRAWINGOPERATIONS=DRAW_RECTS|DRAW_LINES|DRAW_IMAGE|DRAW_PIXMAP|DRAW_TILED_PIXMAP|STROKE_PATH|DRAW_PATH|DRAW_POINTS|DRAW_ELLIPSE|DRAW_POLYGON|DRAW_TEXT|FILL_PATH|FILL_RECT|DRAW_COLORSPANS|DRAW_ROUNDED_RECT|DRAW_STATICTEXT
#DEFINES += \"QT_DIRECTFB_WARN_ON_RASTERFALLBACKS=$$DIRECTFB_DRAWINGOPERATIONS\"
#DEFINES += \"QT_DIRECTFB_DISABLE_RASTERFALLBACKS=$$DIRECTFB_DRAWINGOPERATIONS\"
HEADERS += $$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbkeyboard.h \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbmouse.h
SOURCES += $$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbkeyboard.cpp \
$$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp
QMAKE_CXXFLAGS += $$QT_CFLAGS_DIRECTFB
LIBS += $$QT_LIBS_DIRECTFB

View File

@ -1,226 +0,0 @@
# Qt for Embedded Linux
embedded {
CONFIG -= opengl x11
LIBS -= -dl
KERNEL_P = kernel
!mac:HEADERS += embedded/qsoundqss_qws.h
HEADERS += \
embedded/qcopchannel_qws.h \
embedded/qdecoration_qws.h \
embedded/qdecorationfactory_qws.h \
embedded/qdecorationplugin_qws.h \
embedded/qdirectpainter_qws.h \
embedded/qlock_p.h \
embedded/qscreen_qws.h \
embedded/qscreenmulti_qws_p.h \
embedded/qscreenproxy_qws.h \
embedded/qwindowsystem_qws.h \
embedded/qwindowsystem_p.h \
embedded/qwscommand_qws_p.h \
embedded/qwscursor_qws.h \
embedded/qwsdisplay_qws.h \
embedded/qwsdisplay_qws_p.h \
embedded/qwsevent_qws.h \
embedded/qwsmanager_qws.h \
embedded/qwsmanager_p.h \
embedded/qwsproperty_qws.h \
embedded/qwsprotocolitem_qws.h \
embedded/qtransportauth_qws.h \
embedded/qtransportauth_qws_p.h \
embedded/qtransportauthdefs_qws.h \
embedded/qwssocket_qws.h \
embedded/qwslock_p.h \
embedded/qwsutils_qws.h \
embedded/qwssharedmemory_p.h \
embedded/qwssignalhandler_p.h \
embedded/qwsembedwidget.h
!mac:SOURCES += embedded/qsoundqss_qws.cpp
SOURCES += \
embedded/qcopchannel_qws.cpp \
embedded/qdecoration_qws.cpp \
embedded/qdecorationfactory_qws.cpp \
embedded/qdecorationplugin_qws.cpp \
embedded/qdirectpainter_qws.cpp \
embedded/qlock.cpp \
embedded/qscreen_qws.cpp \
embedded/qscreenmulti_qws.cpp \
embedded/qscreenproxy_qws.cpp \
embedded/qwindowsystem_qws.cpp \
embedded/qwscommand_qws.cpp \
embedded/qwscursor_qws.cpp \
embedded/qwsevent_qws.cpp \
embedded/qwsmanager_qws.cpp \
embedded/qwsproperty_qws.cpp \
embedded/qtransportauth_qws.cpp \
embedded/qwslock.cpp \
embedded/qwssharedmemory.cpp \
embedded/qwssocket_qws.cpp \
embedded/qwssignalhandler.cpp \
embedded/qwsembedwidget.cpp
contains(QT_CONFIG,sxe)|contains(QT_CONFIG,qtopia) {
SOURCES += embedded/qunixsocket.cpp embedded/qunixsocketserver.cpp
HEADERS += embedded/qunixsocket_p.h embedded/qunixsocketserver_p.h
}
#
# Decorations
#
contains( decorations, default ) {
HEADERS += embedded/qdecorationdefault_qws.h
SOURCES += embedded/qdecorationdefault_qws.cpp
}
contains( decorations, styled ) {
HEADERS += embedded/qdecorationstyled_qws.h
SOURCES += embedded/qdecorationstyled_qws.cpp
}
contains( decorations, windows ) {
HEADERS += embedded/qdecorationwindows_qws.h
SOURCES += embedded/qdecorationwindows_qws.cpp
}
#
# Qt for Embedded Linux Drivers
#
HEADERS += embedded/qscreendriverplugin_qws.h \
embedded/qscreendriverfactory_qws.h \
embedded/qkbd_qws.h \
embedded/qkbd_qws_p.h \
embedded/qkbd_defaultmap_qws_p.h \
embedded/qkbddriverplugin_qws.h \
embedded/qkbddriverfactory_qws.h \
embedded/qmouse_qws.h \
embedded/qmousedriverplugin_qws.h \
embedded/qmousedriverfactory_qws.h
SOURCES += embedded/qscreendriverplugin_qws.cpp \
embedded/qscreendriverfactory_qws.cpp \
embedded/qkbd_qws.cpp \
embedded/qkbddriverplugin_qws.cpp \
embedded/qkbddriverfactory_qws.cpp \
embedded/qmouse_qws.cpp \
embedded/qmousedriverplugin_qws.cpp \
embedded/qmousedriverfactory_qws.cpp
#
# Graphics drivers
#
contains( gfx-drivers, linuxfb ) {
HEADERS += embedded/qscreenlinuxfb_qws.h
SOURCES += embedded/qscreenlinuxfb_qws.cpp
}
contains( gfx-drivers, qnx ) {
HEADERS += embedded/qscreenqnx_qws.h
SOURCES += embedded/qscreenqnx_qws.cpp
LIBS += -lgf
}
contains( gfx-drivers, integrityfb ) {
HEADERS += embedded/qscreenintegrityfb_qws.h
SOURCES += embedded/qscreenintegrityfb_qws.cpp
LIBS += -lfbdev
}
contains( gfx-drivers, qvfb ) {
HEADERS += embedded/qscreenvfb_qws.h
SOURCES += embedded/qscreenvfb_qws.cpp
}
contains( gfx-drivers, vnc ) {
VNCDIR = $$QT_SOURCE_TREE/src/plugins/gfxdrivers/vnc
INCLUDEPATH += $$VNCDIR
HEADERS += $$VNCDIR/qscreenvnc_qws.h \
$$VNCDIR/qscreenvnc_p.h
SOURCES += $$VNCDIR/qscreenvnc_qws.cpp
}
contains( gfx-drivers, transformed ) {
HEADERS += embedded/qscreentransformed_qws.h
SOURCES += embedded/qscreentransformed_qws.cpp
}
contains( gfx-drivers, directfb ) {
INCLUDEPATH += $$QT_SOURCE_TREE/src/plugins/gfxdrivers/directfb
include($$PWD/directfb.pri)
}
#
# Keyboard drivers
#
contains( kbd-drivers, qvfb ) {
HEADERS +=embedded/qkbdvfb_qws.h
SOURCES +=embedded/qkbdvfb_qws.cpp
!contains( kbd-drivers, qvfb ) {
kbd-drivers += qvfb
}
}
contains( kbd-drivers, tty ) {
HEADERS +=embedded/qkbdtty_qws.h
SOURCES +=embedded/qkbdtty_qws.cpp
}
contains( kbd-drivers, linuxinput ) {
HEADERS +=embedded/qkbdlinuxinput_qws.h
SOURCES +=embedded/qkbdlinuxinput_qws.cpp
}
contains( kbd-drivers, um ) {
HEADERS +=embedded/qkbdum_qws.h
SOURCES +=embedded/qkbdum_qws.cpp
}
contains( kbd-drivers, qnx ) {
HEADERS += embedded/qkbdqnx_qws.h
SOURCES += embedded/qkbdqnx_qws.cpp
}
contains( kbd-drivers, integrity ) {
HEADERS += embedded/qkbdintegrity_qws.h
SOURCES += embedded/qkbdintegrity_qws.cpp
}
#
# Mouse drivers
#
contains( mouse-drivers, qvfb ) {
HEADERS +=embedded/qmousevfb_qws.h
SOURCES +=embedded/qmousevfb_qws.cpp
}
contains( mouse-drivers, pc ) {
HEADERS +=embedded/qmousepc_qws.h
SOURCES +=embedded/qmousepc_qws.cpp
}
contains( mouse-drivers, linuxtp ) {
HEADERS +=embedded/qmouselinuxtp_qws.h
SOURCES +=embedded/qmouselinuxtp_qws.cpp
}
contains( mouse-drivers, tslib ) {
LIBS_PRIVATE += -lts
HEADERS +=embedded/qmousetslib_qws.h
SOURCES +=embedded/qmousetslib_qws.cpp
}
contains( mouse-drivers, linuxinput ) {
HEADERS +=embedded/qmouselinuxinput_qws.h
SOURCES +=embedded/qmouselinuxinput_qws.cpp
}
contains( mouse-drivers, qnx ) {
HEADERS += embedded/qmouseqnx_qws.h
SOURCES += embedded/qmouseqnx_qws.cpp
}
contains( mouse-drivers, integrity ) {
HEADERS += embedded/qmouseintegrity_qws.h
SOURCES += embedded/qmouseintegrity_qws.cpp
}
}

View File

@ -1,325 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qlock_p.h"
#ifdef QT_NO_QWS_MULTIPROCESS
QT_BEGIN_NAMESPACE
/* no multiprocess - use a dummy */
QLock::QLock(const QString & /*filename*/, char /*id*/, bool /*create*/)
: type(Read), data(0)
{
}
QLock::~QLock()
{
}
bool QLock::isValid() const
{
return true;
}
void QLock::lock(Type t)
{
data = (QLockData *)-1;
type = t;
}
void QLock::unlock()
{
data = 0;
}
bool QLock::locked() const
{
return data;
}
QT_END_NAMESPACE
#else // QT_NO_QWS_MULTIPROCESS
#if defined(Q_OS_DARWIN)
# define Q_NO_SEMAPHORE
#endif
#include "qwssignalhandler_p.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#if defined(Q_NO_SEMAPHORE)
# include <sys/stat.h>
# include <sys/file.h>
#else
# include <sys/sem.h>
#endif
#include <string.h>
#include <errno.h>
#include <qdebug.h>
#include <private/qcore_unix_p.h> // overrides QT_OPEN
QT_BEGIN_NAMESPACE
#define MAX_LOCKS 200 // maximum simultaneous read locks
class QLockData
{
public:
#ifdef Q_NO_SEMAPHORE
QByteArray file;
#endif // Q_NO_SEMAPHORE
int id;
int count;
bool owned;
};
/*!
\class QLock
\brief The QLock class is a wrapper for a System V shared semaphore.
\ingroup qws
\internal
It is used by \l{Qt for Embedded Linux} for synchronizing access to the graphics
card and shared memory region between processes.
*/
/*!
\enum QLock::Type
\value Read
\value Write
*/
/*!
\fn QLock::QLock(const QString &filename, char id, bool create)
Creates a lock. \a filename is the file path of the Unix-domain
socket the \l{Qt for Embedded Linux} client is using. \a id is the name of the
particular lock to be created on that socket. If \a create is true
the lock is to be created (as the Qt for Embedded Linux server does); if \a
create is false the lock should exist already (as the Qt for Embedded Linux
client expects).
*/
QLock::QLock(const QString &filename, char id, bool create)
{
data = new QLockData;
data->count = 0;
#ifdef Q_NO_SEMAPHORE
data->file = QString(filename+id).toLocal8Bit().constData();
for(int x = 0; x < 2; x++) {
data->id = QT_OPEN(data->file, O_RDWR | (x ? O_CREAT : 0), S_IRWXU);
if(data->id != -1 || !create) {
data->owned = x;
break;
}
}
#else
key_t semkey = ftok(filename.toLocal8Bit().constData(), id);
data->id = semget(semkey,0,0);
data->owned = create;
if (create) {
qt_semun arg; arg.val = 0;
if (data->id != -1)
semctl(data->id,0,IPC_RMID,arg);
data->id = semget(semkey,1,IPC_CREAT|0600);
arg.val = MAX_LOCKS;
semctl(data->id,0,SETVAL,arg);
QWSSignalHandler::instance()->addSemaphore(data->id);
}
#endif
if (data->id == -1) {
int eno = errno;
qWarning("Cannot %s semaphore %s '%c'", (create ? "create" : "get"),
qPrintable(filename), id);
qDebug() << "Error" << eno << strerror(eno);
}
}
/*!
\fn QLock::~QLock()
Destroys a lock
*/
QLock::~QLock()
{
if (locked())
unlock();
#ifdef Q_NO_SEMAPHORE
if(isValid()) {
QT_CLOSE(data->id);
if(data->owned)
unlink(data->file);
}
#else
if(data->owned)
QWSSignalHandler::instance()->removeSemaphore(data->id);
#endif
delete data;
}
/*!
\fn bool QLock::isValid() const
Returns true if the lock constructor was successful; returns false if
the lock could not be created or was not available to connect to.
*/
bool QLock::isValid() const
{
return (data->id != -1);
}
/*!
Locks the semaphore with a lock of type \a t. Locks can either be
\c Read or \c Write. If a lock is \c Read, attempts by other
processes to obtain \c Read locks will succeed, and \c Write
attempts will block until the lock is unlocked. If locked as \c
Write, all attempts to lock by other processes will block until
the lock is unlocked. Locks are stacked: i.e. a given QLock can be
locked multiple times by the same process without blocking, and
will only be unlocked after a corresponding number of unlock()
calls.
*/
void QLock::lock(Type t)
{
if (!data->count) {
#ifdef Q_NO_SEMAPHORE
int op = LOCK_SH;
if(t == Write)
op = LOCK_EX;
for(int rv=1; rv;) {
rv = flock(data->id, op);
if (rv == -1 && errno != EINTR)
qDebug("Semop lock failure %s",strerror(errno));
}
#else
sembuf sops;
sops.sem_num = 0;
sops.sem_flg = SEM_UNDO;
if (t == Write) {
sops.sem_op = -MAX_LOCKS;
type = Write;
} else {
sops.sem_op = -1;
type = Read;
}
int rv;
do {
rv = semop(data->id,&sops,1);
if (rv == -1 && errno != EINTR)
qDebug("Semop lock failure %s",strerror(errno));
} while (rv == -1 && errno == EINTR);
#endif
}
data->count++;
}
/*!
\fn void QLock::unlock()
Unlocks the semaphore. If other processes were blocking waiting to
lock() the semaphore, one of them will wake up and succeed in
lock()ing.
*/
void QLock::unlock()
{
if(data->count) {
data->count--;
if(!data->count) {
#ifdef Q_NO_SEMAPHORE
for(int rv=1; rv;) {
rv = flock(data->id, LOCK_UN);
if (rv == -1 && errno != EINTR)
qDebug("Semop lock failure %s",strerror(errno));
}
#else
sembuf sops;
sops.sem_num = 0;
sops.sem_op = 1;
sops.sem_flg = SEM_UNDO;
if (type == Write)
sops.sem_op = MAX_LOCKS;
int rv;
do {
rv = semop(data->id,&sops,1);
if (rv == -1 && errno != EINTR)
qDebug("Semop unlock failure %s",strerror(errno));
} while (rv == -1 && errno == EINTR);
#endif
}
} else {
qDebug("Unlock without corresponding lock");
}
}
/*!
\fn bool QLock::locked() const
Returns true if the lock is currently held by the current process;
otherwise returns false.
*/
bool QLock::locked() const
{
return (data->count > 0);
}
QT_END_NAMESPACE
#endif // QT_NO_QWS_MULTIPROCESS

View File

@ -1,100 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QLOCK_P_H
#define QLOCK_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. This header file may
// change from version to version without notice, or even be
// removed.
//
// We mean it.
//
#include "QtCore/qstring.h"
QT_BEGIN_NAMESPACE
class QLockData;
class Q_GUI_EXPORT QLock
{
public:
QLock(const QString &filename, char id, bool create = false);
~QLock();
enum Type { Read, Write };
bool isValid() const;
void lock(Type type);
void unlock();
bool locked() const;
private:
Type type;
QLockData *data;
};
// Nice class for ensuring the lock is released.
// Just create one on the stack and the lock is automatically released
// when QLockHandle is destructed.
class Q_GUI_EXPORT QLockHandle
{
public:
QLockHandle(QLock *l, QLock::Type type) : qlock(l) { qlock->lock(type); }
~QLockHandle() { if (locked()) qlock->unlock(); }
void lock(QLock::Type type) { qlock->lock(type); }
void unlock() { qlock->unlock(); }
bool locked() const { return qlock->locked(); }
private:
QLock *qlock;
};
QT_END_NAMESPACE
#endif // QLOCK_P_H

File diff suppressed because it is too large Load Diff

View File

@ -1,202 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QUNIXSOCKET_P_H
#define QUNIXSOCKET_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtNetwork/qabstractsocket.h>
#include <QtCore/qiodevice.h>
#include <QtCore/qlist.h>
#include <QtCore/qshareddata.h>
extern "C" {
#include <sys/types.h>
};
QT_BEGIN_NAMESPACE
class QUnixSocketRights;
class QUnixSocketRightsPrivate;
class QUnixSocketPrivate;
class QUnixSocketMessagePrivate;
struct iovec;
class Q_GUI_EXPORT QUnixSocketRights {
public:
QUnixSocketRights(int);
~QUnixSocketRights();
QUnixSocketRights(const QUnixSocketRights &);
QUnixSocketRights & operator=(const QUnixSocketRights &);
bool isValid() const;
int dupFd() const;
int peekFd() const;
private:
friend class QUnixSocket;
QUnixSocketRights(int,int);
QSharedDataPointer<QUnixSocketRightsPrivate> d;
};
class Q_GUI_EXPORT QUnixSocketMessage {
public:
QUnixSocketMessage();
QUnixSocketMessage(const QByteArray &);
QUnixSocketMessage(const QByteArray &, const QList<QUnixSocketRights> &);
QUnixSocketMessage(const QUnixSocketMessage &);
QUnixSocketMessage(const iovec*, int);
QUnixSocketMessage & operator=(const QUnixSocketMessage &);
~QUnixSocketMessage();
void setBytes(const QByteArray &);
void setRights(const QList<QUnixSocketRights> &);
const QList<QUnixSocketRights> & rights() const;
bool rightsWereTruncated() const;
const QByteArray & bytes() const;
pid_t processId() const;
uid_t userId() const;
gid_t groupId() const;
void setProcessId(pid_t);
void setUserId(uid_t);
void setGroupId(gid_t);
bool isValid() const;
private:
friend class QUnixSocket;
friend class QUnixSocketPrivate;
QSharedDataPointer<QUnixSocketMessagePrivate> d;
};
class Q_GUI_EXPORT QUnixSocket : public QIODevice
{
Q_OBJECT
public:
QUnixSocket(QObject * = 0);
QUnixSocket(qint64, qint64, QObject * = 0);
virtual ~QUnixSocket();
enum SocketState {
UnconnectedState = QAbstractSocket::UnconnectedState,
HostLookupState = QAbstractSocket::HostLookupState,
ConnectingState = QAbstractSocket::ConnectingState,
ConnectedState = QAbstractSocket::ConnectedState,
BoundState = QAbstractSocket::BoundState,
ClosingState = QAbstractSocket::ClosingState,
ListeningState = QAbstractSocket::ListeningState,
};
enum SocketError { NoError, InvalidPath, ResourceError,
NonexistentPath, ConnectionRefused, UnknownError,
ReadFailure, WriteFailure };
bool connect(const QByteArray & path);
bool setSocketDescriptor(int socketDescriptor);
int socketDescriptor() const;
void abort();
void close();
bool flush();
SocketError error() const;
SocketState state() const;
QByteArray address() const;
qint64 bytesAvailable() const;
qint64 bytesToWrite() const;
qint64 readBufferSize() const;
void setReadBufferSize(qint64 size);
qint64 rightsBufferSize() const;
void setRightsBufferSize(qint64 size);
bool canReadLine() const;
qint64 write(const char * data, qint64 maxSize)
{ return QIODevice::write(data, maxSize); }
qint64 write(const QByteArray & byteArray)
{ return QIODevice::write(byteArray); }
qint64 read(char * data, qint64 maxSize)
{ return QIODevice::read(data, maxSize); }
QByteArray read(qint64 maxSize)
{ return QIODevice::read(maxSize); }
qint64 write(const QUnixSocketMessage &);
QUnixSocketMessage read();
virtual bool isSequential() const;
virtual bool waitForReadyRead(int msec = 300);
virtual bool waitForBytesWritten(int msec = 300);
Q_SIGNALS:
void stateChanged(SocketState socketState);
protected:
virtual qint64 readData(char * data, qint64 maxSize);
virtual qint64 writeData (const char * data, qint64 maxSize);
private:
QUnixSocket(const QUnixSocket &);
QUnixSocket & operator=(const QUnixSocket &);
QUnixSocketPrivate * d;
};
QT_END_NAMESPACE
#endif // QUNIXSOCKET_P_H

View File

@ -1,376 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qunixsocketserver_p.h"
// #define QUNIXSOCKETSERVER_DEBUG
#ifdef QUNIXSOCKETSERVER_DEBUG
#include <QDebug>
#endif
#include <QtCore/qsocketnotifier.h>
extern "C" {
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <errno.h>
};
#define UNIX_PATH_MAX 108 // From unix(7)
QT_BEGIN_NAMESPACE
class QUnixSocketServerPrivate : public QObject
{
Q_OBJECT
public:
QUnixSocketServerPrivate(QUnixSocketServer * parent)
: QObject(), me(parent), fd(-1), maxConns(30),
error(QUnixSocketServer::NoError), acceptNotifier(0)
{}
QUnixSocketServer * me;
int fd;
int maxConns;
QByteArray address;
QUnixSocketServer::ServerError error;
QSocketNotifier * acceptNotifier;
public slots:
void acceptActivated();
};
/*!
\class QUnixSocketServer
\internal
\brief The QUnixSocketServer class provides a Unix domain socket based server.
\omit
\ingroup Platform::DeviceSpecific
\ingroup Platform::OS
\ingroup Platform::Communications
\endomit
\ingroup qws
This class makes it possible to accept incoming Unix domain socket
connections. Call \l QUnixSocketServer::listen() to have the server listen
for incoming connections on a specified path. The pure virtual
\l QUnixSocketServer::incomingConnection() is called each time a new
connection is established. Users must inherit from QUnixSocketServer and
implement this method.
If an error occurs, \l QUnixSocketServer::serverError() returns the type of
error. Errors can only occur during server establishment - that is, during a
call to \l QUnixSocketServer::listen(). Calling \l QUnixSocketServer::close()
causes QUnixSocketServer to stop listening for connections and reset its
state.
QUnixSocketServer is often used in conjunction with the \l QUnixSocket class.
\sa QUnixSocket
*/
/*!
\enum QUnixSocketServer::ServerError
The ServerError enumeration represents the errors that can occur during server
establishment. The most recent error can be retrieved through a call to
\l QUnixSocketServer::serverError().
\value NoError No error has occurred.
\value InvalidPath An invalid path endpoint was passed to
\l QUnixSocketServer::listen(). As defined by unix(7), invalid paths
include an empty path, or what more than 107 characters long.
\value ResourceError An error acquiring or manipulating the system's socket
resources occurred. For example, if the process runs out of available
socket descriptors, a ResourceError will occur.
\value BindError The server was unable to bind to the specified path.
\value ListenError The server was unable to listen on the specified path for
incoming connections.
*/
/*!
Create a new Unix socket server with the given \a parent.
*/
QUnixSocketServer::QUnixSocketServer(QObject *parent)
: QObject(parent), d(0)
{
}
/*!
Stops listening for incoming connection and destroys the Unix socket server.
*/
QUnixSocketServer::~QUnixSocketServer()
{
close();
if(d)
delete d;
}
/*!
Stop listening for incoming connections and resets the Unix socket server's
state. Calling this method while \l {QUnixSocketServer::isListening()}{not listening } for incoming connections is a no-op.
\sa QUnixSocketServer::listen()
*/
void QUnixSocketServer::close()
{
if(!d)
return;
if(d->acceptNotifier) {
d->acceptNotifier->setEnabled(false);
delete d->acceptNotifier;
}
d->acceptNotifier = 0;
if(-1 != d->fd) {
#ifdef QUNIXSOCKET_DEBUG
int closerv =
#endif
::close(d->fd);
#ifdef QUNIXSOCKET_DEBUG
if(0 != closerv) {
qDebug() << "QUnixSocketServer: Unable to close socket ("
<< strerror(errno) << ')';
}
#endif
}
d->fd = -1;
d->address = QByteArray();
d->error = NoError;
}
/*!
Returns the last server error. Errors may only occur within a call to
\l QUnixSocketServer::listen(), and only when such a call fails.
This method is not destructive, so multiple calls to
QUnixSocketServer::serverError() will return the same value. The error is
only reset by an explicit call to \l QUnixSocketServer::close() or
by further calls to \l QUnixSocketServer::listen().
*/
QUnixSocketServer::ServerError QUnixSocketServer::serverError() const
{
if(!d)
return NoError;
return d->error;
}
/*!
Returns true if this server is listening for incoming connections, false
otherwise.
\sa QUnixSocketServer::listen()
*/
bool QUnixSocketServer::isListening() const
{
if(!d)
return false;
return (-1 != d->fd);
}
/*!
Tells the server to listen for incoming connections on \a path. Returns true
if it successfully initializes, false otherwise. In the case of failure, the
\l QUnixSocketServer::serverError() error status is set accordingly.
Calling this method while the server is already running will result in the
server begin reset, and then attempting to listen on \a path. This will not
affect connections established prior to the server being reset, but further
incoming connections on the previous path will be refused.
The server can be explicitly reset by a call to \l QUnixSocketServer::close().
\sa QUnixSocketServer::close()
*/
bool QUnixSocketServer::listen(const QByteArray & path)
{
if(d) {
close(); // Any existing server is destroyed
} else {
d = new QUnixSocketServerPrivate(this);
}
if(path.isEmpty() || path.size() > UNIX_PATH_MAX) {
d->error = InvalidPath;
return false;
}
unlink( path ); // ok if this fails
// Create the socket
d->fd = ::socket(PF_UNIX, SOCK_STREAM, 0);
if(-1 == d->fd) {
#ifdef QUNIXSOCKETSERVER_DEBUG
qDebug() << "QUnixSocketServer: Unable to create socket ("
<< strerror(errno) << ')';
#endif
close();
d->error = ResourceError;
return false;
}
// Construct our unix address
struct ::sockaddr_un addr;
addr.sun_family = AF_UNIX;
::memcpy(addr.sun_path, path.data(), path.size());
if(path.size() < UNIX_PATH_MAX)
addr.sun_path[path.size()] = '\0';
// Attempt to bind
if(-1 == ::bind(d->fd, (sockaddr *)&addr, sizeof(sockaddr_un))) {
#ifdef QUNIXSOCKETSERVER_DEBUG
qDebug() << "QUnixSocketServer: Unable to bind socket ("
<< strerror(errno) << ')';
#endif
close();
d->error = BindError;
return false;
}
// Listen to socket
if(-1 == ::listen(d->fd, d->maxConns)) {
#ifdef QUNIXSOCKETSERVER_DEBUG
qDebug() << "QUnixSocketServer: Unable to listen socket ("
<< strerror(errno) << ')';
#endif
close();
d->error = ListenError;
return false;
}
// Success!
d->address = path;
d->acceptNotifier = new QSocketNotifier(d->fd, QSocketNotifier::Read, d);
d->acceptNotifier->setEnabled(true);
QObject::connect(d->acceptNotifier, SIGNAL(activated(int)),
d, SLOT(acceptActivated()));
return true;
}
/*!
Returns the Unix path on which this server is listening. If this server is
not listening, and empty address will be returned.
*/
QByteArray QUnixSocketServer::serverAddress() const
{
if(!d)
return QByteArray();
return d->address;
}
int QUnixSocketServer::socketDescriptor() const
{
if (!d)
return -1;
return d->fd;
}
/*!
Returns the maximum length the queue of pending connections may grow to. That
is, the maximum number of clients attempting to connect for which the Unix
socket server has not yet accepted and passed to
\l QUnixSocketServer::incomingConnection(). If a connection request arrives
with the queue full, the client may receive a connection refused notification.
By default a queue length of 30 is used.
\sa QUnixSocketServer::setMaxPendingConnections()
*/
int QUnixSocketServer::maxPendingConnections() const
{
if(!d)
return 30;
return d->maxConns;
}
/*!
Sets the maximum length the queue of pending connections may grow to
\a numConnections. This value will only apply to
\l QUnixSocketServer::listen() calls made following the value change - it will
not be retroactively applied.
\sa QUnixSocketServer::maxPendingConnections()
*/
void QUnixSocketServer::setMaxPendingConnections(int numConnections)
{
Q_ASSERT(numConnections >= 1);
if(!d)
d = new QUnixSocketServerPrivate(this);
d->maxConns = numConnections;
}
/*!
\fn void QUnixSocketServer::incomingConnection(int socketDescriptor)
This method is invoked each time a new incoming connection is established with
the server. Clients must reimplement this function in their QUnixSocketServer
derived class to handle the connection.
A common approach to handling the connection is to pass \a socketDescriptor to
a QUnixSocket instance.
\sa QUnixSocket
*/
void QUnixSocketServerPrivate::acceptActivated()
{
::sockaddr_un r;
socklen_t len = sizeof(sockaddr_un);
int connsock = ::accept(fd, (sockaddr *)&r, &len);
#ifdef QUNIXSOCKETSERVER_DEBUG
qDebug() << "QUnixSocketServer: Accept connection " << connsock;
#endif
if(-1 != connsock)
me->incomingConnection(connsock);
}
QT_END_NAMESPACE
#include "qunixsocketserver.moc"

View File

@ -1,98 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QUNIXSOCKETSERVER_P_H
#define QUNIXSOCKETSERVER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtCore/qobject.h>
QT_BEGIN_NAMESPACE
class QUnixSocketServerPrivate;
class Q_GUI_EXPORT QUnixSocketServer : public QObject
{
Q_OBJECT
public:
enum ServerError { NoError, InvalidPath, ResourceError, BindError,
ListenError };
QUnixSocketServer(QObject *parent=0);
virtual ~QUnixSocketServer();
void close();
ServerError serverError() const;
bool isListening() const;
bool listen(const QByteArray & path);
int socketDescriptor() const;
QByteArray serverAddress() const;
int maxPendingConnections() const;
void setMaxPendingConnections(int numConnections);
protected:
virtual void incomingConnection(int socketDescriptor) = 0;
private:
QUnixSocketServer(const QUnixSocketServer &);
QUnixSocketServer & operator=(const QUnixSocketServer &);
friend class QUnixSocketServerPrivate;
QUnixSocketServerPrivate * d;
};
QT_END_NAMESPACE
#endif // QUNIXSOCKETSERVER_P_H

View File

@ -1,119 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QVFBHDR_H
#define QVFBHDR_H
#include <QtGui/qcolor.h>
#include <QtGui/qwindowdefs.h>
#include <QtCore/qrect.h>
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(Gui)
#ifndef QT_QWS_TEMP_DIR
# define QT_QWS_TEMP_DIR QLatin1String("/tmp")
#endif
#ifdef QT_PRIVATE_QWS
#define QT_VFB_DATADIR(DISPLAY) QString::fromLatin1("%1/qtembedded-%2-%3") \
.arg(QT_QWS_TEMP_DIR).arg(getuid()).arg(DISPLAY)
#define QT_VFB_MOUSE_PIPE(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/qtvfb_mouse"))
#define QT_VFB_KEYBOARD_PIPE(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/qtvfb_keyboard"))
#define QT_VFB_MAP(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/qtvfb_map"))
#define QT_VFB_SOUND_PIPE(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/qt_soundserver"))
#define QTE_PIPE(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/QtEmbedded"))
#define QTE_PIPE_QVFB(DISPLAY) QTE_PIPE(DISPLAY)
#else
#define QT_VFB_DATADIR(DISPLAY) QString::fromLatin1("%1/qtembedded-%2") \
.arg(QT_QWS_TEMP_DIR).arg(DISPLAY)
#define QT_VFB_MOUSE_PIPE(DISPLAY) QString::fromLatin1("%1/.qtvfb_mouse-%2") \
.arg(QT_QWS_TEMP_DIR).arg(DISPLAY)
#define QT_VFB_KEYBOARD_PIPE(DISPLAY) QString::fromLatin1("%1/.qtvfb_keyboard-%2") \
.arg(QT_QWS_TEMP_DIR).arg(DISPLAY)
#define QT_VFB_MAP(DISPLAY) QString::fromLatin1("%1/.qtvfb_map-%2") \
.arg(QT_QWS_TEMP_DIR).arg(DISPLAY)
#define QT_VFB_SOUND_PIPE(DISPLAY) QString::fromLatin1("%1/.qt_soundserver-%2") \
.arg(QT_QWS_TEMP_DIR).arg(DISPLAY)
#define QTE_PIPE(DISPLAY) QT_VFB_DATADIR(DISPLAY) \
.append(QLatin1String("/QtEmbedded-%1")).arg(DISPLAY)
#define QTE_PIPE_QVFB(DISPLAY) QTE_PIPE(DISPLAY)
#endif
struct QVFbHeader
{
int width;
int height;
int depth;
int linestep;
int dataoffset;
QRect update;
bool dirty;
int numcols;
QRgb clut[256];
int viewerVersion;
int serverVersion;
int brightness; // since 4.4.0
WId windowId; // since 4.5.0
};
struct QVFbKeyData
{
unsigned int keycode;
Qt::KeyboardModifiers modifiers;
unsigned short int unicode;
bool press;
bool repeat;
};
QT_END_NAMESPACE
QT_END_HEADER
#endif // QVFBHDR_H

View File

@ -1,315 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWINDOWSYSTEM_QWS_P_H
#define QWINDOWSYSTEM_QWS_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QWSServer class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include "private/qobject_p.h"
#include "qwindowsystem_qws.h"
#include "qbrush.h"
#include "qwsproperty_qws.h"
#include "qwscommand_qws_p.h"
#include "QtCore/qbasictimer.h"
QT_BEGIN_NAMESPACE
class QWSServerPrivate : public QObjectPrivate {
friend class QCopChannel;
friend class QWSMouseHandler;
friend class QWSWindow;
friend class QWSDisplay;
friend class QWSInputMethod;
Q_DECLARE_PUBLIC(QWSServer)
public:
QWSServerPrivate()
: screensaverintervals(0)
, screensavereventblocklevel(-1), screensaverblockevents(false)
, saver(0), cursorClient(0), mouseState(0), nReserved(0)
, doClientIsActive(false)
{
}
~QWSServerPrivate()
{
closeDisplay();
qDeleteAll(deletedWindows);
delete [] screensaverintervals;
delete saver;
qDeleteAll(windows);
windows.clear();
delete bgBrush;
bgBrush = 0;
}
QTime screensavertime;
QTimer* screensavertimer;
int* screensaverintervals;
int screensavereventblocklevel;
bool screensaverblockevents;
bool screensaverblockevent( int index, int *screensaverinterval, bool isDown );
QWSScreenSaver* saver;
QWSClient *cursorClient;
int mouseState;
// bool prevWin;
QList<QWSWindow*> deletedWindows;
QList<int> crashedClientIds;
void update_regions();
//private functions moved from class
private:
void initServer(int flags);
#ifndef QT_NO_COP
static void sendQCopEvent(QWSClient *c, const QString &ch,
const QString &msg, const QByteArray &data,
bool response = false);
#endif
void move_region(const QWSRegionMoveCommand *);
void set_altitude(const QWSChangeAltitudeCommand *);
void set_opacity(const QWSSetOpacityCommand *);
void request_focus(const QWSRequestFocusCommand *);
QRegion reserve_region(QWSWindow *window, const QRegion &region);
void request_region(int winId, const QString &surfaceKey,
const QByteArray &surfaceData,
const QRegion &region);
void repaint_region(int winId, int windowFlags, bool opaque, const QRegion &);
void destroy_region(const QWSRegionDestroyCommand *);
void name_region(const QWSRegionNameCommand *);
void set_identity(const QWSIdentifyCommand *);
#ifndef QT_NO_QWS_PROPERTIES
bool get_property(int winId, int property, const char *&data, int &len);
#endif
#ifndef QT_NO_QWS_INPUTMETHODS
void im_response(const QWSIMResponseCommand *);
void im_update(const QWSIMUpdateCommand *);
void send_im_mouse(const QWSIMMouseCommand *);
#endif
// not in ifndef as this results in more readable functions.
static void sendKeyEventUnfiltered(int unicode, int keycode, Qt::KeyboardModifiers modifiers,
bool isPress, bool autoRepeat);
static void sendMouseEventUnfiltered(const QPoint &pos, int state, int wheel = 0);
static void emergency_cleanup();
static QBrush *bgBrush;
void sendMaxWindowRectEvents(const QRect &rect);
void invokeIdentify(const QWSIdentifyCommand *cmd, QWSClient *client);
void invokeCreate(QWSCreateCommand *cmd, QWSClient *client);
void invokeRegionName(const QWSRegionNameCommand *cmd, QWSClient *client);
void invokeRegion(QWSRegionCommand *cmd, QWSClient *client);
void invokeRegionMove(const QWSRegionMoveCommand *cmd, QWSClient *client);
void invokeRegionDestroy(const QWSRegionDestroyCommand *cmd, QWSClient *client);
void invokeSetAltitude(const QWSChangeAltitudeCommand *cmd, QWSClient *client);
void invokeSetOpacity(const QWSSetOpacityCommand *cmd, QWSClient *client);
#ifndef QT_NO_QWS_PROPERTIES
void invokeAddProperty(QWSAddPropertyCommand *cmd);
void invokeSetProperty(QWSSetPropertyCommand *cmd);
void invokeRemoveProperty(QWSRemovePropertyCommand *cmd);
void invokeGetProperty(QWSGetPropertyCommand *cmd, QWSClient *client);
#endif //QT_NO_QWS_PROPERTIES
void invokeSetSelectionOwner(QWSSetSelectionOwnerCommand *cmd);
void invokeConvertSelection(QWSConvertSelectionCommand *cmd);
void invokeSetFocus(const QWSRequestFocusCommand *cmd, QWSClient *client);
void initIO();
void setFocus(QWSWindow*, bool gain);
#ifndef QT_NO_QWS_CURSOR
void invokeDefineCursor(QWSDefineCursorCommand *cmd, QWSClient *client);
void invokeSelectCursor(QWSSelectCursorCommand *cmd, QWSClient *client);
void invokePositionCursor(QWSPositionCursorCommand *cmd, QWSClient *client);
#endif
void invokeGrabMouse(QWSGrabMouseCommand *cmd, QWSClient *client);
void invokeGrabKeyboard(QWSGrabKeyboardCommand *cmd, QWSClient *client);
#ifndef QT_NO_SOUND
void invokePlaySound(QWSPlaySoundCommand *cmd, QWSClient *client);
#endif
#ifndef QT_NO_COP
void invokeRegisterChannel(QWSQCopRegisterChannelCommand *cmd,
QWSClient *client);
void invokeQCopSend(QWSQCopSendCommand *cmd, QWSClient *client);
#endif
void invokeRepaintRegion(QWSRepaintRegionCommand *cmd,
QWSClient *client);
#ifndef QT_NO_QWSEMBEDWIDGET
void invokeEmbed(QWSEmbedCommand *cmd, QWSClient *client);
#endif
#ifndef QT_NO_QWS_INPUTMETHODS
void invokeIMResponse(const QWSIMResponseCommand *cmd,
QWSClient *client);
void invokeIMUpdate(const QWSIMUpdateCommand *cmd,
QWSClient *client);
#endif
void invokeFont(const QWSFontCommand *cmd, QWSClient *client);
void invokeScreenTransform(const QWSScreenTransformCommand *cmd,
QWSClient *client);
QWSMouseHandler* newMouseHandler(const QString& spec);
void openDisplay();
void closeDisplay();
void showCursor();
void hideCursor();
void initializeCursor();
void resetEngine();
//private Q_SLOTS:
#ifndef QT_NO_QWS_MULTIPROCESS
void _q_clientClosed();
void _q_doClient();
void _q_deleteWindowsLater();
#endif
void _q_screenSaverWake();
void _q_screenSaverSleep();
void _q_screenSaverTimeout();
#ifndef QT_NO_QWS_MULTIPROCESS
void _q_newConnection();
#endif
//other private moved from class
void disconnectClient(QWSClient *);
void screenSave(int level);
void doClient(QWSClient *);
typedef QMap<int,QWSClient*>::Iterator ClientIterator;
typedef QMap<int,QWSClient*> ClientMap;
void handleWindowClose(QWSWindow *w);
void releaseMouse(QWSWindow* w);
void releaseKeyboard(QWSWindow* w);
void updateClientCursorPos();
uchar* sharedram;
int ramlen;
ClientMap clientMap;
#ifndef QT_NO_QWS_PROPERTIES
QWSPropertyManager propertyManager;
#endif
struct SelectionOwner {
int windowid;
struct Time {
void set(int h, int m, int s, int s2) {
hour = h; minute = m; sec = s; ms = s2;
}
int hour, minute, sec, ms;
} time;
} selectionOwner;
QTime timer;
int* screensaverinterval;
QWSWindow *focusw;
QWSWindow *mouseGrabber;
bool mouseGrabbing;
bool inputMethodMouseGrabbed;
int swidth, sheight, sdepth;
#ifndef QT_NO_QWS_CURSOR
bool haveviscurs;
QWSCursor *cursor; // cursor currently shown
QWSCursor *nextCursor; // cursor to show once grabbing is off
#endif
bool disablePainting;
QList<QWSMouseHandler*> mousehandlers;
#ifndef QT_NO_QWS_KEYBOARD
QList<QWSKeyboardHandler*> keyboardhandlers;
#endif
QList<QWSCommandStruct*> commandQueue;
// Window management
QList<QWSWindow*> windows; // first=topmost
int nReserved;
QWSWindow* newWindow(int id, QWSClient* client);
QWSWindow* findWindow(int windowid, QWSClient* client = 0);
void moveWindowRegion(QWSWindow*, int dx, int dy);
void setWindowRegion(QWSWindow*, const QRegion &r);
void raiseWindow(QWSWindow *, int = 0);
void lowerWindow(QWSWindow *, int = -1);
void exposeRegion(const QRegion &, int index = 0);
void setCursor(QWSCursor *curs);
// multimedia
#ifndef QT_NO_SOUND
QWSSoundServer *soundserver;
#endif
#ifndef QT_NO_COP
QMap<QString, QList<QWSClient*> > channels;
#endif
#ifndef QT_NO_QWS_MULTIPROCESS
QWSServerSocket *ssocket;
#endif
// filename -> refcount
QMap<QByteArray, int> fontReferenceCount;
QBasicTimer fontCleanupTimer;
void referenceFont(QWSClientPrivate *client, const QByteArray &font);
void dereferenceFont(QWSClientPrivate *client, const QByteArray &font);
void cleanupFonts(bool force = false);
void sendFontRemovedEvent(const QByteArray &font);
bool doClientIsActive;
QList<QWSClient*> pendingDoClients;
};
QT_END_NAMESPACE
#endif

View File

@ -1,227 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwsembedwidget.h"
#ifndef QT_NO_QWSEMBEDWIDGET
#include <qwsdisplay_qws.h>
#include <private/qwidget_p.h>
#include <private/qwsdisplay_qws_p.h>
#include <private/qwscommand_qws_p.h>
QT_BEGIN_NAMESPACE
// TODO:
// Must remove window decorations from the embedded window
// Focus In/Out, Keyboard/Mouse...
//
// BUG: what if my parent change parent?
class QWSEmbedWidgetPrivate : public QWidgetPrivate
{
Q_DECLARE_PUBLIC(QWSEmbedWidget);
public:
QWSEmbedWidgetPrivate(int winId);
void updateWindow();
void resize(const QSize &size);
QWidget *window;
WId windowId;
WId embeddedId;
};
QWSEmbedWidgetPrivate::QWSEmbedWidgetPrivate(int winId)
: window(0), windowId(0), embeddedId(winId)
{
}
void QWSEmbedWidgetPrivate::updateWindow()
{
Q_Q(QWSEmbedWidget);
QWidget *win = q->window();
if (win == window)
return;
if (window) {
window->removeEventFilter(q);
QWSEmbedCommand command;
command.setData(windowId, embeddedId, QWSEmbedEvent::StopEmbed);
QWSDisplay::instance()->d->sendCommand(command);
}
window = win;
if (!window)
return;
windowId = window->winId();
QWSEmbedCommand command;
command.setData(windowId, embeddedId, QWSEmbedEvent::StartEmbed);
QWSDisplay::instance()->d->sendCommand(command);
window->installEventFilter(q);
q->installEventFilter(q);
}
void QWSEmbedWidgetPrivate::resize(const QSize &size)
{
if (!window)
return;
Q_Q(QWSEmbedWidget);
QWSEmbedCommand command;
command.setData(windowId, embeddedId, QWSEmbedEvent::Region,
QRect(q->mapToGlobal(QPoint(0, 0)), size));
QWSDisplay::instance()->d->sendCommand(command);
}
/*!
\class QWSEmbedWidget
\since 4.2
\ingroup qws
\ingroup advanced
\brief The QWSEmbedWidget class enables embedded top-level widgets
in Qt for Embedded Linux.
Note that this class is only available in \l{Qt for Embedded Linux}.
QWSEmbedWidget inherits QWidget and acts as any other widget, but
in addition it is capable of embedding another top-level widget.
An example of use is when painting directly onto the screen using
the QDirectPainter class. Then the reserved region can be embedded
into an instance of the QWSEmbedWidget class, providing for
example event handling and size policies for the reserved region.
All that is required to embed a top-level widget is its window ID.
\sa {Qt for Embedded Linux Architecture}
*/
/*!
Constructs a widget with the given \a parent, embedding the widget
identified by the given window \a id.
*/
QWSEmbedWidget::QWSEmbedWidget(WId id, QWidget *parent)
: QWidget(*new QWSEmbedWidgetPrivate(id), parent, 0)
{
Q_D(QWSEmbedWidget);
d->updateWindow();
}
/*!
Destroys this widget.
*/
QWSEmbedWidget::~QWSEmbedWidget()
{
Q_D(QWSEmbedWidget);
if (!d->window)
return;
QWSEmbedCommand command;
command.setData(d->windowId, d->embeddedId, QWSEmbedEvent::StopEmbed);
QWSDisplay::instance()->d->sendCommand(command);
}
/*!
\reimp
*/
bool QWSEmbedWidget::eventFilter(QObject *object, QEvent *event)
{
Q_D(QWSEmbedWidget);
if (object == d->window && event->type() == QEvent::Move)
resizeEvent(0);
else if (object == this && event->type() == QEvent::Hide)
d->resize(QSize());
return QWidget::eventFilter(object, event);
}
/*!
\reimp
*/
void QWSEmbedWidget::changeEvent(QEvent *event)
{
Q_D(QWSEmbedWidget);
if (event->type() == QEvent::ParentChange)
d->updateWindow();
}
/*!
\reimp
*/
void QWSEmbedWidget::resizeEvent(QResizeEvent*)
{
Q_D(QWSEmbedWidget);
d->resize(rect().size());
}
/*!
\reimp
*/
void QWSEmbedWidget::moveEvent(QMoveEvent*)
{
resizeEvent(0);
}
/*!
\reimp
*/
void QWSEmbedWidget::hideEvent(QHideEvent*)
{
Q_D(QWSEmbedWidget);
d->resize(QSize());
}
/*!
\reimp
*/
void QWSEmbedWidget::showEvent(QShowEvent*)
{
Q_D(QWSEmbedWidget);
d->resize(rect().size());
}
QT_END_NAMESPACE
#endif // QT_NO_QWSEMBEDWIDGET

View File

@ -1,82 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSEMBEDWIDGET_H
#define QWSEMBEDWIDGET_H
#include <QtGui/qwidget.h>
#ifndef QT_NO_QWSEMBEDWIDGET
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(Gui)
class QWSEmbedWidgetPrivate;
class Q_GUI_EXPORT QWSEmbedWidget : public QWidget
{
Q_OBJECT
public:
QWSEmbedWidget(WId winId, QWidget *parent = 0);
~QWSEmbedWidget();
protected:
bool eventFilter(QObject *object, QEvent *event);
void changeEvent(QEvent *event);
void resizeEvent(QResizeEvent *event);
void moveEvent(QMoveEvent *event);
void hideEvent(QHideEvent *event);
void showEvent(QShowEvent *event);
private:
Q_DECLARE_PRIVATE(QWSEmbedWidget)
};
QT_END_NAMESPACE
QT_END_HEADER
#endif // QT_NO_QWSEMBEDWIDGET
#endif // QWSEMBEDWIDGET_H

View File

@ -1,236 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwslock_p.h"
#ifndef QT_NO_QWS_MULTIPROCESS
#include "qwssignalhandler_p.h"
#include <qglobal.h>
#include <qdebug.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/time.h>
#include <time.h>
#ifdef Q_OS_LINUX
#include <linux/version.h>
#endif
#include <unistd.h>
#include <private/qcore_unix_p.h>
QT_BEGIN_NAMESPACE
#ifdef QT_NO_SEMAPHORE
#error QWSLock currently requires semaphores
#endif
QWSLock::QWSLock()
{
semId = semget(IPC_PRIVATE, 3, IPC_CREAT | 0666);
if (semId == -1) {
perror("QWSLock::QWSLock");
qFatal("Unable to create semaphore");
}
QWSSignalHandler::instance()->addSemaphore(semId);
qt_semun semval;
semval.val = 1;
if (semctl(semId, BackingStore, SETVAL, semval) == -1) {
perror("QWSLock::QWSLock");
qFatal("Unable to initialize backingstore semaphore");
}
lockCount[BackingStore] = 0;
if (semctl(semId, Communication, SETVAL, semval) == -1) {
perror("QWSLock::QWSLock");
qFatal("Unable to initialize communication semaphore");
}
lockCount[Communication] = 0;
semval.val = 0;
if (semctl(semId, RegionEvent, SETVAL, semval) == -1) {
perror("QWSLock::QWSLock");
qFatal("Unable to initialize region event semaphore");
}
}
QWSLock::QWSLock(int id)
{
semId = id;
QWSSignalHandler::instance()->addSemaphore(semId);
lockCount[0] = lockCount[1] = 0;
}
QWSLock::~QWSLock()
{
if (semId == -1)
return;
QWSSignalHandler::instance()->removeSemaphore(semId);
}
static bool forceLock(int semId, int semNum, int)
{
int ret;
do {
sembuf sops = { semNum, -1, 0 };
// As the BackingStore lock is a mutex, and only one process may own
// the lock, it's safe to use SEM_UNDO. On the other hand, the
// Communication lock is locked by the client but unlocked by the
// server and therefore can't use SEM_UNDO.
if (semNum == QWSLock::BackingStore)
sops.sem_flg |= SEM_UNDO;
ret = semop(semId, &sops, 1);
if (ret == -1 && errno != EINTR)
qDebug("QWSLock::lock: %s", strerror(errno));
} while (ret == -1 && errno == EINTR);
return (ret != -1);
}
static bool up(int semId, int semNum)
{
int ret;
do {
sembuf sops = { semNum, 1, 0 };
ret = semop(semId, &sops, 1);
if (ret == -1 && errno != EINTR)
qDebug("QWSLock::up: %s", strerror(errno));
} while (ret == -1 && errno == EINTR);
return (ret != -1);
}
static bool down(int semId, int semNum)
{
int ret;
do {
sembuf sops = { semNum, -1, 0 };
ret = semop(semId, &sops, 1);
if (ret == -1 && errno != EINTR)
qDebug("QWSLock::down: %s", strerror(errno));
} while (ret == -1 && errno == EINTR);
return (ret != -1);
}
static int getValue(int semId, int semNum)
{
int ret;
do {
ret = semctl(semId, semNum, GETVAL, 0);
if (ret == -1 && errno != EINTR)
qDebug("QWSLock::getValue: %s", strerror(errno));
} while (ret == -1 && errno == EINTR);
return ret;
}
bool QWSLock::lock(LockType type, int timeout)
{
if (type == RegionEvent)
return up(semId, RegionEvent);
if (hasLock(type)) {
++lockCount[type];
return true;
}
if (!forceLock(semId, type, timeout))
return false;
++lockCount[type];
return true;
}
bool QWSLock::hasLock(LockType type)
{
if (type == RegionEvent)
return (getValue(semId, RegionEvent) == 0);
return (lockCount[type] > 0);
}
void QWSLock::unlock(LockType type)
{
if (type == RegionEvent) {
down(semId, RegionEvent);
return;
}
if (hasLock(type)) {
--lockCount[type];
if (hasLock(type))
return;
}
const int semNum = type;
int ret;
do {
sembuf sops = {semNum, 1, 0};
if (semNum == QWSLock::BackingStore)
sops.sem_flg |= SEM_UNDO;
ret = semop(semId, &sops, 1);
if (ret == -1 && errno != EINTR)
qDebug("QWSLock::unlock: %s", strerror(errno));
} while (ret == -1 && errno == EINTR);
}
bool QWSLock::wait(LockType type, int timeout)
{
bool ok = forceLock(semId, type, timeout);
if (ok)
unlock(type);
return ok;
}
QT_END_NAMESPACE
#endif // QT_NO_QWS_MULTIPROCESS

View File

@ -1,85 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSLOCK_P_H
#define QWSLOCK_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. This header file may
// change from version to version without notice, or even be
// removed.
//
// We mean it.
//
#include <qglobal.h>
QT_BEGIN_NAMESPACE
#ifndef QT_NO_QWS_MULTIPROCESS
class QWSLock
{
public:
enum LockType { BackingStore, Communication, RegionEvent };
QWSLock();
QWSLock(int lockId);
~QWSLock();
bool lock(LockType type, int timeout = -1);
void unlock(LockType type);
bool wait(LockType type, int timeout = -1);
bool hasLock(LockType type);
int id() const { return semId; }
private:
int semId;
int lockCount[2];
};
QT_END_NAMESPACE
#endif // QT_NO_QWS_MULTIPROCESS
#endif // QWSLOCK_P_H

View File

@ -1,122 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSMANAGER_P_H
#define QWSMANAGER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QLibrary class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include "QtGui/qregion.h"
#include "QtGui/qdecoration_qws.h"
#ifndef QT_NO_QWS_MANAGER
#include "QtCore/qhash.h"
QT_BEGIN_NAMESPACE
class QWidget;
class QMenu;
class QWSManagerPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QWSManager)
public:
QWSManagerPrivate();
int activeRegion;
QWidget *managed;
QMenu *popup;
enum MenuAction {
NormalizeAction,
TitleAction,
BottomRightAction,
MinimizeAction,
MaximizeAction,
CloseAction,
LastMenuAction
};
QAction *menuActions[LastMenuAction];
static QWidget *active;
static QPoint mousePos;
// Region caching to avoid getting a regiontype's
// QRegion for each mouse move event
int previousRegionType;
bool previousRegionRepainted; // Hover/Press handled
bool entireDecorationNeedsRepaint;
struct RegionCaching {
int regionType;
QRegion region;
Qt::WindowFlags windowFlags;
QRect windowGeometry;
} cached_region;
bool newCachedRegion(const QPoint &pos);
int cachedRegionAt()
{ return cached_region.regionType; }
void dirtyRegion(int decorationRegion,
QDecoration::DecorationState state,
const QRegion &clip = QRegion());
void clearDirtyRegions();
QList<int> dirtyRegions;
QList<QDecoration::DecorationState> dirtyStates;
QRegion dirtyClip;
};
#endif // QT_NO_QWS_MANAGER
QT_END_NAMESPACE
#endif // QWSMANAGER_P_H

View File

@ -1,185 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwssharedmemory_p.h"
#if !defined(QT_NO_QWS_MULTIPROCESS)
#include <sys/shm.h>
QT_BEGIN_NAMESPACE
QWSSharedMemory::QWSSharedMemory()
: shmBase(0), shmSize(0), character(0), shmId(-1), key(-1)
{
}
QWSSharedMemory::~QWSSharedMemory()
{
detach();
}
/*
man page says:
On Linux, it is possible to attach a shared memory segment even if it
is already marked to be deleted. However, POSIX.1-2001 does not spec-
ify this behaviour and many other implementations do not support it.
*/
bool QWSSharedMemory::create(int size)
{
if (shmId != -1)
detach();
shmId = shmget(IPC_PRIVATE, size, IPC_CREAT|0600);
if (shmId == -1) {
#ifdef QT_SHM_DEBUG
perror("QWSSharedMemory::create allocating shared memory");
qWarning("Error allocating shared memory of size %d", size);
#endif
return false;
}
shmBase = shmat(shmId,0,0);
shmctl(shmId, IPC_RMID, 0);
if (shmBase == (void*)-1) {
#ifdef QT_SHM_DEBUG
perror("QWSSharedMemory::create attaching to shared memory");
qWarning("Error attaching to shared memory id %d", shmId);
#endif
shmBase = 0;
return false;
}
return true;
}
bool QWSSharedMemory::attach(int id)
{
if (shmId == id)
return id != -1;
if (shmId != -1)
detach();
shmBase = shmat(id,0,0);
if (shmBase == (void*)-1) {
#ifdef QT_SHM_DEBUG
perror("QWSSharedMemory::attach attaching to shared memory");
qWarning("Error attaching to shared memory 0x%x of size %d",
id, size());
#endif
shmBase = 0;
return false;
}
shmId = id;
return true;
}
void QWSSharedMemory::detach ()
{
if (!shmBase)
return;
shmdt (shmBase);
shmBase = 0;
shmSize = 0;
shmId = -1;
}
void QWSSharedMemory::setPermissions (mode_t mode)
{
struct shmid_ds shm;
shmctl (shmId, IPC_STAT, &shm);
shm.shm_perm.mode = mode;
shmctl (shmId, IPC_SET, &shm);
}
int QWSSharedMemory::size () const
{
struct shmid_ds shm;
shmctl (shmId, IPC_STAT, &shm);
return shm.shm_segsz;
}
// old API
QWSSharedMemory::QWSSharedMemory (int size, const QString &filename, char c)
{
shmSize = size;
shmFile = filename;
shmBase = 0;
shmId = -1;
character = c;
key = ftok (shmFile.toLatin1().constData(), c);
}
bool QWSSharedMemory::create ()
{
shmId = shmget (key, shmSize, IPC_CREAT | 0666);
return (shmId != -1);
}
void QWSSharedMemory::destroy ()
{
if (shmId != -1)
shmctl(shmId, IPC_RMID, 0);
}
bool QWSSharedMemory::attach ()
{
if (shmId == -1)
shmId = shmget (key, shmSize, 0);
shmBase = shmat (shmId, 0, 0);
if ((long)shmBase == -1)
shmBase = 0;
return (long)shmBase != 0;
}
QT_END_NAMESPACE
#endif // QT_NO_QWS_MULTIPROCESS

View File

@ -1,105 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSSHAREDMEMORY_P_H
#define QWSSHAREDMEMORY_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "qplatformdefs.h"
#include "QtCore/qstring.h"
QT_BEGIN_NAMESPACE
#if !defined(QT_NO_QWS_MULTIPROCESS)
class QWSSharedMemory {
public:
QWSSharedMemory();
~QWSSharedMemory();
void setPermissions(mode_t mode);
int size() const;
void *address() { return shmBase; }
int id() const { return shmId; }
void detach();
bool create(int size);
bool attach(int id);
//bool create(int size, const QString &filename, char c = 'Q');
//bool attach(const QString &filename, char c = 'Q');
// old API
QWSSharedMemory(int, const QString &, char c = 'Q');
void * base() { return address(); }
bool create();
void destroy();
bool attach();
private:
void *shmBase;
int shmSize;
QString shmFile;
char character;
int shmId;
key_t key;
};
#endif // QT_NO_QWS_MULTIPROCESS
QT_END_NAMESPACE
#endif // QWSSHAREDMEMORY_P_H

View File

@ -1,128 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwssignalhandler_p.h"
#ifndef QT_NO_QWS_SIGNALHANDLER
#include <sys/types.h>
#ifndef QT_NO_QWS_MULTIPROCESS
# include <sys/ipc.h>
# include <sys/sem.h>
# include <private/qcore_unix_p.h>
#endif
#include <signal.h>
QT_BEGIN_NAMESPACE
class QWSSignalHandlerPrivate : public QWSSignalHandler
{
public:
QWSSignalHandlerPrivate() : QWSSignalHandler() {}
};
Q_GLOBAL_STATIC(QWSSignalHandlerPrivate, signalHandlerInstance);
QWSSignalHandler* QWSSignalHandler::instance()
{
return signalHandlerInstance();
}
QWSSignalHandler::QWSSignalHandler()
{
const int signums[] = { SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE,
SIGSEGV, SIGTERM, SIGBUS };
const int n = sizeof(signums)/sizeof(int);
for (int i = 0; i < n; ++i) {
const int signum = signums[i];
qt_sighandler_t old = signal(signum, handleSignal);
if (old == SIG_IGN) // don't remove shm and semaphores when ignored
signal(signum, old);
else
oldHandlers[signum] = (old == SIG_ERR ? SIG_DFL : old);
}
}
QWSSignalHandler::~QWSSignalHandler()
{
#ifndef QT_NO_QWS_MULTIPROCESS
while (!semaphores.isEmpty())
removeSemaphore(semaphores.last());
#endif
}
#ifndef QT_NO_QWS_MULTIPROCESS
void QWSSignalHandler::removeSemaphore(int semno)
{
const int index = semaphores.lastIndexOf(semno);
if (index != -1) {
qt_semun semval;
semval.val = 0;
semctl(semaphores.at(index), 0, IPC_RMID, semval);
semaphores.remove(index);
}
}
#endif // QT_NO_QWS_MULTIPROCESS
void QWSSignalHandler::handleSignal(int signum)
{
QWSSignalHandler *h = instance();
signal(signum, h->oldHandlers[signum]);
#ifndef QT_NO_QWS_MULTIPROCESS
qt_semun semval;
semval.val = 0;
for (int i = 0; i < h->semaphores.size(); ++i)
semctl(h->semaphores.at(i), 0, IPC_RMID, semval);
#endif
h->objects.clear();
raise(signum);
}
QT_END_NAMESPACE
#endif // QT_QWS_NO_SIGNALHANDLER

View File

@ -1,99 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSSIGNALHANDLER_P_H
#define QWSSIGNALHANDLER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QLibrary class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include <QtCore/qglobal.h>
#ifndef QT_NO_QWS_SIGNALHANDLER
#include <QtCore/qmap.h>
#include <QtCore/qvector.h>
#include <QtCore/qobjectcleanuphandler.h>
QT_BEGIN_NAMESPACE
typedef void (*qt_sighandler_t)(int);
class QWSSignalHandlerPrivate;
class Q_GUI_EXPORT QWSSignalHandler
{
public:
static QWSSignalHandler* instance();
~QWSSignalHandler();
#ifndef QT_NO_QWS_MULTIPROCESS
inline void addSemaphore(int semno) { semaphores.append(semno); }
void removeSemaphore(int semno);
#endif
inline void addObject(QObject *object) { (void)objects.add(object); }
private:
QWSSignalHandler();
static void handleSignal(int signal);
QMap<int, qt_sighandler_t> oldHandlers;
#ifndef QT_NO_QWS_MULTIPROCESS
QVector<int> semaphores;
#endif
QObjectCleanupHandler objects;
friend class QWSSignalHandlerPrivate;
};
QT_END_NAMESPACE
#endif // QT_NO_QWS_SIGNALHANDLER
#endif // QWSSIGNALHANDLER_P_H

View File

@ -5,7 +5,7 @@ DEFINES += QT_BUILD_GUI_LIB QT_NO_USING_NAMESPACE
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x65000000
irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
!win32:!embedded:!qpa:!mac:!symbian:CONFIG += x11
!win32:!qpa:!mac:!symbian:CONFIG += x11
unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore
@ -17,7 +17,6 @@ contains(QT_CONFIG, x11sm):CONFIG += x11sm
x11:include(kernel/x11.pri)
mac:include(kernel/mac.pri)
win32:include(kernel/win.pri)
embedded:include(embedded/embedded.pri)
symbian {
include(kernel/symbian.pri)
include(s60framework/s60framework.pri)
@ -43,7 +42,6 @@ include(effects/effects.pri)
include(egl/egl.pri)
win32:!wince*: DEFINES += QT_NO_EGL
embedded: QT += network
QMAKE_LIBS += $$QMAKE_LIBS_GUI

View File

@ -62,9 +62,6 @@ SOURCES += \
win32 {
SOURCES += image/qpixmap_win.cpp
}
else:embedded {
SOURCES += image/qpixmap_qws.cpp
}
else:qpa {
SOURCES += image/qpixmap_qpa.cpp
}

View File

@ -15,11 +15,7 @@ win32 {
HEADERS += inputmethod/qwininputcontext_p.h
SOURCES += inputmethod/qwininputcontext_win.cpp
}
embedded {
HEADERS += inputmethod/qwsinputcontext_p.h
SOURCES += inputmethod/qwsinputcontext_qws.cpp
}
mac:!embedded:!qpa {
mac:!qpa {
HEADERS += inputmethod/qmacinputcontext_p.h
SOURCES += inputmethod/qmacinputcontext_mac.cpp
}

View File

@ -1,97 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QWSINPUTCONTEXT_P_H
#define QWSINPUTCONTEXT_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QLibrary class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include "QtGui/qinputcontext.h"
#ifndef QT_NO_QWS_INPUTMETHODS
QT_BEGIN_NAMESPACE
class QWSIMEvent;
class QWSIMQueryEvent;
class QWSIMInitEvent;
class QWSInputContext : public QInputContext
{
Q_OBJECT
public:
explicit QWSInputContext(QObject* parent = 0);
~QWSInputContext() {}
QString identifierName() { return QString(); }
QString language() { return QString(); }
void reset();
void update();
void mouseHandler( int x, QMouseEvent *event);
void setFocusWidget( QWidget *w );
void widgetDestroyed(QWidget *w);
bool isComposing() const;
static QWidget *activeWidget();
static bool translateIMEvent(QWidget *w, const QWSIMEvent *e);
static bool translateIMQueryEvent(QWidget *w, const QWSIMQueryEvent *e);
static bool translateIMInitEvent(const QWSIMInitEvent *e);
static void updateImeStatus(QWidget *w, bool hasFocus);
};
QT_END_NAMESPACE
#endif // QT_NO_QWS_INPUTMETHODS
#endif // QWSINPUTCONTEXT_P_H

View File

@ -173,32 +173,6 @@ unix:x11 {
kernel/qeventdispatcher_x11_p.h
}
embedded {
HEADERS += \
kernel/qeventdispatcher_qws_p.h
SOURCES += \
kernel/qapplication_qws.cpp \
kernel/qclipboard_qws.cpp \
kernel/qcursor_qws.cpp \
kernel/qdesktopwidget_qws.cpp \
kernel/qdnd_qws.cpp \
kernel/qeventdispatcher_qws.cpp \
kernel/qsound_qws.cpp \
kernel/qwidget_qws.cpp \
kernel/qkeymapper_qws.cpp \
kernel/qsessionmanager_qws.cpp
contains(QT_CONFIG, glib) {
SOURCES += \
kernel/qeventdispatcher_glib_qws.cpp
HEADERS += \
kernel/qeventdispatcher_glib_qws_p.h
QMAKE_CXXFLAGS += $$QT_CFLAGS_GLIB
LIBS_PRIVATE +=$$QT_LIBS_GLIB
}
}
!qpa {
HEADERS += \
kernel/qsound.h \
@ -273,7 +247,7 @@ qpa {
}
}
!embedded:!qpa:!x11:mac {
!qpa:!x11:mac {
SOURCES += \
kernel/qclipboard_mac.cpp \
kernel/qmime_mac.cpp \

View File

@ -1,4 +1,4 @@
!x11:!embedded:!qpa:mac {
!x11:!qpa:mac {
LIBS_PRIVATE += -framework Carbon -lz
*-mwerks:INCLUDEPATH += compat
}

View File

@ -114,14 +114,7 @@ win32 {
!win32-borland:!wince*:LIBS += -lmsimg32
}
embedded {
HEADERS += \
painting/qgraphicssystem_qws_p.h \
SOURCES += \
painting/qgraphicssystem_qws.cpp \
} else: if(!qpa) {
if(!qpa) {
HEADERS += \
painting/qgraphicssystem_raster_p.h \
painting/qgraphicssystem_runtime_p.h \
@ -147,7 +140,7 @@ unix:x11 {
painting/qpaintengine_x11.cpp
}
!embedded:!qpa:!x11:mac {
!qpa:!x11:mac {
HEADERS += \
painting/qpaintengine_mac_p.h \
painting/qgraphicssystem_mac_p.h \
@ -170,23 +163,11 @@ unix:!mac:!symbian|qpa {
painting/qprinterinfo_unix.cpp
}
win32|x11|mac|embedded|qpa|symbian {
win32|x11|mac|qpa|symbian {
SOURCES += painting/qbackingstore.cpp
HEADERS += painting/qbackingstore_p.h
}
embedded {
contains(QT_CONFIG,qtopia) {
DEFINES += QTOPIA_PRINTENGINE
HEADERS += painting/qprintengine_qws_p.h
SOURCES += painting/qprintengine_qws.cpp
}
SOURCES += \
painting/qcolormap_qws.cpp \
painting/qpaintdevice_qws.cpp
}
qpa {
SOURCES += \
painting/qcolormap_qpa.cpp \
@ -203,7 +184,7 @@ symbian {
painting/qpaintengine_s60_p.h
}
x11|embedded|qpa {
x11|qpa {
contains(QT_CONFIG,qtopia) {
DEFINES += QT_NO_CUPS QT_NO_LPR
} else {
@ -233,20 +214,13 @@ x11 {
SOURCES += painting/qwindowsurface_x11.cpp
}
!embedded:!qpa:mac {
!qpa:mac {
HEADERS += painting/qwindowsurface_mac_p.h \
painting/qunifiedtoolbarsurface_mac_p.h
SOURCES += painting/qwindowsurface_mac.cpp \
painting/qunifiedtoolbarsurface_mac.cpp
}
embedded {
HEADERS += painting/qwindowsurface_qws_p.h
SOURCES += painting/qwindowsurface_qws.cpp
}
symbian {
HEADERS += painting/qwindowsurface_s60_p.h \
painting/qdrawhelper_arm_simd_p.h

View File

@ -35,7 +35,7 @@ contains( styles, all ) {
styles = mac windows windowsxp windowsvista
}
x11|embedded|qpa|!macx-*:styles -= mac
x11|qpa|!macx-*:styles -= mac
x11{
QMAKE_CXXFLAGS += $$QT_CFLAGS_QGTKSTYLE

View File

@ -103,7 +103,7 @@ unix:x11 {
text/qrawfont_ft.cpp
}
!embedded:!qpa:!x11:mac {
!qpa:!x11:mac {
HEADERS += \
text/qfontengine_mac_p.h
OBJECTIVE_HEADERS += \
@ -116,22 +116,6 @@ unix:x11 {
text/qfontengine_mac.mm
}
embedded {
SOURCES += \
text/qfont_qws.cpp \
text/qfontengine_qws.cpp \
text/qfontengine_ft.cpp \
text/qfontengine_qpf.cpp \
text/qabstractfontengine_qws.cpp \
text/qrawfont_ft.cpp
HEADERS += \
text/qfontengine_ft_p.h \
text/qfontengine_qpf_p.h \
text/qabstractfontengine_qws.h \
text/qabstractfontengine_p.h
DEFINES += QT_NO_FONTCONFIG
}
qpa {
SOURCES += \
text/qfont_qpa.cpp \
@ -228,9 +212,7 @@ contains(QT_CONFIG, freetype) {
DEFINES += FT2_BUILD_LIBRARY FT_CONFIG_OPTION_SYSTEM_ZLIB
embedded:CONFIG += opentype
} else:contains(QT_CONFIG, system-freetype) {
embedded:CONFIG += opentype
# pull in the proper freetype2 include directory
include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
LIBS_PRIVATE += -lfreetype

View File

@ -41,12 +41,12 @@ unix:x11 {
util/qsystemtrayicon_x11.cpp
}
embedded|qpa {
qpa {
SOURCES += \
util/qsystemtrayicon_qpa.cpp
}
!embedded:!qpa:!x11:mac {
!qpa:!x11:mac {
OBJECTIVE_SOURCES += util/qsystemtrayicon_mac.mm
}

View File

@ -144,7 +144,7 @@ SOURCES += \
widgets/qplaintextedit.cpp \
widgets/qprintpreviewwidget.cpp
!embedded:!qpa:mac {
!qpa:mac {
HEADERS += widgets/qmacnativewidget_mac.h \
widgets/qmaccocoaviewcontainer_mac.h
OBJECTIVE_HEADERS += widgets/qcocoatoolbardelegate_mac_p.h \

View File

@ -11,7 +11,7 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
include(../qbase.pri)
!win32:!embedded:!mac:!symbian:!qpa:CONFIG += x11
!win32:!mac:!symbian:!qpa:CONFIG += x11
contains(QT_CONFIG, opengl):CONFIG += opengl
contains(QT_CONFIG, opengles1):CONFIG += opengles1
contains(QT_CONFIG, opengles2):CONFIG += opengles2
@ -105,7 +105,6 @@ x11 {
contains(QT_CONFIG, fontconfig) {
contains(QT_CONFIG, system-freetype) {
embedded:CONFIG += opentype
# pull in the proper freetype2 include directory
include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
LIBS_PRIVATE += -lfreetype
@ -138,24 +137,6 @@ wince*: {
HEADERS += qgl_egl_p.h
}
embedded {
SOURCES += qgl_qws.cpp \
qglpixelbuffer_egl.cpp \
qglscreen_qws.cpp \
qglwindowsurface_qws.cpp \
qgl_egl.cpp
HEADERS += qglscreen_qws.h \
qglwindowsurface_qws_p.h \
qgl_egl_p.h
contains(QT_CONFIG, fontconfig) {
include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
} else {
DEFINES *= QT_NO_FREETYPE
}
}
symbian {
DEFINES += QGL_USE_TEXTURE_POOL QGL_NO_PRESERVED_SWAP
SOURCES -= qpixmapdata_gl.cpp

View File

@ -1,318 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qgl.h"
#include "qgl_egl_p.h"
#include "qglpixelbuffer.h"
#include <qglscreen_qws.h>
#include <qscreenproxy_qws.h>
#include <private/qglwindowsurface_qws_p.h>
#include <private/qbackingstore_p.h>
#include <private/qfont_p.h>
#include <private/qfontengine_p.h>
#include <private/qgl_p.h>
#include <private/qpaintengine_opengl_p.h>
#include <qpixmap.h>
#include <qtimer.h>
#include <qapplication.h>
#include <qstack.h>
#include <qdesktopwidget.h>
#include <qdebug.h>
#include <qvarlengtharray.h>
QT_BEGIN_NAMESPACE
static QGLScreen *glScreenForDevice(QPaintDevice *device)
{
QScreen *screen = qt_screen;
if (screen->classId() == QScreen::MultiClass) {
int screenNumber;
if (device && device->devType() == QInternal::Widget)
screenNumber = qApp->desktop()->screenNumber(static_cast<QWidget *>(device));
else
screenNumber = 0;
screen = screen->subScreens()[screenNumber];
}
while (screen->classId() == QScreen::ProxyClass ||
screen->classId() == QScreen::TransformedClass) {
screen = static_cast<QProxyScreen *>(screen)->screen();
}
if (screen->classId() == QScreen::GLClass)
return static_cast<QGLScreen *>(screen);
else
return 0;
}
/*
QGLTemporaryContext implementation
*/
class QGLTemporaryContextPrivate
{
public:
QGLWidget *widget;
};
QGLTemporaryContext::QGLTemporaryContext(bool, QWidget *)
: d(new QGLTemporaryContextPrivate)
{
d->widget = new QGLWidget;
d->widget->makeCurrent();
}
QGLTemporaryContext::~QGLTemporaryContext()
{
delete d->widget;
}
/*****************************************************************************
QOpenGL debug facilities
*****************************************************************************/
//#define DEBUG_OPENGL_REGION_UPDATE
bool QGLFormat::hasOpenGLOverlays()
{
QGLScreen *glScreen = glScreenForDevice(0);
if (glScreen)
return (glScreen->options() & QGLScreen::Overlays);
else
return false;
}
static EGLSurface qt_egl_create_surface
(QEglContext *context, QPaintDevice *device,
const QEglProperties *properties = 0)
{
// Get the screen surface functions, which are used to create native ids.
QGLScreen *glScreen = glScreenForDevice(device);
if (!glScreen)
return EGL_NO_SURFACE;
QGLScreenSurfaceFunctions *funcs = glScreen->surfaceFunctions();
if (!funcs)
return EGL_NO_SURFACE;
// Create the native drawable for the paint device.
int devType = device->devType();
EGLNativePixmapType pixmapDrawable = 0;
EGLNativeWindowType windowDrawable = 0;
bool ok;
if (devType == QInternal::Pixmap) {
ok = funcs->createNativePixmap(static_cast<QPixmap *>(device), &pixmapDrawable);
} else if (devType == QInternal::Image) {
ok = funcs->createNativeImage(static_cast<QImage *>(device), &pixmapDrawable);
} else {
ok = funcs->createNativeWindow(static_cast<QWidget *>(device), &windowDrawable);
}
if (!ok) {
qWarning("QEglContext::createSurface(): Cannot create the native EGL drawable");
return EGL_NO_SURFACE;
}
// Create the EGL surface to draw into, based on the native drawable.
const int *props;
if (properties)
props = properties->properties();
else
props = 0;
EGLSurface surf;
if (devType == QInternal::Widget) {
surf = eglCreateWindowSurface
(context->display(), context->config(), windowDrawable, props);
} else {
surf = eglCreatePixmapSurface
(context->display(), context->config(), pixmapDrawable, props);
}
if (surf == EGL_NO_SURFACE)
qWarning("QEglContext::createSurface(): Unable to create EGL surface, error = 0x%x", eglGetError());
return surf;
}
bool QGLContext::chooseContext(const QGLContext* shareContext)
{
Q_D(QGLContext);
// Validate the device.
if (!device())
return false;
int devType = device()->devType();
if (devType != QInternal::Pixmap && devType != QInternal::Image && devType != QInternal::Widget) {
qWarning("QGLContext::chooseContext(): Cannot create QGLContext's for paint device type %d", devType);
return false;
}
// Get the display and initialize it.
d->eglContext = new QEglContext();
d->ownsEglContext = true;
d->eglContext->setApi(QEgl::OpenGL);
// Construct the configuration we need for this surface.
QEglProperties configProps;
qt_eglproperties_set_glformat(configProps, d->glFormat);
configProps.setDeviceType(devType);
configProps.setPaintDeviceFormat(device());
configProps.setRenderableType(QEgl::OpenGL);
// Search for a matching configuration, reducing the complexity
// each time until we get something that matches.
if (!d->eglContext->chooseConfig(configProps)) {
delete d->eglContext;
d->eglContext = 0;
return false;
}
// Inform the higher layers about the actual format properties.
qt_glformat_from_eglconfig(d->glFormat, d->eglContext->config());
// Create a new context for the configuration.
if (!d->eglContext->createContext
(shareContext ? shareContext->d_func()->eglContext : 0)) {
delete d->eglContext;
d->eglContext = 0;
return false;
}
d->sharing = d->eglContext->isSharing();
if (d->sharing && shareContext)
const_cast<QGLContext *>(shareContext)->d_func()->sharing = true;
#if defined(EGL_VERSION_1_1)
if (d->glFormat.swapInterval() != -1 && devType == QInternal::Widget)
eglSwapInterval(d->eglContext->display(), d->glFormat.swapInterval());
#endif
// Create the EGL surface to draw into. We cannot use
// QEglContext::createSurface() because it does not have
// access to the QGLScreen.
d->eglSurface = qt_egl_create_surface(d->eglContext, device());
if (d->eglSurface == EGL_NO_SURFACE) {
delete d->eglContext;
d->eglContext = 0;
return false;
}
return true;
}
bool QGLWidget::event(QEvent *e)
{
return QWidget::event(e);
}
void QGLWidget::resizeEvent(QResizeEvent *)
{
Q_D(QGLWidget);
if (!isValid())
return;
makeCurrent();
if (!d->glcx->initialized())
glInit();
resizeGL(width(), height());
//handle overlay
}
const QGLContext* QGLWidget::overlayContext() const
{
return 0;
}
void QGLWidget::makeOverlayCurrent()
{
//handle overlay
}
void QGLWidget::updateOverlayGL()
{
//handle overlay
}
void QGLWidget::setContext(QGLContext *context, const QGLContext* shareContext, bool deleteOldContext)
{
Q_D(QGLWidget);
if(context == 0) {
qWarning("QGLWidget::setContext: Cannot set null context");
return;
}
if(d->glcx)
d->glcx->doneCurrent();
QGLContext* oldcx = d->glcx;
d->glcx = context;
if(!d->glcx->isValid())
d->glcx->create(shareContext ? shareContext : oldcx);
if(deleteOldContext)
delete oldcx;
}
void QGLWidgetPrivate::init(QGLContext *context, const QGLWidget* shareWidget)
{
Q_Q(QGLWidget);
QGLScreen *glScreen = glScreenForDevice(q);
if (glScreen) {
wsurf = static_cast<QWSGLWindowSurface*>(glScreen->createSurface(q));
q->setWindowSurface(wsurf);
}
initContext(context, shareWidget);
if(q->isValid() && glcx->format().hasOverlay()) {
//no overlay
qWarning("QtOpenGL ES doesn't currently support overlays");
}
}
void QGLWidgetPrivate::cleanupColormaps()
{
}
const QGLColormap & QGLWidget::colormap() const
{
return d_func()->cmap;
}
void QGLWidget::setColormap(const QGLColormap &)
{
}
QT_END_NAMESPACE

View File

@ -1,242 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QGLScreen>
#include <QGLContext>
#include <QGLWidget>
#include "private/qglwindowsurface_qws_p.h"
QT_BEGIN_NAMESPACE
class QGLScreenPrivate
{
public:
QGLScreen::Options options;
QGLScreenSurfaceFunctions *functions;
};
/*!
\internal
\preliminary
\class QGLScreen
\brief This class encapsulates an OpenGL screen driver.
*/
QGLScreen::QGLScreen(int displayId)
: QScreen(displayId, GLClass), d_ptr(new QGLScreenPrivate)
{
d_ptr->options = NoOptions;
d_ptr->functions = new QGLScreenSurfaceFunctions();
}
QGLScreen::~QGLScreen()
{
delete d_ptr->functions;
delete d_ptr;
}
/*!
\since 4.3
\obsolete
Initializes the \a context and sets up the QGLWindowSurface of the
QWidget of \a context based on the parameters of \a context and
based on its own requirements. The format() of \a context needs
to be updated with the actual parameters of the OpenGLES drawable
that was set up.
\a shareContext is used in the same way as for QGLContext. It is
the context with which \a context shares display lists and texture
ids etc. The window surface must be set up so that this sharing
works.
Returns true in case of success and false if it is not possible to
create the necessary OpenGLES drawable/context.
Since 4.4.2, this function will be not be called if options()
indicates that a native window or pixmap drawable can be created
via the functions in the surfaceFunctions() object.
This function is obsolete in Qt 4.5 and higher. Use surfaceFunctions()
instead.
\sa options(), surfaceFunctions()
*/
bool
QGLScreen::chooseContext(QGLContext *context, const QGLContext *shareContext)
{
Q_UNUSED(context);
Q_UNUSED(shareContext);
return false;
}
/*!
\enum QGLScreen::Option
This enum defines options that can be set on QGLScreen instances.
\value NoOptions There are no special options on the screen. This is the default.
\value NativeWindows Native windows can be created with QGLScreenSurfaceFunctions::createNativeWindow().
\value NativePixmaps Native pixmaps can be created with QGLScreenSurfaceFunctions::createNativePixmap().
\value NativeImages Native images can be created with QGLScreenSurfaceFunctions::createNativeImage().
\value Overlays The screen supports GL overlays.
*/
/*!
\since 4.4.2
Returns the options associated with this QGLScreen.
\sa setOptions()
*/
QGLScreen::Options QGLScreen::options() const
{
return d_ptr->options;
}
/*!
\since 4.4.2
Sets the options associated with this QGLScreen to \a value.
\sa options()
*/
void QGLScreen::setOptions(QGLScreen::Options value)
{
d_ptr->options = value;
}
/*!
\since 4.4.2
Returns the surface functions object for this QGLScreen.
\sa setSurfaceFunctions()
*/
QGLScreenSurfaceFunctions *QGLScreen::surfaceFunctions() const
{
return d_ptr->functions;
}
/*!
\since 4.4.2
Sets the surface functions object for this QGLScreen to \a functions.
The QGLScreen will take over ownership of \a functions and delete
it when the QGLScreen is deleted.
\sa setSurfaceFunctions()
*/
void QGLScreen::setSurfaceFunctions(QGLScreenSurfaceFunctions *functions)
{
if (functions && functions != d_ptr->functions) {
delete d_ptr->functions;
d_ptr->functions = functions;
}
}
/*!
\internal
\preliminary
\class QGLScreenSurfaceFunctions
\brief The QGLScreenSurfaceFunctions class encapsulates the functions for creating native windows and pixmaps for OpenGL ES.
*/
/*!
\since 4.4.2
Creates a native OpenGLES drawable for the surface of \a widget and
returns it in \a native. Returns true if the OpenGLES drawable could
be created, or false if windows are not supported.
This function will be called if the NativeWindows option is set on
the screen.
\sa createNativePixmap(), createNativeImage(), QGLScreen::options()
*/
bool QGLScreenSurfaceFunctions::createNativeWindow(QWidget *widget, EGLNativeWindowType *native)
{
Q_UNUSED(widget);
Q_UNUSED(native);
return false;
}
/*!
\since 4.4.2
Creates a native OpenGLES drawable for directly rendering into
\a pixmap and returns it in \a native. Returns true if the OpenGLES
drawable could be created, or false if direct rendering into pixmaps
is not supported.
This function will be called if the NativePixmaps option is set on
the screen.
\sa createNativeWindow(), createNativeImage(), QGLScreen::options()
*/
bool QGLScreenSurfaceFunctions::createNativePixmap(QPixmap *pixmap, EGLNativePixmapType *native)
{
Q_UNUSED(pixmap);
Q_UNUSED(native);
return false;
}
/*!
\since 4.4.2
Creates a native OpenGLES drawable for directly rendering into
\a image and returns it in \a native. Returns true if the OpenGLES
drawable could be created, or false if direct rendering into images
is not supported.
This function will be called if the NativeImages option is set on
the screen.
\sa createNativeWindow(), createNativePixmap(), QGLScreen::options()
*/
bool QGLScreenSurfaceFunctions::createNativeImage(QImage *image, EGLNativePixmapType *native)
{
Q_UNUSED(image);
Q_UNUSED(native);
return false;
}
QT_END_NAMESPACE

View File

@ -1,127 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QSCREENEGL_P_H
#define QSCREENEGL_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QScreenEGL class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include <QtGui/QScreen>
#include <QtOpenGL/qgl.h>
#if defined(QT_OPENGL_ES_2)
#include <EGL/egl.h>
#else
#include <GLES/egl.h>
#endif
#if !defined(EGL_VERSION_1_3) && !defined(QEGL_NATIVE_TYPES_DEFINED)
#undef EGLNativeWindowType
#undef EGLNativePixmapType
#undef EGLNativeDisplayType
typedef NativeWindowType EGLNativeWindowType;
typedef NativePixmapType EGLNativePixmapType;
typedef NativeDisplayType EGLNativeDisplayType;
#define QEGL_NATIVE_TYPES_DEFINED 1
#endif
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(OpenGL)
class QGLScreenPrivate;
class Q_OPENGL_EXPORT QGLScreenSurfaceFunctions
{
public:
virtual bool createNativeWindow(QWidget *widget, EGLNativeWindowType *native);
virtual bool createNativePixmap(QPixmap *pixmap, EGLNativePixmapType *native);
virtual bool createNativeImage(QImage *image, EGLNativePixmapType *native);
};
class Q_OPENGL_EXPORT QGLScreen : public QScreen
{
Q_DECLARE_PRIVATE(QGLScreen)
public:
QGLScreen(int displayId);
virtual ~QGLScreen();
enum Option
{
NoOptions = 0,
NativeWindows = 1,
NativePixmaps = 2,
NativeImages = 4,
Overlays = 8
};
Q_DECLARE_FLAGS(Options, Option)
QGLScreen::Options options() const;
virtual bool chooseContext(QGLContext *context, const QGLContext *shareContext);
virtual bool hasOpenGL() = 0;
QGLScreenSurfaceFunctions *surfaceFunctions() const;
protected:
void setOptions(QGLScreen::Options value);
void setSurfaceFunctions(QGLScreenSurfaceFunctions *functions);
private:
QGLScreenPrivate *d_ptr;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QGLScreen::Options)
QT_END_NAMESPACE
QT_END_HEADER
#endif // QSCREENEGL_P_H

View File

@ -1,133 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtGui/QPaintDevice>
#include <QtGui/QWidget>
#include <QtOpenGL/QGLWidget>
#include "private/qglwindowsurface_qws_p.h"
#include "private/qpaintengine_opengl_p.h"
QT_BEGIN_NAMESPACE
/*!
\class QWSGLWindowSurface
\since 4.3
\ingroup qws
\preliminary
\brief The QWSGLWindowSurface class provides the drawing area for top-level
windows with Qt for Embedded Linux on EGL/OpenGL ES. It also provides the
drawing area for \l{QGLWidget}s whether they are top-level windows or
children of another QWidget.
Note that this class is only available in Qt for Embedded Linux and only
available if Qt is configured with OpenGL support.
*/
class QWSGLWindowSurfacePrivate
{
public:
QWSGLWindowSurfacePrivate() :
qglContext(0), ownsContext(false) {}
QGLContext *qglContext;
bool ownsContext;
};
/*!
Constructs an empty QWSGLWindowSurface for the given top-level \a window.
The window surface is later initialized from chooseContext() and resources for it
is typically allocated in setGeometry().
*/
QWSGLWindowSurface::QWSGLWindowSurface(QWidget *window)
: QWSWindowSurface(window),
d_ptr(new QWSGLWindowSurfacePrivate)
{
}
/*!
Constructs an empty QWSGLWindowSurface.
*/
QWSGLWindowSurface::QWSGLWindowSurface()
: d_ptr(new QWSGLWindowSurfacePrivate)
{
}
/*!
Destroys the QWSGLWindowSurface object and frees any
allocated resources.
*/
QWSGLWindowSurface::~QWSGLWindowSurface()
{
Q_D(QWSGLWindowSurface);
if (d->ownsContext)
delete d->qglContext;
delete d;
}
/*!
Returns the QGLContext of the window surface.
*/
QGLContext *QWSGLWindowSurface::context() const
{
Q_D(const QWSGLWindowSurface);
if (!d->qglContext) {
QWSGLWindowSurface *that = const_cast<QWSGLWindowSurface*>(this);
that->setContext(new QGLContext(QGLFormat::defaultFormat()));
that->d_func()->ownsContext = true;
}
return d->qglContext;
}
/*!
Sets the QGLContext for this window surface to \a context.
*/
void QWSGLWindowSurface::setContext(QGLContext *context)
{
Q_D(QWSGLWindowSurface);
if (d->ownsContext) {
delete d->qglContext;
d->ownsContext = false;
}
d->qglContext = context;
}
QT_END_NAMESPACE

View File

@ -1,90 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QGLWINDOWSURFACE_QWS_P_H
#define QGLWINDOWSURFACE_QWS_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QWSGLWindowSurface class. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include <QtCore/qglobal.h>
#include <QPaintDevice>
#include "private/qwindowsurface_qws_p.h"
QT_BEGIN_NAMESPACE
class QPaintDevice;
class QPoint;
class QRegion;
class QSize;
class QWidget;
class QGLContext;
class QWSGLWindowSurfacePrivate;
class Q_OPENGL_EXPORT QWSGLWindowSurface : public QWSWindowSurface
{
Q_DECLARE_PRIVATE(QWSGLWindowSurface)
public:
QWSGLWindowSurface(QWidget *widget);
QWSGLWindowSurface();
~QWSGLWindowSurface();
QGLContext *context() const;
void setContext(QGLContext *context);
private:
QWSGLWindowSurfacePrivate *d_ptr;
};
QT_END_NAMESPACE
#endif // QGLWINDOWSURFACE_QWS_P_H

View File

@ -1,4 +0,0 @@
TEMPLATE = subdirs
contains(decoration-plugins, default) :SUBDIRS += default
contains(decoration-plugins, styled) :SUBDIRS += styled
contains(decoration-plugins, windows) :SUBDIRS += windows

View File

@ -1,10 +0,0 @@
TARGET = qdecorationdefault
include(../../qpluginbase.pri)
HEADERS = $$QT_SOURCE_TREE/src/gui/embedded/qdecorationdefault_qws.h
SOURCES = main.cpp \
$$QT_SOURCE_TREE/src/gui/embedded/qdecorationdefault_qws.cpp
DESTDIR = $$QT.gui.plugins/decorations
target.path += $$[QT_INSTALL_PLUGINS]/decorations
INSTALLS += target

View File

@ -1,76 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qdecorationplugin_qws.h>
#include <qdecorationdefault_qws.h>
QT_BEGIN_NAMESPACE
class DecorationDefault : public QDecorationPlugin
{
public:
DecorationDefault();
QStringList keys() const;
QDecoration *create(const QString&);
};
DecorationDefault::DecorationDefault()
: QDecorationPlugin()
{
}
QStringList DecorationDefault::keys() const
{
return (QStringList() << QLatin1String("Default"));
}
QDecoration* DecorationDefault::create(const QString& s)
{
if (s.toLower() == QLatin1String("default"))
return new QDecorationDefault();
return 0;
}
Q_EXPORT_PLUGIN2(qdecorationdefault, DecorationDefault)
QT_END_NAMESPACE

View File

@ -1,77 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qdecorationplugin_qws.h>
#include <qdecorationstyled_qws.h>
QT_BEGIN_NAMESPACE
class DecorationStyled : public QDecorationPlugin
{
public:
DecorationStyled();
QStringList keys() const;
QDecoration *create(const QString&);
};
DecorationStyled::DecorationStyled() : QDecorationPlugin()
{
}
QStringList DecorationStyled::keys() const
{
return (QStringList() << QLatin1String("Styled"));
}
QDecoration* DecorationStyled::create(const QString& s)
{
if (s.toLower() != QLatin1String("styled"))
return 0;
qDebug("creatign styled decoration");
return new QDecorationStyled;
}
Q_EXPORT_PLUGIN2(qdecorationstyled, DecorationStyled)
QT_END_NAMESPACE

View File

@ -1,13 +0,0 @@
TARGET = qdecorationstyled
include(../../qpluginbase.pri)
DESTDIR = $$QT.gui.plugins/decorations
target.path += $$[QT_INSTALL_PLUGINS]/decorations
INSTALLS += target
DEFINES += QT_QWS_DECORATION_STYLED
HEADERS = $$QT_SOURCE_TREE/src/gui/embedded/qdecorationstyled_qws.h
SOURCES = main.cpp \
$$QT_SOURCE_TREE/src/gui/embedded/qdecorationstyled_qws.cpp

View File

@ -1,76 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qdecorationplugin_qws.h>
#include <qdecorationwindows_qws.h>
QT_BEGIN_NAMESPACE
class DecorationWindows : public QDecorationPlugin
{
public:
DecorationWindows();
QStringList keys() const;
QDecoration *create(const QString&);
};
DecorationWindows::DecorationWindows()
: QDecorationPlugin()
{
}
QStringList DecorationWindows::keys() const
{
return (QStringList() << QLatin1String("Windows"));
}
QDecoration* DecorationWindows::create(const QString& s)
{
if (s.toLower() == QLatin1String("windows"))
return new QDecorationWindows();
return 0;
}
Q_EXPORT_PLUGIN2(qdecorationwindows, DecorationWindows)
QT_END_NAMESPACE

View File

@ -1,10 +0,0 @@
TARGET = qdecorationwindows
include(../../qpluginbase.pri)
HEADERS = $$QT_SOURCE_TREE/src/gui/embedded/qdecorationwindows_qws.h
SOURCES = main.cpp \
$$QT_SOURCE_TREE/src/gui/embedded/qdecorationwindows_qws.cpp
DESTDIR = $$QT.gui.plugins/decorations
target.path += $$[QT_INSTALL_PLUGINS]/decorations
INSTALLS += target

Some files were not shown because too many files have changed in this diff Show More